[kde-freebsd] FreeBSD + KDE + GRUB = Happy family

David Bruce Naylor naylor.b.david at gmail.com
Wed Nov 18 15:27:27 CET 2009


Hi,

I've managed to get kdm to work nicely with our grub.  See attached for the 
patch.  This requires a 'special' menu.lst to support selecting next boot OS 
and the BootManager option in kdmrc to be set to "GRUB".  

Sample file:

# Important line, tells grub to use saved option to boot from
default saved 
timeout 3

title FreeBSD 8.0-i386
        root (hd1,0,a)
        kernel /boot/loader
        # Set the default, for next boot, to 1
        savedefault 1

title FreeBSD 8.0-amd64
        root (hd0,0,a)
        kernel /boot/loader
        # No need to set default as we are it
        #savedefault

# Windows Vista
title Windows Vista
        root (hd1,1)
        makeactive
        chainloader +1
        # Set the default, for next boot, to 1
        savedefault 1

Make sure you run `grub-set-default 1` otherwise grub will bork when it hits 
the savedefault line (since it cannot create files and expects one to be 
there).  

Most of the linux distributions have a patched version of grub that allows a 
difference (and easier) setup.  (The patch is called grub-0.97-once.)  We 
could integrate that patch (and eliminate the need for this patch) but I feel 
this way allows for greater flexibility.  

Outstanding task: teach kdm to read the defaults file to correctly get the 
next booting option (vs assuming the first one is the default).  

For those on amd64 an easy way to get grub to work is to install the i386 grub 
package (it doesn't have any dependencies beyond the base system).  I'm 
currently running grub on amd64.  

Regards,

David
-------------- next part --------------
A non-text attachment was scrubbed...
Name: patch-kdm-backend-bootman.c
Type: text/x-csrc
Size: 922 bytes
Desc: not available
Url : http://mail.kde.org/pipermail/kde-freebsd/attachments/20091118/278c14c2/attachment.c 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 196 bytes
Desc: This is a digitally signed message part.
Url : http://mail.kde.org/pipermail/kde-freebsd/attachments/20091118/278c14c2/attachment.sig 


More information about the kde-freebsd mailing list