Skip to contentSkip to conversation

Fix for CD/DVD media check

PATCH poma 1 participant 1 message Jul 6, 2015

lore
Share & tools
lore

poma

author
#0 lore raw

Fix for "CD/DVD media check" i.e. [email protected]

"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 [email protected]"
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(-)
modules.d/90dmsquash-live/dmsquash-live-root.sh +1 -1
index a0a9ab9..9159a92 100755
@@ -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
Signature · 1 line
2.4.5