Files
odroid-stamper/fixups/S90-flash-kernel
Dongjin Kim 50a5036dc9 liveboot: prevent display 'Please remove the installation medium'
Adding 'noprompt' won't wait till user press an enter key with the
message 'Please remove the installation medium: press Enter'.

Signed-off-by: Dongjin Kim <tobetter@gmail.com>
Change-Id: I4d4d8987d40b62057bcea11804d26c25ca11146f
2022-07-20 17:03:05 +09:00

37 lines
1.0 KiB
Bash
Executable File

#!/bin/sh
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
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
if [ "x@@LIVESYSTEM@@" = "xtrue" ]; then
if [ -f /etc/default/flash-kernel ]; then
. /etc/default/flash-kernel
sed -i "s/^LINUX_KERNEL_CMDLINE=.*/LINUX_KERNEL_CMDLINE=\"$LINUX_KERNEL_CMDLINE boot=casper toram noprompt\"/g" \
/etc/default/flash-kernel
fi
fi
/usr/sbin/update-initramfs -u
rm -rf /overlay