Add FreeBSD to Grub Menu

Antonio Olivares wingators at inbox.com
Wed Oct 3 22:02:12 UTC 2012



> -----Original Message-----
> From: wingators at inbox.com
> Sent: Wed, 3 Oct 2012 13:54:54 -0800
> To: test at lists.fedoraproject.org, test at lists.fedoraproject.org
> Subject: Re: Add FreeBSD to Grub Menu
> 
> 
> 
>> -----Original Message-----
>> From: lists at colorremedies.com
>> Sent: Tue, 02 Oct 2012 09:24:41 -0600
>> To: test at lists.fedoraproject.org
>> Subject: Re: Add FreeBSD to Grub Menu
>> 
>> In /boot/grub2 do you have a grub.cfg.new? Compare cfg with cfg.new,
>> does
>> new have all kernels but cfg doesn't?
>> 
>> Chris Murphy
>> --
> 
> [root at localhost boot]# cd grub2/
> [root at localhost grub2]# ls -l
> total 16
> -rw-------. 1 root root 6741 Oct  3 16:49 grub.cfg
> -rw-r--r--. 1 root root 1024 Sep 16 19:17 grubenv
> drwxr-xr-x. 3 root root 4096 May  9 15:23 themes
> [root at localhost grub2]# cat grub.cfg
> #
> # DO NOT EDIT THIS FILE
> #
> # It is automatically generated by grub2-mkconfig using templates
> # from /etc/grub.d and settings from /etc/default/grub
> #
> 
> ### BEGIN /etc/grub.d/00_header ###
> if [ -s $prefix/grubenv ]; then
>   load_env
> fi
> set default="0"
> 
> if [ x"${feature_menuentry_id}" = xy ]; then
>   menuentry_id_option="--id"
> else
>   menuentry_id_option=""
> fi
> 
> export menuentry_id_option
> 
> 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 {
>   if [ x$feature_all_video_module = xy ]; then
>     insmod all_video
>   else
>     insmod efi_gop
>     insmod efi_uga
>     insmod ieee1275_fb
>     insmod vbe
>     insmod vga
>     insmod video_bochs
>     insmod video_cirrus
>   fi
> }
> 
> if [ x$feature_default_font_path = xy ] ; then
>    font=unicode
> else
> insmod part_msdos
> insmod ext2
> set root='hd0,msdos3'
> if [ x$feature_platform_search_hint = xy ]; then
>   search --no-floppy --fs-uuid --set=root --hint-bios=hd0,msdos3
> --hint-efi=hd0,msdos3 --hint-baremetal=ahci0,msdos3
> 11803751-9c77-4e25-96d8-daa772b53e5c
> else
>   search --no-floppy --fs-uuid --set=root
> 11803751-9c77-4e25-96d8-daa772b53e5c
> fi
>     font="/usr/share/grub/unicode.pf2"
> fi
> 
> if loadfont $font ; then
>   set gfxmode=auto
>   load_video
>   insmod gfxterm
>   set locale_dir=$prefix/locale
>   set lang=en_US
>   insmod gettext
> fi
> terminal_output gfxterm
> insmod part_msdos
> insmod ext2
> set root='hd0,msdos3'
> if [ x$feature_platform_search_hint = xy ]; then
>   search --no-floppy --fs-uuid --set=root --hint-bios=hd0,msdos3
> --hint-efi=hd0,msdos3 --hint-baremetal=ahci0,msdos3
> 11803751-9c77-4e25-96d8-daa772b53e5c
> else
>   search --no-floppy --fs-uuid --set=root
> 11803751-9c77-4e25-96d8-daa772b53e5c
> fi
> insmod gfxmenu
> loadfont ($root)/boot/grub2/themes/system/DejaVuSans-10.pf2
> loadfont ($root)/boot/grub2/themes/system/DejaVuSans-12.pf2
> loadfont ($root)/boot/grub2/themes/system/DejaVuSans-Bold-14.pf2
> insmod png
> set theme=($root)/boot/grub2/themes/system/theme.txt
> export theme
> set timeout=5
> ### END /etc/grub.d/00_header ###
> 
> ### BEGIN /etc/grub.d/10_linux ###
> menuentry 'Fedora (3.6.0-2.fc18.i686)' --class fedora --class gnu-linux
> --class gnu --class os $menuentry_id_option
> 'gnulinux-simple-11803751-9c77-4e25-96d8-daa772b53e5c' {
> 	load_video
> 	set gfxpayload=keep
> 	insmod gzio
> 	insmod part_msdos
> 	insmod ext2
> 	set root='hd0,msdos3'
> 	if [ x$feature_platform_search_hint = xy ]; then
> 	  search --no-floppy --fs-uuid --set=root --hint-bios=hd0,msdos3
> --hint-efi=hd0,msdos3 --hint-baremetal=ahci0,msdos3
> 11803751-9c77-4e25-96d8-daa772b53e5c
> 	else
> 	  search --no-floppy --fs-uuid --set=root
> 11803751-9c77-4e25-96d8-daa772b53e5c
> 	fi
> 	echo 'Loading Fedora (3.6.0-2.fc18.i686)'
> 	linux	/boot/vmlinuz-3.6.0-2.fc18.i686 root=/dev/root ro rd.md=0 rd.lvm=0
> rd.dm=0 rd.luks=0 LANG=en_US.UTF-8 KEYTABLE=us
> 	echo 'Loading initial ramdisk ...'
> 	initrd /boot/initramfs-3.6.0-2.fc18.i686.img
> }
> menuentry 'Fedora' --class fedora --class gnu-linux --class gnu --class
> os $menuentry_id_option
> 'gnulinux-simple-11803751-9c77-4e25-96d8-daa772b53e5c' {
> 	load_video
> 	set gfxpayload=keep
> 	insmod gzio
> 	insmod part_msdos
> 	insmod ext2
> 	set root='hd0,msdos3'
> 	if [ x$feature_platform_search_hint = xy ]; then
> 	  search --no-floppy --fs-uuid --set=root --hint-bios=hd0,msdos3
> --hint-efi=hd0,msdos3 --hint-baremetal=ahci0,msdos3
> 11803751-9c77-4e25-96d8-daa772b53e5c
> 	else
> 	  search --no-floppy --fs-uuid --set=root
> 11803751-9c77-4e25-96d8-daa772b53e5c
> 	fi
> 	echo	'Loading Linux 3.6.0-0.rc7.git1.4.fc18.i686 ...'
> 	linux	/boot/vmlinuz-3.6.0-0.rc7.git1.4.fc18.i686
> root=UUID=11803751-9c77-4e25-96d8-daa772b53e5c ro rd.md=0 rd.lvm=0
> rd.dm=0 rd.luks=0
> 	echo	'Loading initial ramdisk ...'
> 	initrd	/boot/initramfs-3.6.0-0.rc7.git1.4.fc18.i686.img
> }
> submenu 'Advanced options for Fedora' $menuentry_id_option
> 'gnulinux-advanced-11803751-9c77-4e25-96d8-daa772b53e5c' {
> 	menuentry 'Fedora, with Linux 3.6.0-0.rc7.git1.4.fc18.i686' --class
> fedora --class gnu-linux --class gnu --class os $menuentry_id_option
'gnulinux-3.6.0-0.rc7.git1.4.fc18.i686-advanced-11803751-9c77-4e25-96d8-daa772b53e5c'
> {
> 		load_video
> 		set gfxpayload=keep
> 		insmod gzio
> 		insmod part_msdos
> 		insmod ext2
> 		set root='hd0,msdos3'
> 		if [ x$feature_platform_search_hint = xy ]; then
> 		  search --no-floppy --fs-uuid --set=root --hint-bios=hd0,msdos3
> --hint-efi=hd0,msdos3 --hint-baremetal=ahci0,msdos3
> 11803751-9c77-4e25-96d8-daa772b53e5c
> 		else
> 		  search --no-floppy --fs-uuid --set=root
> 11803751-9c77-4e25-96d8-daa772b53e5c
> 		fi
> 		echo	'Loading Linux 3.6.0-0.rc7.git1.4.fc18.i686 ...'
> 		linux	/boot/vmlinuz-3.6.0-0.rc7.git1.4.fc18.i686
> root=UUID=11803751-9c77-4e25-96d8-daa772b53e5c ro rd.md=0 rd.lvm=0
> rd.dm=0 rd.luks=0
> 		echo	'Loading initial ramdisk ...'
> 		initrd	/boot/initramfs-3.6.0-0.rc7.git1.4.fc18.i686.img
> 	}
> 	menuentry 'Fedora, with Linux 3.6.0-0.rc6.git0.2.fc18.i686' --class
> fedora --class gnu-linux --class gnu --class os $menuentry_id_option
'gnulinux-3.6.0-0.rc6.git0.2.fc18.i686-advanced-11803751-9c77-4e25-96d8-daa772b53e5c'
> {
> 		load_video
> 		set gfxpayload=keep
> 		insmod gzio
> 		insmod part_msdos
> 		insmod ext2
> 		set root='hd0,msdos3'
> 		if [ x$feature_platform_search_hint = xy ]; then
> 		  search --no-floppy --fs-uuid --set=root --hint-bios=hd0,msdos3
> --hint-efi=hd0,msdos3 --hint-baremetal=ahci0,msdos3
> 11803751-9c77-4e25-96d8-daa772b53e5c
> 		else
> 		  search --no-floppy --fs-uuid --set=root
> 11803751-9c77-4e25-96d8-daa772b53e5c
> 		fi
> 		echo	'Loading Linux 3.6.0-0.rc6.git0.2.fc18.i686 ...'
> 		linux	/boot/vmlinuz-3.6.0-0.rc6.git0.2.fc18.i686
> root=UUID=11803751-9c77-4e25-96d8-daa772b53e5c ro rd.md=0 rd.lvm=0
> rd.dm=0 rd.luks=0
> 		echo	'Loading initial ramdisk ...'
> 		initrd	/boot/initramfs-3.6.0-0.rc6.git0.2.fc18.i686.img
> 	}
> }
> 
> ### END /etc/grub.d/10_linux ###
> 
> ### BEGIN /etc/grub.d/20_linux_xen ###
> ### END /etc/grub.d/20_linux_xen ###
> 
> ### BEGIN /etc/grub.d/20_ppc_terminfo ###
> ### END /etc/grub.d/20_ppc_terminfo ###
> 
> ### BEGIN /etc/grub.d/30_os-prober ###
> ### END /etc/grub.d/30_os-prober ###
> 
> ### BEGIN /etc/grub.d/40_custom ###
> # This file provides an easy way to add custom menu entries.  Simply type
> the
> # menu entries you want to add after this comment.  Be careful not to
> change
> # the 'exec tail' line above.
> menuentry 'FreeBSD 9.0' {
> 	insmod part_msdos
> 	set root='(hd0,msdos1)'
> 	chainloader +1
> }
> 
> ### END /etc/grub.d/40_custom ###
> 
> ### BEGIN /etc/grub.d/41_custom ###
> if [ -f  ${config_directory}/custom.cfg ]; then
>   source ${config_directory}/custom.cfg
> elif [ -z "${config_directory}" -a -f  $prefix/custom.cfg ]; then
>   source $prefix/custom.cfg;
> fi
> ### END /etc/grub.d/41_custom ###
> 
> 
> Rebooting to see if I get to see newer kernel?  and of course the FreeBSD
> entry ?
> 
> Regards,
> 
> 
> Antonio

Things are way off :(

I install newer kernels apply today's update and still see the older kernel and can't boot to it :(

See the following:

[olivares at localhost ~]$ uname -a
Linux localhost.localdomain 3.6.0-0.rc2.git2.1.fc18.i686 #1 SMP Wed Aug 22 12:22:10 UTC 2012 i686 i686 i386 GNU/Linux
[olivares at localhost ~]$ rpm -qa kernel-*
kernel-devel-3.6.0-2.fc18.i686
kernel-headers-3.6.0-2.fc18.i686
kernel-modules-extra-3.6.0-0.rc7.git1.4.fc18.i686
kernel-devel-3.6.0-0.rc7.git1.4.fc18.i686
kernel-devel-3.6.0-0.rc6.git0.2.fc18.i686
kernel-modules-extra-3.6.0-0.rc6.git0.2.fc18.i686
kernel-modules-extra-3.6.0-2.fc18.i686
[olivares at localhost ~]$ rpm -qa linux-*
linux-firmware-20120925-0.1.git236367d.fc18.noarch
linux-atm-libs-2.5.1-5.fc18.i686
[olivares at localhost ~]$ rpm -qa kernel*
kernel-devel-3.6.0-2.fc18.i686
kernel-headers-3.6.0-2.fc18.i686
kernel-modules-extra-3.6.0-0.rc7.git1.4.fc18.i686
kernel-devel-3.6.0-0.rc7.git1.4.fc18.i686
kernel-devel-3.6.0-0.rc6.git0.2.fc18.i686
kernel-3.6.0-0.rc6.git0.2.fc18.i686
kernel-modules-extra-3.6.0-0.rc6.git0.2.fc18.i686
kernel-3.6.0-2.fc18.i686
kernel-3.6.0-0.rc7.git1.4.fc18.i686
kernel-modules-extra-3.6.0-2.fc18.i686
[olivares at localhost ~]$

What should I do?
Some program or another is not doing its job :(

Regards,


Antonio

____________________________________________________________
FREE 3D EARTH SCREENSAVER - Watch the Earth right on your desktop!
Check it out at http://www.inbox.com/earth




More information about the test mailing list