fixups: flash-kernel: Add Plymouth settings to 'flash-kernel'

Signed-off-by: Dongjin Kim <tobetter@gmail.com>
Change-Id: Ie3e10ceba6fc181c777437120ce0c8c2f40be04a
This commit is contained in:
Dongjin Kim
2022-03-10 03:09:05 +09:00
parent 17ddf02687
commit 7b3b039f18

View File

@@ -1,5 +1,18 @@
#!/bin/sh
PLYMOUTH_CMDLINE="plymouth.ignore-serial-consoles"
if dpkg -s plymouth >/dev/null; then
echo "FRAMEBUFFER=y" > /etc/initramfs-tools/conf.d/splash
if [ -f /etc/default/flash-kernel ]; then
. /etc/default/flash-kernel
sed -i "s/^LINUX_KERNEL_CMDLINE=.*/LINUX_KERNEL_CMDLINE=\"$LINUX_KERNEL_CMDLINE $PLYMOUTH_CMDLINE\"/g" \
/etc/default/flash-kernel
fi
fi
echo flash-kernel flash-kernel/linux_cmdline string @@LINUX_KERNEL_CMDLINE@@ | \
debconf-set-selections