From: Harald Hoyer Date: Tue, 7 Jul 2015 11:25:56 +0000 (+0200) Subject: dmsquash-live/dmsquash-live-root.sh: fixup checkisomd5 for systemd X-Git-Tag: 044~160 X-Git-Url: http://git.ipfire.org/gitweb/gitweb.cgi?a=commitdiff_plain;h=3d579309cde6c02a85ce7d3c396f61e7f064690b;p=thirdparty%2Fdracut.git dmsquash-live/dmsquash-live-root.sh: fixup checkisomd5 for systemd systemd does not like a leading "-" for unit template filenames anymore. --- diff --git a/modules.d/90dmsquash-live/dmsquash-live-root.sh b/modules.d/90dmsquash-live/dmsquash-live-root.sh index a0a9ab98b..531617e38 100755 --- a/modules.d/90dmsquash-live/dmsquash-live-root.sh +++ b/modules.d/90dmsquash-live/dmsquash-live-root.sh @@ -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