Monday, July 28, 2008

make no image on grub

x86/x64 system에서 console에 대한 처리에 가장 적절한 답은, LOM에서 제공되는 java based의 virtual console일 것이다. 하지만, 이것이 마음에 들지 않거나 지원되지 아니하는 model일 경우 remote console로서는 SP/xLOM의 serial console redirection을 선택할 수 있다. 하지만 이와 같은 설정에는 한 가지 불편이 따른다. 바로, grub 화면이 보이지 않는다는 것이다.

이건 solaris의 grub에서 splashimage가 default로 지정되어 있기 때문인데, serial console에서는 image data를 처리할 수 없다. 간단히 comment out처리하여 console redirect된 화면을 image를 배제함으로써 원활히 볼 수 있다.

kj201100@spoc $ cd /boot/grub/
kj201100@spoc $ ls -al ./menu.lst
-rw-r--r-- 1 root sys 1853 Apr 23 14:11 ./menu.lst
kj201100@spoc $ vi ./menu.lst
1 #pragma ident "@(#)menu.lst 1.1 05/09/01 SMI"
2 #
3 # default menu entry to boot
4 default 0
5 #
6 # menu timeout in second before default OS is booted
7 # set to -1 to wait for user input
8 timeout 10
9 #
10 # To enable grub serial console to ttya uncomment the following lines
11 # and comment out the splashimage line below
12 # WARNING: don't enable grub serial console when BIOS console serial
13 # redirection is active!!!
14 # serial --unit=0 --speed=9600
15 # terminal serial
16 #
17 # Uncomment the following line to enable GRUB splashimage on console
18 splashimage /boot/grub/splash.xpm.gz
19 #
20 # To chainload another OS
21 #
22 # title Another OS
23 # root (hd,)
24 # chainloader +1
25 #
26 # To chainload a Solaris release not based on grub
27 #

18번째 줄의 부분을 '#'으로 comment out처리하면 된다. 다음 reboot 시에는 완전히 image가 배제된 grub 화면을 볼 수 있다. 아름다운 것은 실용 앞에 의미를 상실한다. 실용적인 것은 간단하고 명료한 것이 기본이다.

No comments:

Post a Comment