Fix for CD/DVD media check

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Fix for "CD/DVD media check" i.e. checkisomd5@.service

"the issue is systemd related. absolute paths for systemd unit templates shouldn't start anymore by - (/). (they should be the ouptut of systemd-escape -p ${PATH}). in practice one just has to cut 1st char."
AntonioMeireles
https://github.com/pires/kubernetes-vagrant-coreos-cluster/issues/123

"rd.live.check - [FAILED] Failed to start checkisomd5@-dev-sr0.service"
https://bugzilla.redhat.com/show_bug.cgi?id=1239226

---
 modules.d/90dmsquash-live/dmsquash-live-root.sh | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/modules.d/90dmsquash-live/dmsquash-live-root.sh b/modules.d/90dmsquash-live/dmsquash-live-root.sh
index a0a9ab9..9159a92 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=$(str_replace "${livedev#*/}" "-" '\x2d')
         systemctl start checkisomd5@${p}.service
     else
         checkisomd5 --verbose $livedev
-- 
2.4.5
--
To unsubscribe from this list: send the line "unsubscribe initramfs" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html



[Index of Archives]     [Linux Kernel]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite News]     [Linux SCSI]

  Powered by Linux