Merge "Disable splashimage for legacy grub."
This commit is contained in:
commit
23bb91dd5b
10
elements/serial-console/cleanup.d/99-fix-grub
Normal file
10
elements/serial-console/cleanup.d/99-fix-grub
Normal file
@ -0,0 +1,10 @@
|
|||||||
|
set -euxo
|
||||||
|
|
||||||
|
BOOTDIR=$TARGET_ROOT/boot
|
||||||
|
|
||||||
|
# Splashimage in grub has a known issue with serial console
|
||||||
|
# So grub config file needs to be fixed.
|
||||||
|
if [ -f $BOOTDIR/grub/grub.conf ] ; then
|
||||||
|
sed -i -e "/^splashimage/d;s/ rhgb\( \|$\)/\1/g;s/ quiet\( \|$\)/\1/g;/^serial/d;/^terminal/d;/^hiddenmenu/d" $BOOTDIR/grub/grub.conf
|
||||||
|
sed -i "/^default/aserial --unit=0 --speed=9600 --word=8 --parity=no --stop=1\nterminal --timeout=5 serial console" $BOOTDIR/grub/grub.conf
|
||||||
|
fi
|
Loading…
Reference in New Issue
Block a user