diff --git a/live/src/config.sh b/live/src/config.sh index 7ad282b04e..c3fa23c6fc 100644 --- a/live/src/config.sh +++ b/live/src/config.sh @@ -98,14 +98,12 @@ arch=$(uname -m) profile=$(echo "$kiwi_profiles" | tr "_" "-") label="Install-$profile-$arch" -# Extra cleanup for the PXE images -if [[ "$kiwi_profiles" == *PXE* ]]; then +# Set the default live root except for PXE images +if [[ "$kiwi_profiles" != *PXE* ]]; then echo "Setting default live root: live:LABEL=$label" mkdir /etc/cmdline.d echo "root=live:LABEL=$label" >/etc/cmdline.d/10-liveroot.conf echo "root_disk=live:LABEL=$label" >>/etc/cmdline.d/10-liveroot.conf - # if there's a default network location, add it here - # echo "root_net=" >> /etc/cmdline.d/10-liveroot.conf echo 'install_items+=" /etc/cmdline.d/10-liveroot.conf "' >/etc/dracut.conf.d/10-liveroot-file.conf fi echo 'add_dracutmodules+=" dracut-menu agama-cmdline "' >>/etc/dracut.conf.d/10-liveroot-file.conf