我编译了最新的内核,菜单.lst更新如下。
我的目标是保留另一个内核,这样如果新内核失败,我们仍然可以从另一个内核启动。
这是实现这一目标的正确方法吗?
# Modified by YaST2. Last modification on Thu Jan 19 17:10:38 IST 2012
# THIS FILE WILL BE PARTIALLY OVERWRITTEN by perl-Bootloader
# Configure custom boot parameters for updated kernels in /etc/sysconfig/bootloader
default 2
timeout 8
##YaST - generic_mbr
gfxmenu (hd0,1)/boot/message
##YaST - activate
###Don't change this comment - YaST2 identifier: Original name: linux###
title Desktop -- openSUSE 11.3 - 3.2.1-12
kernel (hd0,1)/boot/vmlinuz-3.2.1-12-desktop root=/dev/disk/by-id/ata-ST3250310AS_6RYNQEXY-part2 resume=/dev/disk/by-id/ata-ST3250310AS_6RYNQEXY-part1 splash=silent quiet showopts vga=0x31a
###Don't change this comment - YaST2 identifier: Original name: failsafe###
title Failsafe -- openSUSE 11.3 - 3.2.1-12
kernel (hd0,1)/boot/vmlinuz-3.2.1-12-desktop root=/dev/disk/by-id/ata-ST3250310AS_6RYNQEXY-part2 showopts apm=off noresume edd=off powersaved=off nohz=off highres=off processor.max_cstate=1 nomodeset x11failsafe vga=0x31a
###Don't change this comment - YaST2 identifier: Original name: linux###
title Desktop -- openSUSE 11.3 - 2.6.34-12
root (hd0,1)
kernel /boot/vmlinuz-2.6.34-12-desktop root=/dev/disk/by-id/ata-ST3250310AS_6RYNQEXY-part2 resume=/dev/disk/by-id/ata-ST3250310AS_6RYNQEXY-part1 splash=silent quiet showopts vga=0x31a
initrd /boot/initrd-2.6.34-12-desktop
###Don't change this comment - YaST2 identifier: Original name: failsafe###
title Failsafe -- openSUSE 11.3 - 2.6.34-12
root (hd0,1)
kernel /boot/vmlinuz-2.6.34-12-desktop root=/dev/disk/by-id/ata-ST3250310AS_6RYNQEXY-part2 showopts apm=off noresume edd=off powersaved=off nohz=off highres=off processor.max_cstate=1 nomodeset x11failsafe vga=0x31a
initrd /boot/initrd-2.6.34-12-desktop
答案1
我使用的是 grub1,我的看起来像这样:
# (0) Arch Linux
title Arch Linux
root (hd0,0)
kernel /vmlinuz-linux root=/dev/sda3 resume=/dev/sda2 ro loglevel=3
initrd /initramfs-linux.img
# (1) Arch Linux backup
title Arch Linux backup
root (hd0,0)
kernel /vmlinuz-linux-backup root=/dev/sda3 resume=/dev/sda2 ro loglevel=3
initrd /initramfs-linux-backup.img
# (2) Arch Linux FB
title Arch Linux Fallback
root (hd0,0)
kernel /vmlinuz-linux root=/dev/sda3 ro quiet
initrd /initramfs-linux-fallback.img
另外,昨天我构建了内核并执行了 mkinitcpio -p linux-new 。无线网络不起作用,所以我将其恢复为旧版本。
答案2
这是我的菜单。第一
default 1
timeout 8
gfxmenu (hd1,4)/message
###Don't change this comment - YaST2 identifier: Original name: linux###
title Zen-Kernel - 3.0.3-zen
root (hd1,4)
kernel /boot/vmlinuz-3.0.3-zen rw root=/dev/sda7 rw resume=/dev/sda6
showopts quiet fastboot raid=noautodetect radeon.modeset=1
radeon.lowpower=1 radeon.dynpm=1 video=1440x900 acpi_osi="Linux"
pcie_aspm=force thermal.act=90 acpi.power_nocheck=1 init=/sbin/sysvinit
nohz=off