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

Switching to GRUB 2 as the default bootloader



Hi all,

Until very recently using kfreebsd-loader was the only way to boot
GNU/kFreeBSD. This package contains the FreeBSD 5.4 bootloader, and it
was done in a very hackish way, that is not built from source. GRUB 2 
now supports booting FreeBSD kernel and also supports (among others)
UFS partitions.

That's why we have now choosen to use GRUB 2 as the default bootloader.
In the future that will allow us to boot on other filesystems like ZFS,
or XFS.

kfreebsd-loader is still supported for some time, but should be
considered as deprecated. Installation done using debian-installer are
already using GRUB 2 by default. For older installation, here is the
procedure to do the switch:

* Install kfreebsd-image-7.2-1-flavor (>= 7.2-5)

* Create /etc/kernel-img.conf containing:
postinst_hook = update-grub
postrm_hook   = update-grub

* Install grub-pc: 'apt-get install grub-pc'. Answer to the debconf
  question so that grub is installed on (at least) the MBR of your 
  first disk.

* Remove kfreebsd-loader: 'apt-get --purge remove kfreebsd-loader'

Don't hesitate to report problems on the mailing list. And if you want
to have a GRUB menu, don't forget to install desktop-base!

Cheers,
Aurelien

-- 
Aurelien Jarno	                        GPG: 1024D/F1BCDB73
aurelien@aurel32.net                 http://www.aurel32.net


Reply to: