fixups: flash-kernel: fix to add 'root=...' to 'LINUX_KERNEL_CMDLINE'

Signed-off-by: Dongjin Kim <tobetter@gmail.com>
Change-Id: I468dc20bae92853b7885e63a0e2552f28283f515
This commit is contained in:
Dongjin Kim
2022-03-10 23:49:25 +09:00
parent 7b3b039f18
commit 0afbe54bc4

View File

@@ -2,6 +2,13 @@
PLYMOUTH_CMDLINE="plymouth.ignore-serial-consoles"
if [ -f /etc/default/flash-kernel ]; then
. /etc/default/flash-kernel
sed -i "s/^LINUX_KERNEL_CMDLINE=.*/LINUX_KERNEL_CMDLINE=\"root=UUID=@@DEFAULT_DEV_ROOTFS@@ $LINUX_KERNEL_CMDLINE\"/g" \
/etc/default/flash-kernel
fi
if dpkg -s plymouth >/dev/null; then
echo "FRAMEBUFFER=y" > /etc/initramfs-tools/conf.d/splash