]> git.ipfire.org Git - thirdparty/dracut.git/commitdiff
dmsquash-live/dmsquash-live-root.sh: fixup checkisomd5 for systemd
authorHarald Hoyer <harald@redhat.com>
Tue, 7 Jul 2015 11:25:56 +0000 (13:25 +0200)
committerHarald Hoyer <harald@redhat.com>
Tue, 7 Jul 2015 11:44:13 +0000 (13:44 +0200)
systemd does not like a leading "-" for unit template filenames anymore.

modules.d/90dmsquash-live/dmsquash-live-root.sh

index a0a9ab98b3eb180f3c535d0ab49ac445e093dcf8..531617e38ac3331bd3e1c93d0622e7affed43360 100755 (executable)
@@ -41,7 +41,7 @@ getarg rd.live.check -d check || check=""
 if [ -n "$check" ]; then
     type plymouth >/dev/null 2>&1 && plymouth --hide-splash
     if [ -n "$DRACUT_SYSTEMD" ]; then
-        p=$(str_replace "$livedev" "-" '\x2d')
+        p=$(dev_unit_name "$livedev")
         systemctl start checkisomd5@${p}.service
     else
         checkisomd5 --verbose $livedev