mirror of
git://soft.sys114.com/odroid-stamper
synced 2025-12-19 00:18:42 +09:00
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
37 lines
1.0 KiB
Bash
Executable File
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
|