plymouth: initial support rootfs
This commit is contained in:
parent
ffc0b9a373
commit
b4674cd512
@ -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
|
||||
|
10
features.in/plymouth/rootfs/image-scripts.d/10-plymouth
Executable file
10
features.in/plymouth/rootfs/image-scripts.d/10-plymouth
Executable 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 ||:
|
Loading…
x
Reference in New Issue
Block a user