aboutsummaryrefslogtreecommitdiff
path: root/config.sh
diff options
from:
to:
context:
space:
mode:
authorGravatar Troy Dawson <tdawson@redhat.com> 2024-08-22 09:10:34 -0700
committerGravatar Troy Dawson <tdawson@redhat.com> 2024-08-22 09:25:45 -0700
commit3368dece03a201e727b31fc40d90ce8f24a77db6 (patch)
treeef872a60ff3b1d3508b8d4c4464782ecdf5c5166 /config.sh
parent6561c0307a653b35c26f1ded06dbee9c798920af (diff)
downloadkiwi-descriptions-3368dece03a201e727b31fc40d90ce8f24a77db6.tar.gz
kiwi-descriptions-3368dece03a201e727b31fc40d90ce8f24a77db6.zip
Fix packages installed on KDE Mobile Live
Fix boot after install for all Live builds Signed-off-by: Troy Dawson <tdawson@redhat.com>
Diffstat (limited to 'config.sh')
-rwxr-xr-xconfig.sh14
1 files changed, 14 insertions, 0 deletions
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
#======================================