|
|
翻译自 gentoo forums,原贴:
http://forums.gentoo.org/viewtop ... hlight-gfxmenu.html
1.下载打过gfxmenu补丁的gurb 和 gentoo 主题
这里是 grub 和 gfxboot 的 ebuild:
http://bugs.gentoo.org/attachment.cgi?id=58698&action=view
下面是 gentoo 的 grub 主题:
http://bugs.gentoo.org/attachment.cgi?id=58699&action=view
2.看你的 /etc/make.conf 里有没有这句:
- PORTDIR_OVERLAY="/usr/local/portage"
复制代码 (也可能是你指定的地址)
没有的话请加上。
3.
- tar -xjpvf grub-0.96-r2-gfxsplash-3.0-ebuilds.tar.bz -C /usr/local/
- ebuild /usr/local/portage/sys-boot/grub/grub-0.96-r2.ebuild digest
- ebuild /usr/local/portage/media-gfx/gfxboot/gfxboot-3.0.15-r1.ebuild digest
复制代码
4.删除老的 grub
5.安装 grub
- ACCEPT_KEYWORDS="x86 ~x86" emerge /usr/local/portage/sys-boot/grub/grub-0.96-r2.ebuild
- ACCEPT_KEYWORDS="x86 ~x86" emerge gfxboot
复制代码
6.安装 gentoo 主题
解压 gentoo.org-Krystal-gfxsplash-theme
- tar -xjvpf gentoo.org-Krystal-gfxsplash-theme.tar.bz2 && cd gentoo.org-Krystal && make
复制代码
把 gentoo.org-Krystal/boot/message 文件拷贝到 /boot
- mount /boot && cp message /boot/message
复制代码
7.最后,把/boot/grub/grub.conf 文件中的 splashimage 一行换成
(硬盘号视个人情况而定)
我的grub.conf象这样:
- default 0
- timeout 10
- #splashimage=(hd0,0)/grub/dilek.xpm.gz
- gfxmenu (hd0,0)/message
- color white/blue black/light-gray
- title Gentoo 2005.0 Kernel-2.6.11-r10NyN
- root (hd0,0)
- kernel (hd0,0)/kernel-2.6.11-NyN root=/dev/sda3 splash=silent,theme:livecd-2005.0 quiet CONSOLE=/dev/tty1 video=vesa:ywrap,mtrr vga=0x317 udev
- initrd (hd0,0)/fbsplash-livecd-2005.0-1024x768
- password **************
- title=Memtest86Plus
- root (hd0,0)
- kernel (hd0,0)/memtest86plus/memtest.bin
复制代码 |
|