Skip to content

Instantly share code, notes, and snippets.

@patrl
Created October 3, 2016 14:38
Show Gist options
  • Save patrl/2055e0331275dc435976368035e9e822 to your computer and use it in GitHub Desktop.
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/.
#!/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