[OpenIndiana-discuss] Grub2 and OI

Darko Hojnik hojnik at virtualizing.org
Sat Apr 2 00:02:55 UTC 2011


Hi,

I have found something


menuentry "Solaris" {
	  insmod zfs
	  search --label rpool --set root
	  if cpuid -l ; then
	     ISADIR=amd64;
	  else
  	     ISADIR=
	  fi

	  zfs-bootfs /ROOT/opensolaris-1@/ ZFS_BOOTFS

	  multiboot /ROOT/opensolaris-1@/platform/i86pc/kernel/$ISADIR/unix  
/platform/i86pc/kernel/$ISADIR/unix -B $ZFS_BOOTFS,console=graphics
	  module /ROOT/opensolaris-1@/platform/i86pc/$ISADIR/boot_archive  
/platform/i86pc/$ISADIR/boot_archive
}

So for understanding what is an boot_archive?
Is it similar to zpool.cache under FreeBSD?


Am 01.04.2011, 03:24 Uhr, schrieb Darko Hojnik <hojnik at virtualizing.org>:

> 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



More information about the OpenIndiana-discuss mailing list