Created
October 3, 2016 14:38
-
-
Save patrl/2055e0331275dc435976368035e9e822 to your computer and use it in GitHub Desktop.
Custom menu entries for grub2 for btrfs subvolumes. This file lives in /etc/grub.d/.
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 "NixOS" { | |
set root=(hd0,gpt3) | |
configfile '/@nixos/boot/grub/grub.cfg' | |
} | |
menuentry "Arch" { | |
set root=(hd0,gpt3) | |
configfile '/@arch/boot/grub/grub.cfg' | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment