Commit 6d1e0af2 authored by Leigh B Stoller's avatar Leigh B Stoller
Browse files

Add patch from Hussam to remove serial line when vgaonly is set.

Avoids a problem on machines with no serial port.
parent 8912cc50
......@@ -774,6 +774,22 @@ dolinux() {
*)
;;
esac
# Added by Hussam to disable the serial line defination
grep -E '^serial.*--speed' $gconf >/dev/null 2>&1
case $? in
0)
echo " disabling serial line config in grub"
sed -i .preemulab -e "s;^serial;#serial;" $gconf || {
echo "Failed to update serial line in $gconf"
umount $rootdev
return 1
}
;;
*)
;;
esac
grep -E "console=ttyS" $gconf >/dev/null 2>&1
case $? in
0)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment