设置grub启动菜单
代码:
cat > /boot/grub/menu.lst << "EOF"
# Begin /boot/grub/menu.lst
# By default boot the first menu entry.
default 0
# Allow 30 seconds before booting the default.
timeout 30
# Use prettier colors.
color green/black light-green/black
# The first entry is for LFS.
title LFS 6.3
root (hd0,1)
kernel /boot/lfskernel-2.6.22.5 root=/dev/hda2 vga=788
EOF
注意:这里root后面的磁盘分区需要根据实际情况调整。
将menu.lst连接到/etc目录下
代码:
mkdir -v /etc/grub
ln -sv /boot/grub/menu.lst /etc/grub
退出制作环境:
代码:
logout
阅读(448) | 评论(0) | 转发(1) |