plymouth: add feature plymouth to initrd.mk for rootfs

This commit is contained in:
Anton Midyukov 2023-06-05 16:17:36 +07:00
parent 855b4a3273
commit 923a02f07b
2 changed files with 5 additions and 1 deletions

View File

@ -32,7 +32,6 @@ endif
@$(call add,THE_BRANDING,bootsplash graphics)
@$(call add,THE_PACKAGES,make-initrd-plymouth cpio)
ifeq (vm,$(IMAGE_CLASS))
@$(call add,VM_INITRDFEATURES,plymouth)
@$(call add,BASE_BOOTARGS,quiet loglevel=3 splash)
endif

View File

@ -6,5 +6,10 @@ if [ -f "$CONFIG" ]; then
grep -q '^Theme=' "$CONFIG" || sed -i 's/#\([T\[]\)/\1/' "$CONFIG"
fi
CONFIG="$destdir/etc/initrd.mk"
if [ -f "$CONFIG" ]; then
grep -q plymouth "$CONFIG" || echo 'FEATURES += plymouth' >> "$CONFIG"
fi
cp -a /usr/share/plymouth/default-install-duration \
/var/lib/plymouth/boot-duration ||: