Skip to content

Instantly share code, notes, and snippets.

@FreeSlave
Created September 6, 2016 19:01
Show Gist options
  • Save FreeSlave/b0520e4a7c47d50aeeed44cee6aebdc9 to your computer and use it in GitHub Desktop.
Save FreeSlave/b0520e4a7c47d50aeeed44cee6aebdc9 to your computer and use it in GitHub Desktop.
FreeBSD grub entry for debian
#!/bin/sh
exec tail -n +3 $0
# 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' {
insmod ufs2
insmod bsd
search --fs-uuid --no-floppy --set=root *use blkid to get device UUID and insert here*
kfreebsd /boot/kernel/kernel
kfreebsd_loadenv /boot/device.hints
set kFreeBSD.vfs.root.mountfrom=ufs:/dev/ufsid/*insert device UUID*
set kFreeBSD.vfs.root.mountfrom.options=rw
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment