[OpenIndiana-discuss] Grub2 and OI

Darko Hojnik hojnik at virtualizing.org
Fri Apr 1 01:24:53 UTC 2011


Hi

I have cloned my Rootfs and copied it with rsync over ssh to an FreeBSD  
Laptop. I want dualbooting FreeBSD and OI from one ZFS Pool. Any Ideas how  
to configure Grub2 for Solaris?


schleppi# zfs list
NAME            USED  AVAIL  REFER  MOUNTPOINT
pool           19.4G   127G  1.65M  legacy
pool/debian     288M   127G   271M  legacy
pool/freebsd8  7.60G   127G  6.91G  legacy
pool/freebsd9    18K   127G    18K  legacy
pool/home      7.23G   127G  7.23G  /home
pool/solaris   2.27G   127G  2.27G  legacy
pool/swap         2G   129G   155M  -
schleppi#



# Grub2.cfg

# Timeout for menu
set timeout=10

# Set default boot entry as Entry 0
set default=0

         menuentry "FreeBSD 8.1 RELEASE AMD64 on pool/freebsd8" {
           kfreebsd /freebsd8@/boot/kernel/kernel
           kfreebsd_module_elf /freebsd8@/boot/kernel/opensolaris.ko
           kfreebsd_module_elf /freebsd8@/boot/kernel/zfs.ko
           kfreebsd_module_elf /freebsd8@/boot/kernel/if_wpi.ko
           kfreebsd_module_elf /freebsd8@/boot/modules/vboxdrv.ko
           kfreebsd_module_elf /freebsd8@/boot/kernel/sound.ko
           kfreebsd_module_elf /freebsd8@/boot/kernel/snd_hda.ko
           kfreebsd_module /freebsd8@/boot/zfs/zpool.cache  
type=/boot/zfs/zpool.cache
           set kFreeBSD.vfs.root.mountfrom=zfs:pool/freebsd8
}

         menuentry "FreeBSD 9.0 CURRENT AMD64 on pool/freebsd9" {
           kfreebsd /freebsd9@/boot/kernel/kernel
           kfreebsd_module_elf /freebsd8@/boot/kernel/opensolaris.ko
           kfreebsd_module_elf /freebsd8@/boot/kernel/zfs.ko
           kfreebsd_module_elf /freebsd8@/boot/kernel/if_wpi.ko
           kfreebsd_module_elf /freebsd8@/boot/modules/vboxdrv.ko
           kfreebsd_module_elf /freebsd8@/boot/kernel/sound.ko
           kfreebsd_module_elf /freebsd8@/boot/kernel/snd_hda.ko
           kfreebsd_module /freebsd8@/boot/zfs/zpool.cache  
type=/boot/zfs/zpool.cache
           set kFreeBSD.vfs.root.mountfrom=zfs:pool/freebsd8
}
         menuentry "Debian KfreeBSD Squeeze AMD64 on pool/debian" {
           kfreebsd /debian@/boot/kfreebsd-8.1-1-amd64.gz
           kfreebsd_module_elf  
/debian@/lib/modules/8.1-1-amd64/opensolaris.ko
           kfreebsd_module_elf /debian@/lib/modules/8.1-1-amd64/zfs.ko
           kfreebsd_module_elf /debian@/lib/modules/8.1-1-amd64/if_wpi.ko
           kfreebsd_module /debian@/boot/zfs/zpool.cache  
type=/boot/zfs/zpool.cache
           set kFreeBSD.vfs.root.mountfrom=zfs:pool/debian
}

kind regards
Darko



More information about the OpenIndiana-discuss mailing list