Merge #937 fedora-soas-common: Restore plymouth to initrd for boot animation.

This commit is contained in:
Kevin Fenzi 2023-02-03 18:33:25 +00:00
commit 6f645b8388

View File

@ -78,7 +78,8 @@ cat /etc/fedora-release >> /boot/olpc_build
# Rebuild initrd for Sugar boot screen # Rebuild initrd for Sugar boot screen
KERNEL_VERSION=$(rpm -q kernel --qf '%{version}-%{release}.%{arch}\n') KERNEL_VERSION=$(rpm -q kernel --qf '%{version}-%{release}.%{arch}\n')
/usr/sbin/plymouth-set-default-theme sugar /usr/sbin/plymouth-set-default-theme sugar
dracut -N -f /boot/initramfs-$KERNEL_VERSION.img $KERNEL_VERSION sed -i -r 's/(omit_dracutmodules\+\=.*) plymouth (.*)/\1 \2/' /etc/dracut.conf.d/99-liveos.conf
dracut --force-add plymouth -N -f /boot/initramfs-$KERNEL_VERSION.img $KERNEL_VERSION
# Note that running rpm recreates the rpm db files which aren't needed or wanted # Note that running rpm recreates the rpm db files which aren't needed or wanted
rm -f /var/lib/rpm/__db* rm -f /var/lib/rpm/__db*
@ -109,3 +110,14 @@ EOF
/usr/bin/glib-compile-schemas /usr/share/glib-2.0/schemas /usr/bin/glib-compile-schemas /usr/share/glib-2.0/schemas
%end %end
%post --nochroot
for n in initramfs initrd; do
for img in "$LIVE_ROOT/images/pxeboot/$n"* ; do
[ -e "$img" ] && cp -a "$INSTALL_ROOT"/boot/initramfs-*.img "$img"
done
done
%end