Skip to content

Instantly share code, notes, and snippets.

@fajarnugraha
Last active August 29, 2015 14:16
Show Gist options
  • Select an option

  • Save fajarnugraha/12be8a2a7aa37184cf80 to your computer and use it in GitHub Desktop.

Select an option

Save fajarnugraha/12be8a2a7aa37184cf80 to your computer and use it in GitHub Desktop.
Grub config to enable automatic creation of grub menu entries on zfs root, needs lua module. Download to /rpool/grub/grub.cfg
set timeout=5
menuentry 'Ubuntu Trusty boot menu' {
configfile /ROOT/ubuntu/@/boot/grub/grub.cfg
}
menuentry "--- Auto-generated zfs root entries ---" {
insmod zfs
}
lua /grub/@/zfsroot.lua
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment