Gentoo quickinstall with Sabayon’s kernel

為什麼要這樣做,用意?

畢竟對一般人來說要懂 kernel 裡那麼多功能到底是做什麼相當的困難,sabayon 的 kernel 我試用了幾個星期覺得相當好用,不像自己手編的少了一個什麼就得重編一次,用 liveCD 開機再以 genkernel 編的感覺也不盡完整而且肥大(是跟著 loading 進來的 moduels 肥大),sabayon 的連 NB 的暫停、冬眠等功能都好了,是 Desktop 的良伴啊!

Quickinstall 就參考官站的 Gentoo Linux x86 Quick Install Guide

我從中間說起,重點擺在使用 Sabayon 的 kernel,做完 Code Listing 2.18:

# chroot /mnt/gentoo /bin/bash
# env-update && source /etc/profile
一直到
# hostname -f

現在要為加入 sabayon 的 overlay 準備,在 package.use 中加上下列的相關 use:

# cat /etc/portage/package.use
app-portage/layman git
sys-kernel/linux-sabayon grub symlink

裝上要用的套件:

# emerge layman grub
# layman -L
# layman -a sabayon
# emerge linux-sabayon

這個步驟會花比較多的時間,它除了 download source tar ball 外,也會自動用 genkernel 編核心和模組,完成後你就會看到 /boot 裡有 kernel 相關檔,/lib/modules 也有模組資料,再來檢查 grub 用的 menu.lst 檔有沒有加入它的開機選項:

title Sabayon Gentoo Linux (genkernel-x86-2.6.29-sabayon)
root (hd0,4)
kernel /boot/kernel-genkernel-x86-2.6.29-sabayon  root=/dev/ram0 ramdisk=8192 real_root=/dev/sda5  init=/linuxrc splash=silent,theme:sabayon vga=791 CONSOLE=/dev/tty1 quiet resume=swap:/dev/sda7
initrd /boot/initramfs-genkernel-x86-2.6.29-sabayon
savedefault

就可以依照 Gentoo Linux x86 Quick Install Guide 的 Code Listing 2.20 繼續安裝,若你要像 sabayon 那樣有漂亮的開機 splash,就得再加上它的 theme,及參閱 spalsh 的相關設定了。


Posted

in

by