[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Alternatives to grub and lilo? was grub2 menu problems



On Wed, 2014-04-23 at 23:25 +0300, Aaro Koskinen wrote:
> Hi,
> 
> On Wed, Apr 23, 2014 at 12:18:50PM -0400, Steve Litt wrote:
> > Is there a simpler bootloader that works with Linux? I don't want GUI.
> > I don't want a framebuffer. I don't want a splash screen. And I don't
> > want to wade through seven files to turn those things off. Basically,
> > I'd like something like LILO that understands ext4.
> 
> It should be still possible with GRUB2. I don't use any of those either,
> and my grub.cfg is like:
> 
> 	linux ...
> 	initrd ...
> 	boot

Currently, my manually edited grub.cfg does look like the one below. No
splash screens and other crap, I just didn't care about all unneeded
crap and some entries are strange, because I'm lazy and used provided
software to transform a menu.lst to a grub.cfg.

[rocketmouse@archlinux ~]$ cat /mnt/debi386/boot/grub/grub.cfg
# 2014-Apr-21

### BEGIN /etc/grub.d/00_header ###
if [ -s $prefix/grubenv ]; then
  load_env
fi
set default="0"
if [ "${prev_saved_entry}" ]; then
  set saved_entry="${prev_saved_entry}"
  save_env saved_entry
  set prev_saved_entry=
  save_env prev_saved_entry
  set boot_once=true
fi

function savedefault {
  if [ -z "${boot_once}" ]; then
    saved_entry="${chosen}"
    save_env saved_entry
  fi
}

function load_video {
  insmod vbe
  insmod vga
  insmod video_bochs
  insmod video_cirrus
}

insmod part_msdos
insmod ext2
set root='(hd1,msdos15)'
search --no-floppy --fs-uuid --set=root 3f6ced07-7c5d-4466-8914-50614b25126f
if loadfont /usr/share/grub/unicode.pf2 ; then
  set gfxmode=640x480
  load_video
  insmod gfxterm
  insmod part_msdos
  insmod ext2
  set root='(hd1,msdos15)'
  search --no-floppy --fs-uuid --set=root 3f6ced07-7c5d-4466-8914-50614b25126f
  set locale_dir=($root)/boot/grub/locale
  set lang=en_US
  insmod gettext
fi
terminal_output gfxterm
set timeout=5
### END /etc/grub.d/00_header ###

### BEGIN /etc/grub.d/05_debian_theme ###
insmod part_msdos
insmod ext2
set root='(hd1,msdos15)'
search --no-floppy --fs-uuid --set=root 3f6ced07-7c5d-4466-8914-50614b25126f
insmod png
if background_image /usr/share/images/desktop-base/joy-grub.png; then
  set color_normal=white/black
  set color_highlight=black/white
else
  set menu_color_normal=cyan/blue
  set menu_color_highlight=white/blue
fi
### END /etc/grub.d/05_debian_theme ###

menuentry 'Debian,                Linux 3.8.13-rt14-pae-rocketmouse-2' --class debian --class gnu-linux --class gnu --class os {
	load_video
	insmod gzio
	insmod part_msdos
	insmod ext2
	set root='(hd1,msdos15)'
	search --no-floppy --fs-uuid --set=root 3f6ced07-7c5d-4466-8914-50614b25126f
	echo	'Loading Linux 3.8.13-rt14-pae-rocketmouse-2 ...'
	linux	/boot/vmlinuz-3.8.13-rt14-pae-rocketmouse-2 root=UUID=3f6ced07-7c5d-4466-8914-50614b25126f ro  quiet
	echo	'Loading initial ramdisk ...'
	initrd	/boot/initrd.img-3.8.13-rt14-pae-rocketmouse-2
}

menuentry 'Debian,                Linux 3.12-0.bpo.1-rt-686-pae' --class debian --class gnu-linux --class gnu --class os {
	load_video
	insmod gzio
	insmod part_msdos
	insmod ext2
	set root='(hd1,msdos15)'
	search --no-floppy --fs-uuid --set=root 3f6ced07-7c5d-4466-8914-50614b25126f
	echo	'Loading Linux 3.12-0.bpo.1-rt-686-pae ...'
	linux	/boot/vmlinuz-3.12-0.bpo.1-rt-686-pae root=UUID=3f6ced07-7c5d-4466-8914-50614b25126f ro  quiet
	echo	'Loading initial ramdisk ...'
	initrd	/boot/initrd.img-3.12-0.bpo.1-rt-686-pae
}

menuentry 'Debian,                Linux 3.8.13.14-rt30-pae-rocketmouse-1' --class debian --class gnu-linux --class gnu --class os {
	load_video
	insmod gzio
	insmod part_msdos
	insmod ext2
	set root='(hd1,msdos15)'
	search --no-floppy --fs-uuid --set=root 3f6ced07-7c5d-4466-8914-50614b25126f
	echo	'Loading Linux 3.8.13.14-rt30-pae-rocketmouse-1 ...'
	linux	/boot/vmlinuz-3.8.13.14-rt30-pae-rocketmouse-1 root=UUID=3f6ced07-7c5d-4466-8914-50614b25126f ro  quiet
	echo	'Loading initial ramdisk ...'
	initrd	/boot/initrd.img-3.8.13.14-rt30-pae-rocketmouse-1
}

menuentry 'Debian GNU/Linux, with Linux 3.2.0-4-rt-686-pae' --class debian --class gnu-linux --class gnu --class os {
	load_video
	insmod gzio
	insmod part_msdos
	insmod ext2
	set root='(hd1,msdos15)'
	search --no-floppy --fs-uuid --set=root 3f6ced07-7c5d-4466-8914-50614b25126f
	echo	'Loading Linux 3.2.0-4-rt-686-pae ...'
	linux	/boot/vmlinuz-3.2.0-4-rt-686-pae root=UUID=3f6ced07-7c5d-4466-8914-50614b25126f ro  quiet
	echo	'Loading initial ramdisk ...'
	initrd	/boot/initrd.img-3.2.0-4-rt-686-pae
}

menuentry 'Debian GNU/Linux, with Linux 3.2.0-4-rt-686-pae (recovery mode)' --class debian --class gnu-linux --class gnu --class os {
	load_video
	insmod gzio
	insmod part_msdos
	insmod ext2
	set root='(hd1,msdos15)'
	search --no-floppy --fs-uuid --set=root 3f6ced07-7c5d-4466-8914-50614b25126f
	echo	'Loading Linux 3.2.0-4-rt-686-pae ...'
	linux	/boot/vmlinuz-3.2.0-4-rt-686-pae root=UUID=3f6ced07-7c5d-4466-8914-50614b25126f ro single 
	echo	'Loading initial ramdisk ...'
	initrd	/boot/initrd.img-3.2.0-4-rt-686-pae
}

	menuentry 'Kubuntu Saucy,         kernel 3.8.13-rt14-1-rt' --class kubuntu --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-3.8.13-rt14-1-rt-advanced-cb253c90-4261-4114-95e5-32a59c85c162' {
		insmod part_msdos
		insmod ext2
		set root='hd1,msdos11'
		if [ x$feature_platform_search_hint = xy ]; then
		  search --no-floppy --fs-uuid --set=root --hint-bios=hd1,msdos11 --hint-efi=hd1,msdos11 --hint-baremetal=ahci1,msdos11  cb253c90-4261-4114-95e5-32a59c85c162
		else
		  search --no-floppy --fs-uuid --set=root cb253c90-4261-4114-95e5-32a59c85c162
		fi
		echo	'Loading Linux 3.8.13-rt14-1-rt ...'
		linux	/boot/vmlinuz-3.8.13-rt14-1-rt root=UUID=cb253c90-4261-4114-95e5-32a59c85c162 ro   crashkernel=384M-2G:64M,2G-:128M quiet
		echo	'Loading initial ramdisk ...'
		initrd	/boot/initrd.img-3.8.13-rt14-1-rt
	}

	menuentry 'Kubuntu Saucy,         kernel 3.6.5-rt14' --class kubuntu --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-3.6.5-rt14-advanced-cb253c90-4261-4114-95e5-32a59c85c162' {
		insmod part_msdos
		insmod ext2
		set root='hd1,msdos11'
		if [ x$feature_platform_search_hint = xy ]; then
		  search --no-floppy --fs-uuid --set=root --hint-bios=hd1,msdos11 --hint-efi=hd1,msdos11 --hint-baremetal=ahci1,msdos11  cb253c90-4261-4114-95e5-32a59c85c162
		else
		  search --no-floppy --fs-uuid --set=root cb253c90-4261-4114-95e5-32a59c85c162
		fi
		echo	'Loading Linux 3.6.5-rt14 ...'
		linux	/boot/vmlinuz-3.6.5-rt14 root=UUID=cb253c90-4261-4114-95e5-32a59c85c162 ro   crashkernel=384M-2G:64M,2G-:128M quiet
		echo	'Loading initial ramdisk ...'
		initrd	/boot/initrd.img-3.6.5-rt14
	}
	
	menuentry 'Kubuntu Saucy,         kernel 3.11.0-19-lowlatency threadirqs' --class kubuntu --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-simple-cb253c90-4261-4114-95e5-32a59c85c162' {
	insmod part_msdos
	insmod ext2
	set root='hd1,msdos11'
	if [ x$feature_platform_search_hint = xy ]; then
	  search --no-floppy --fs-uuid --set=root --hint-bios=hd1,msdos11 --hint-efi=hd1,msdos11 --hint-baremetal=ahci1,msdos11  cb253c90-4261-4114-95e5-32a59c85c162
	else
	  search --no-floppy --fs-uuid --set=root cb253c90-4261-4114-95e5-32a59c85c162
	fi
	linux	/boot/vmlinuz-3.11.0-19-lowlatency root=UUID=cb253c90-4261-4114-95e5-32a59c85c162 ro quiet threadirqs
	initrd	/boot/initrd.img-3.11.0-19-lowlatency
}
	
	menuentry 'Kubuntu Saucy,         kernel 3.11.0-14-lowlatency threadirqs' --class kubuntu --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-simple-cb253c90-4261-4114-95e5-32a59c85c162' {
	insmod part_msdos
	insmod ext2
	set root='hd1,msdos11'
	if [ x$feature_platform_search_hint = xy ]; then
	  search --no-floppy --fs-uuid --set=root --hint-bios=hd1,msdos11 --hint-efi=hd1,msdos11 --hint-baremetal=ahci1,msdos11  cb253c90-4261-4114-95e5-32a59c85c162
	else
	  search --no-floppy --fs-uuid --set=root cb253c90-4261-4114-95e5-32a59c85c162
	fi
	linux	/boot/vmlinuz-3.11.0-14-lowlatency root=UUID=cb253c90-4261-4114-95e5-32a59c85c162 ro quiet threadirqs
	initrd	/boot/initrd.img-3.11.0-14-lowlatency
}

	menuentry 'Kubuntu Saucy,         kernel 3.11.0-14-lowlatency single' --class kubuntu --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-simple-cb253c90-4261-4114-95e5-32a59c85c162' {
	insmod part_msdos
	insmod ext2
	set root='hd1,msdos11'
	if [ x$feature_platform_search_hint = xy ]; then
	  search --no-floppy --fs-uuid --set=root --hint-bios=hd1,msdos11 --hint-efi=hd1,msdos11 --hint-baremetal=ahci1,msdos11  cb253c90-4261-4114-95e5-32a59c85c162
	else
	  search --no-floppy --fs-uuid --set=root cb253c90-4261-4114-95e5-32a59c85c162
	fi
	linux	/boot/vmlinuz-3.11.0-14-lowlatency root=UUID=cb253c90-4261-4114-95e5-32a59c85c162 ro single
	initrd	/boot/initrd.img-3.11.0-14-lowlatency
}

menuentry 'Arch Linux Rt' {
  set root='(hd0,9)'; set legacy_hdbias='0'
  legacy_kernel   '/boot/vmlinuz-linux-rt' '/boot/vmlinuz-linux-rt' 'root=/dev/sda9' 'ro'
  legacy_initrd '/boot/initramfs-linux-rt.img' '/boot/initramfs-linux-rt.img'
  
}

menuentry 'Arch Linux Rt LTS' {
  set root='(hd0,9)'; set legacy_hdbias='0'
  legacy_kernel   '/boot/vmlinuz-linux-rt-lts' '/boot/vmlinuz-linux-rt-lts' 'root=/dev/sda9' 'ro'
  legacy_initrd '/boot/initramfs-linux-rt-lts.img' '/boot/initramfs-linux-rt-lts.img'

}


menuentry 'Arch Linux Rt nohz=off' {
  set root='(hd0,9)'; set legacy_hdbias='0'
  legacy_kernel   '/boot/vmlinuz-linux-rt' '/boot/vmlinuz-linux-rt' 'root=/dev/sda9' 'ro' 'nohz=off'
  legacy_initrd '/boot/initramfs-linux-rt.img' '/boot/initramfs-linux-rt.img'
  
}

menuentry 'Arch Linux' {
  set root='(hd0,9)'; set legacy_hdbias='0'
  legacy_kernel   '/boot/vmlinuz-linux' '/boot/vmlinuz-linux' 'root=/dev/sda9' 'ro'
  legacy_initrd '/boot/initramfs-linux.img' '/boot/initramfs-linux.img'
  
}

menuentry 'Arch Linux Fallback' {
  set root='(hd0,9)'; set legacy_hdbias='0'
  legacy_kernel   '/boot/vmlinuz-linux' '/boot/vmlinuz-linux' 'root=/dev/sda9' 'ro'
  legacy_initrd '/boot/initramfs-linux-fallback.img' '/boot/initramfs-linux-fallback.img'
  
}

menuentry 'openSUSE 11.2,         Kernel 2.6.31.6-rt19' {
  set root='(hd0,7)'; set legacy_hdbias='0'
  legacy_kernel   '/boot/vmlinuz-2.6.31.6-rt19' '/boot/vmlinuz-2.6.31.6-rt19' 'root=/dev/sda7'
  legacy_initrd '/boot/initrd-2.6.31.6-rt19' '/boot/initrd-2.6.31.6-rt19'
}

menuentry "FreeBSD"{
    set root=(hd0,msdos1)
    chainloader +1
}

menuentry "XP"{
    set root=(hd1,1)
    drivemap -s hd0 hd1
    chainloader +1
}

menuentry 'Ubuntu Quantal,        kernel 3.6.5-rt14' {
  set root='(hd1,9)'; set legacy_hdbias='0'
  legacy_kernel   '/boot/vmlinuz-3.6.5-rt14' '/boot/vmlinuz-3.6.5-rt14' 'root=/dev/sdb9' 'ro' 'quiet' ''
  legacy_initrd '/boot/initrd.img-3.6.5-rt14' '/boot/initrd.img-3.6.5-rt14'
  
}

menuentry 'Ubuntu Quantal,        kernel 3.10.9-rt5 experimental' {
  set root='(hd1,9)'; set legacy_hdbias='0'
  legacy_kernel   '/boot/vmlinuz-3.10.9-rt5' '/boot/vmlinuz-3.10.9-rt5' 'root=/dev/sdb9' 'ro' 'quiet' ''
  legacy_initrd '/boot/initrd.img-3.10.9-rt5' '/boot/initrd.img-3.10.9-rt5'
}

menuentry 'Ubuntu Quantal,        kernel 3.5.0-18-lowlatency threadirqs' {
  set root='(hd1,9)'; set legacy_hdbias='0'
  legacy_kernel   '/boot/vmlinuz-3.5.0-18-lowlatency' '/boot/vmlinuz-3.5.0-18-lowlatency' 'root=/dev/sdb9' 'ro' 'quiet' 'threadirqs'
  legacy_initrd '/boot/initrd.img-3.5.0-18-lowlatency' '/boot/initrd.img-3.5.0-18-lowlatency'
  
}

menuentry 'Ubuntu Quantal,        kernel 3.5.0-18-lowlatency (recovery mode)' {
  set root='(hd1,9)'; set legacy_hdbias='0'
  legacy_kernel   '/boot/vmlinuz-3.5.0-18-lowlatency' '/boot/vmlinuz-3.5.0-18-lowlatency' 'root=/dev/sdb9' 'ro' 'single'
  legacy_initrd '/boot/initrd.img-3.5.0-18-lowlatency' '/boot/initrd.img-3.5.0-18-lowlatency'
  
}

menuentry 'Ubuntu Studio Quantal, Kernel 3.6.5-rt14' {
  set root='(hd1,13)'; set legacy_hdbias='0'
  legacy_kernel   '/boot/vmlinuz-3.6.5-rt14' '/boot/vmlinuz-3.6.5-rt14' 'root=/dev/sdb13' 'ro' 'quiet'
  legacy_initrd '/boot/initrd.img-3.6.5-rt14' '/boot/initrd.img-3.6.5-rt14'
  
}

menuentry 'Ubuntu Studio Quantal, Kernel 3.5.0-18-lowlatency threadirqs' {
  set root='(hd1,13)'; set legacy_hdbias='0'
  legacy_kernel   '/boot/vmlinuz-3.5.0-18-lowlatency' '/boot/vmlinuz-3.5.0-18-lowlatency' 'root=/dev/sdb13' 'ro' 'quiet' 'threadirqs'
  legacy_initrd '/boot/initrd.img-3.5.0-18-lowlatency' '/boot/initrd.img-3.5.0-18-lowlatency'
  
}

menuentry 'Ubuntu Studio Precise, Kernel 3.0.30 threadirqs' {
  #set root='(hd1,1)'; set legacy_hdbias='0'
  #legacy_kernel   '/boot/vmlinuz-3.0.30' '/boot/vmlinuz-3.0.30' 'root=UUID=338316fb-364e-4a43-8deb-738127f878ce' 'ro' 'quiet' 'threadirqs'
  set root='(hd2,1)'; set legacy_hdbias='0'
  legacy_kernel   '/boot/vmlinuz-3.0.30' '/boot/vmlinuz-3.0.30' 'root=UUID=948e9fa0-1bb5-4fd4-847c-a7cfbc816a40' 'ro' 'quiet' 'threadirqs'
  legacy_initrd '/boot/initrd.img-3.0.30' '/boot/initrd.img-3.0.30'
  
}

menuentry 'Ubuntu Studio Precise, Kernel 3.2.0-23-lowlatency threadirqs' {
  #set root='(hd1,1)'; set legacy_hdbias='0'
  #legacy_kernel   '/boot/vmlinuz-3.2.0-23-lowlatency' '/boot/vmlinuz-3.2.0-23-lowlatency' 'root=UUID=338316fb-364e-4a43-8deb-738127f878ce' 'ro' 'quiet' 'threadirqs'
  set root='(hd2,1)'; set legacy_hdbias='0'
  legacy_kernel   '/boot/vmlinuz-3.2.0-23-lowlatency' '/boot/vmlinuz-3.2.0-23-lowlatency' 'root=UUID=948e9fa0-1bb5-4fd4-847c-a7cfbc816a40' 'ro' 'quiet' 'threadirqs'
  legacy_initrd '/boot/initrd.img-3.2.0-23-lowlatency' '/boot/initrd.img-3.2.0-23-lowlatency'
  
}

menuentry 'Edubuntu 10.10,        Kernel 2.6.33.9-rt31' {
  set root='(hd1,8)'; set legacy_hdbias='0'
  legacy_kernel   '/boot/vmlinuz-2.6.33.9-rt31' '/boot/vmlinuz-2.6.33.9-rt31' 'root=UUID=ded93dfb-37ae-48cf-a3a3-b613aa5704fd' 'ro'
  legacy_initrd '/boot/initrd.img-2.6.33.9-rt31' '/boot/initrd.img-2.6.33.9-rt31'
  
}

menuentry 'Ubuntu Studio Oz,      Kernel 3.0.0-17-generic' {
  set root='(hd1,6)'; set legacy_hdbias='0'
  legacy_kernel   '/boot/vmlinuz-3.0.0-17-generic' '/boot/vmlinuz-3.0.0-17-generic' 'root=UUID=0241b2ac-a0ab-44de-8d73-0ed084e152e6'
  legacy_initrd '/boot/initrd.img-3.0.0-17-generic' '/boot/initrd.img-3.0.0-17-generic'
  
}

menuentry 'Ubuntu Studio Oz,      Kernel 3.0.0-20-generic' {
  set root='(hd1,6)'; set legacy_hdbias='0'
  legacy_kernel   '/boot/vmlinuz-3.0.0-20-generic' '/boot/vmlinuz-3.0.0-20-generic' 'root=UUID=0241b2ac-a0ab-44de-8d73-0ed084e152e6'
  legacy_initrd '/boot/initrd.img-3.0.0-20-generic' '/boot/initrd.img-3.0.0-20-generic'
  
}


Reply to: