cannot use kargs to select bootCD default systemd target - this would
[bootcd.git] / prep.sh
diff --git a/prep.sh b/prep.sh
index 0c6989a..59b80aa 100755 (executable)
--- a/prep.sh
+++ b/prep.sh
@@ -97,6 +97,8 @@ if [ -d $bootcd/etc/systemd/system ] ; then
     for file in pl_boot.service pl_boot.target ; do
        install -D -m 644 systemd/$file $bootcd/etc/systemd/system
     done
+    # select pl_boot target this way instead of using kargs, as kargs apply to kexec boot as well
+    ln -sf /etc/systemd/system/pl_boot.target $bootcd/etc/systemd/system/default.target
 fi
 
 # Install fallback node configuration file