Skip to content

Instantly share code, notes, and snippets.

@nivit
Created June 28, 2023 15:26
Show Gist options
  • Save nivit/ef2af4db8588c3cb768a987a3eb64701 to your computer and use it in GitHub Desktop.
Save nivit/ef2af4db8588c3cb768a987a3eb64701 to your computer and use it in GitHub Desktop.
Grub menuentry for FreeBSD (zfs)
#!/bin/sh
exec tail -n +3 $0
#
# File name: /etc/grub.d/40_custom
#
# This file provides an easy way to add custom menu entries. Simply type the
# menu entries you want to add after this comment. Be careful not to change
# the 'exec tail' line above.
menuentry "FreeBSD - The Power To Server" {
insmod part_gpt
insmod zfs
search --set --label zroot # default name
kfreebsd (hd2,gpt3)/ROOT/default/@/boot/zfsloader
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment