Created
September 6, 2016 19:01
-
-
Save FreeSlave/b0520e4a7c47d50aeeed44cee6aebdc9 to your computer and use it in GitHub Desktop.
FreeBSD grub entry for debian
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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