<>

3.1. 安装 grub,创建 menu.lst,安装 kernel

执行以下命令:

cd $WORK

#install grub
mkdir iso/boot/grub -p
cp /usr/lib/grub/i386-pc/stage2_eltorito iso/boot/grub

#create menu.lst
cat > iso/boot/grub/menu.lst << EOF
default 0
timeout 5
color green/black light-green/black
title grub bootcd
  root(cd)
  kernel /boot/kernel
  initrd /boot/initramfs.igz
EOF

#install kernel
cp /boot/lfskernel-* iso/boot/kernel

可以 ./mkbootcd 看到现在的进展

Figure 3.1. Screenshot: Grub works

Screenshot: Grub works

Figure 3.2. Screenshot: Kernel works

Screenshot: Kernel works