Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 2 additions & 4 deletions live/src/config.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down