32 OS="Illumos"
33 CLASS="--class illumos ${CLASS}"
34 ;;
35 esac
36
37 echo "menuentry '$(echo "$OS" | grub_quote)' ${CLASS} \$menuentry_id_option 'illumos-$(grub_get_device_id "${GRUB_DEVICE_BOOT}")' {"
38 save_default_entry | sed -e "s/^/\t/"
39 prepare_grub_to_access_device "${GRUB_DEVICE_BOOT}" | sed -e "s/^/\t/"
40 message="$(gettext_printf "Loading kernel of Illumos ...")"
41 cat << EOF
42 insmod gzio
43 if cpuid -l ; then
44 ISADIR=amd64
45 else
46 ISADIR=
47 fi
48 zfs-bootfs $($grub_mkrelpath /) ZFS_BOOTFS
49 multiboot $($grub_mkrelpath /platform/i86pc/kernel)/\$ISADIR/unix /platform/i86pc/kernel/\$ISADIR/unix -B \$ZFS_BOOTFS,console=text
50 module $($grub_mkrelpath /platform/i86pc)/\$ISADIR/boot_archive /platform/i86pc/\$ISADIR/boot_archive
51 }
52 EOF
|
32 OS="Illumos"
33 CLASS="--class illumos ${CLASS}"
34 ;;
35 esac
36
37 echo "menuentry '$(echo "$OS" | grub_quote)' ${CLASS} \$menuentry_id_option 'illumos-$(grub_get_device_id "${GRUB_DEVICE_BOOT}")' {"
38 save_default_entry | sed -e "s/^/\t/"
39 prepare_grub_to_access_device "${GRUB_DEVICE_BOOT}" | sed -e "s/^/\t/"
40 message="$(gettext_printf "Loading kernel of Illumos ...")"
41 cat << EOF
42 insmod gzio
43 if cpuid -l ; then
44 ISADIR=amd64
45 else
46 ISADIR=
47 fi
48 zfs-bootfs $($grub_mkrelpath /) ZFS_BOOTFS
49 multiboot $($grub_mkrelpath /platform/i86pc/kernel)/\$ISADIR/unix /platform/i86pc/kernel/\$ISADIR/unix -B \$ZFS_BOOTFS,console=text
50 module $($grub_mkrelpath /platform/i86pc)/\$ISADIR/boot_archive /platform/i86pc/\$ISADIR/boot_archive
51 }
52
53 submenu 'Illumos-entries' {
54 illumos_entries /@/boot/illumos.cfg
55 }
56 EOF
|