From a0134369ebfbfead6baaec0fda0427d112763c4c Mon Sep 17 00:00:00 2001 From: Troy Dawson Date: Thu, 22 Aug 2024 09:18:54 -0700 Subject: [PATCH] Fix packages installed on KDE Mobile Live Fix boot after install for all Live builds Signed-off-by: Troy Dawson --- components/desktops/kde.xml | 5 +---- config.sh | 14 ++++++++++++++ 2 files changed, 15 insertions(+), 4 deletions(-) diff --git a/components/desktops/kde.xml b/components/desktops/kde.xml index 8b07ba6..5640d76 100644 --- a/components/desktops/kde.xml +++ b/components/desktops/kde.xml @@ -26,10 +26,7 @@ - - - - + diff --git a/config.sh b/config.sh index 0f090d5..f083139 100755 --- a/config.sh +++ b/config.sh @@ -93,6 +93,20 @@ if [[ "$kiwi_profiles" == *"Live"* ]]; then if [[ "$kiwi_profiles" == *"Xfce"* ]]; then echo 'livesys_session="xfce"' > /etc/sysconfig/livesys fi +# We are having problems with dracut not working on Live installs +# Put in a anaconda post-script to fix it +cat > /usr/share/anaconda/post-scripts/85-fixboot.ks << FIXBOOT_EOF +%post + +echo "Fixing, and re-running dracut" + +/usr/bin/sed -i "s/dmsquash-live livenet //" /etc/dracut.conf.d/02-livecd.conf +/usr/bin/dracut -v --regenerate-all --force + +echo "initramfs now installed" + +%end +FIXBOOT_EOF fi #======================================