编辑grub的配置文件menu.list (/boot/grub/menu.lst)
# To enable grub serial console to ttya uncomment the following lines
# and comment out the splashimage line below
# WARNING: don't enable grub serial console when BIOS console serial
# redirection is active!!!
serial --unit=0 --speed=9600
terminal serial
#
# Uncomment the following line to enable GRUB splashimage on console
#splashimage /boot/grub/splash.xpm.gz
同时:
title Solaris Nevada snv_61 X86
kernel$ /platform/i86pc/kernel/$ISADIR
/unix -B console=ttya
module$ /platform/i86pc/$ISADIR/boot _archive
The key is to get the grub to go to the console to allow you to select
which kernel you want and
then to add "-B console=ttya" to tell the kernel to use that same
console port.
# To enable grub serial console to ttya uncomment the following lines
# and comment out the splashimage line below
# WARNING: don't enable grub serial console when BIOS console serial
# redirection is active!!!
serial --unit=0 --speed=9600
terminal serial
#
# Uncomment the following line to enable GRUB splashimage on console
#splashimage /boot/grub/splash.xpm.gz
同时:
title Solaris Nevada snv_61 X86
kernel$ /platform/i86pc/kernel/$ISADIR
module$ /platform/i86pc/$ISADIR/boot
The key is to get the grub to go to the console to allow you to select
which kernel you want and
then to add "-B console=ttya" to tell the kernel to use that same
console port.