Blame 0019-dmsquash-live-dmsquash-live-root.sh-fixup-checkisomd.patch

Harald Hoyer 0840a3
From 3d579309cde6c02a85ce7d3c396f61e7f064690b Mon Sep 17 00:00:00 2001
Harald Hoyer 0840a3
From: Harald Hoyer <harald@redhat.com>
Harald Hoyer 0840a3
Date: Tue, 7 Jul 2015 13:25:56 +0200
Harald Hoyer 0840a3
Subject: [PATCH] dmsquash-live/dmsquash-live-root.sh: fixup checkisomd5 for
Harald Hoyer 0840a3
 systemd
Harald Hoyer 0840a3
Harald Hoyer 0840a3
systemd does not like a leading "-" for unit template filenames anymore.
Harald Hoyer 0840a3
---
Harald Hoyer 0840a3
 modules.d/90dmsquash-live/dmsquash-live-root.sh | 2 +-
Harald Hoyer 0840a3
 1 file changed, 1 insertion(+), 1 deletion(-)
Harald Hoyer 0840a3
Harald Hoyer 0840a3
diff --git a/modules.d/90dmsquash-live/dmsquash-live-root.sh b/modules.d/90dmsquash-live/dmsquash-live-root.sh
Harald Hoyer 0840a3
index a0a9ab9..531617e 100755
Harald Hoyer 0840a3
--- a/modules.d/90dmsquash-live/dmsquash-live-root.sh
Harald Hoyer 0840a3
+++ b/modules.d/90dmsquash-live/dmsquash-live-root.sh
Harald Hoyer 0840a3
@@ -41,7 +41,7 @@ getarg rd.live.check -d check || check=""
Harald Hoyer 0840a3
 if [ -n "$check" ]; then
Harald Hoyer 0840a3
     type plymouth >/dev/null 2>&1 && plymouth --hide-splash
Harald Hoyer 0840a3
     if [ -n "$DRACUT_SYSTEMD" ]; then
Harald Hoyer 0840a3
-        p=$(str_replace "$livedev" "-" '\x2d')
Harald Hoyer 0840a3
+        p=$(dev_unit_name "$livedev")
Harald Hoyer 0840a3
         systemctl start checkisomd5@${p}.service
Harald Hoyer 0840a3
     else
Harald Hoyer 0840a3
         checkisomd5 --verbose $livedev