plymouth: initial support rootfs

This commit is contained in:
Anton Midyukov 2020-02-20 01:33:26 +07:00
parent ffc0b9a373
commit b4674cd512
2 changed files with 22 additions and 1 deletions

View File

@ -24,7 +24,18 @@ else
use/plymouth/stage2: use/plymouth use/branding; @:
endif
use/plymouth/base: use/plymouth/stage2
ifeq (vm,$(IMAGE_CLASS))
use/plymouth/vm: use/plymouth use/branding use/kernel/initrd-setup
@$(call add,VM_INITRDFEATURES,plymouth)
@$(call add,THE_BRANDING,bootsplash)
@$(call add,THE_PACKAGES_REGEXP,make-initrd-plymouth)
@$(call add,BASE_BOOTARGS,quiet splash)
@$(call add,THE_KMODULES,drm)
else
use/plymouth/vm: use/plymouth; @:
endif
use/plymouth/base: use/plymouth/stage2 use/plymouth/vm
ifeq (distro,$(IMAGE_CLASS))
@$(call add,INSTALL2_PACKAGES,installer-feature-setup-plymouth)
endif

View File

@ -0,0 +1,10 @@
#!/bin/sh
CONFIG=/etc/plymouth/plymouthd.conf
if [ -f "$CONFIG" ]; then
grep -q '^Theme=' "$CONFIG" || sed -i 's/#\([T\[]\)/\1/' "$CONFIG"
fi
cp -a /usr/share/plymouth/default-install-duration \
/var/lib/plymouth/boot-duration ||: