[OpenIndiana-discuss] Grub2 and OI

Bayard Bell buffer.g.overflow at googlemail.com
Fri Apr 1 13:52:23 UTC 2011


grub2 is modular, so ZFS support exists as an extra module that exists in the community code base. Legacy grub is a completely different kettle of fish.

On 1 Apr 2011, at 06:20, Christopher Chan wrote:

> ZFS support was added to grub2?
> 
> I thought that the grub team did not take the patches and so only sun grub had zfs support?
> 
> On Friday, April 01, 2011 09:24 AM, Darko Hojnik wrote:
>> 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
>> 
>> _______________________________________________
>> OpenIndiana-discuss mailing list
>> OpenIndiana-discuss at openindiana.org
>> http://openindiana.org/mailman/listinfo/openindiana-discuss
> 
> 
> _______________________________________________
> OpenIndiana-discuss mailing list
> OpenIndiana-discuss at openindiana.org
> http://openindiana.org/mailman/listinfo/openindiana-discuss

-------------- next part --------------
A non-text attachment was scrubbed...
Name: PGP.sig
Type: application/pgp-signature
Size: 203 bytes
Desc: This is a digitally signed message part
URL: <http://openindiana.org/pipermail/openindiana-discuss/attachments/20110401/ac3e01dc/attachment-0001.bin>


More information about the OpenIndiana-discuss mailing list