Skip to content

Instantly share code, notes, and snippets.

@grahamc

grahamc/broken Secret

Last active May 13, 2018 15:57
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save grahamc/6ee18ab09846e97e4a29f3d16675be1f to your computer and use it in GitHub Desktop.
Save grahamc/6ee18ab09846e97e4a29f3d16675be1f to your computer and use it in GitHub Desktop.
# Automatically generated. DO NOT EDIT THIS FILE!
search --set=drive2 --fs-uuid 2cb33080-dbc5-412c-82ae-cdbb4ccbd832
search --set=drive1 --fs-uuid 2cb33080-dbc5-412c-82ae-cdbb4ccbd832
if [ -s $prefix/grubenv ]; then
load_env
fi
# ‘grub-reboot’ sets a one-time saved entry, which we process here and
# then delete.
if [ "${next_entry}" ]; then
set default="${next_entry}"
set next_entry=
save_env next_entry
set timeout=1
else
set default=0
set timeout=5
fi
# Setup the graphics stack for bios and efi systems
if [ "${grub_platform}" = "efi" ]; then
insmod efi_gop
insmod efi_uga
else
insmod vbe
fi
insmod font
if loadfont ($drive1)/boot/converted-font.pf2; then
insmod gfxterm
if [ "${grub_platform}" = "efi" ]; then
set gfxmode=auto
set gfxpayload=keep
else
set gfxmode=1024x768
set gfxpayload=text
fi
terminal_output gfxterm
fi
insmod png
if background_image ($drive1)/boot/background.png; then
set color_normal=white/black
set color_highlight=black/white
else
set menu_color_normal=cyan/blue
set menu_color_highlight=white/blue
fi
serial --unit=0 --speed=115200 --word=8 --parity=no --stop=1
terminal --timeout=10 serial console
terminal_output --timeout=10 serial console
terminal_input --timeout=10 serial console
terminal_output.serial
menuentry "NixOS - Default" {
search --set=drive1 --fs-uuid 2cb33080-dbc5-412c-82ae-cdbb4ccbd832
search --set=drive2 --fs-uuid 2cb33080-dbc5-412c-82ae-cdbb4ccbd832
linux ($drive2)/nix/store/h9s50bp50j63d3dp21i1n8hyqad73wiq-linux-4.15.18/bzImage systemConfig=/nix/store/w417g7s5v3v5dq1xbrl15j47ifwvpx72-nixos-system-pxe-c2.medium.x86-18.03.132229.7cbf6ca1c84 init=/nix/store/w417g7s5v3v5dq1xbrl15j47ifwvpx72-nixos-system-pxe-c2.medium.x86-18.03.132229.7cbf6ca1c84/init console=ttyS1,115200n8 loglevel=4
initrd ($drive2)/nix/store/1d03q5paks3yr5wjivh6gc2cg26j9kkv-initrd/initrd
}
submenu "NixOS - All configurations" {
menuentry "NixOS - Configuration 6 (2018-05-13 - 18.03.132229.7cbf6ca1c84)" {
search --set=drive1 --fs-uuid 2cb33080-dbc5-412c-82ae-cdbb4ccbd832
search --set=drive2 --fs-uuid 2cb33080-dbc5-412c-82ae-cdbb4ccbd832
linux ($drive2)/nix/store/h9s50bp50j63d3dp21i1n8hyqad73wiq-linux-4.15.18/bzImage systemConfig=/nix/store/w417g7s5v3v5dq1xbrl15j47ifwvpx72-nixos-system-pxe-c2.medium.x86-18.03.132229.7cbf6ca1c84 init=/nix/store/w417g7s5v3v5dq1xbrl15j47ifwvpx72-nixos-system-pxe-c2.medium.x86-18.03.132229.7cbf6ca1c84/init console=ttyS1,115200n8 loglevel=4
initrd ($drive2)/nix/store/1d03q5paks3yr5wjivh6gc2cg26j9kkv-initrd/initrd
}
menuentry "NixOS - Configuration 5 (2018-05-13 - 18.03.132229.7cbf6ca1c84)" {
search --set=drive1 --fs-uuid 2cb33080-dbc5-412c-82ae-cdbb4ccbd832
search --set=drive2 --fs-uuid 2cb33080-dbc5-412c-82ae-cdbb4ccbd832
linux ($drive2)/nix/store/h9s50bp50j63d3dp21i1n8hyqad73wiq-linux-4.15.18/bzImage systemConfig=/nix/store/a24b968f7g6bxw0gfyvlkzpyalpwhx70-nixos-system-pxe-c2.medium.x86-18.03.132229.7cbf6ca1c84 init=/nix/store/a24b968f7g6bxw0gfyvlkzpyalpwhx70-nixos-system-pxe-c2.medium.x86-18.03.132229.7cbf6ca1c84/init console=ttyS1,115200n8 loglevel=4
initrd ($drive2)/nix/store/1d03q5paks3yr5wjivh6gc2cg26j9kkv-initrd/initrd
}
menuentry "NixOS - Configuration 4 (2018-05-13 - 18.03.132229.7cbf6ca1c84)" {
search --set=drive1 --fs-uuid 2cb33080-dbc5-412c-82ae-cdbb4ccbd832
search --set=drive2 --fs-uuid 2cb33080-dbc5-412c-82ae-cdbb4ccbd832
linux ($drive2)/nix/store/h9s50bp50j63d3dp21i1n8hyqad73wiq-linux-4.15.18/bzImage systemConfig=/nix/store/phd9ga0z64y4mhpwppnajjw0n1f5mfz8-nixos-system-pxe-c2.medium.x86-18.03.132229.7cbf6ca1c84 init=/nix/store/phd9ga0z64y4mhpwppnajjw0n1f5mfz8-nixos-system-pxe-c2.medium.x86-18.03.132229.7cbf6ca1c84/init console=ttyS1,115200n8 loglevel=4
initrd ($drive2)/nix/store/1d03q5paks3yr5wjivh6gc2cg26j9kkv-initrd/initrd
}
menuentry "NixOS - Configuration 3 (2018-05-13 - 18.03.132229.7cbf6ca1c84)" {
search --set=drive1 --fs-uuid 2cb33080-dbc5-412c-82ae-cdbb4ccbd832
search --set=drive2 --fs-uuid 2cb33080-dbc5-412c-82ae-cdbb4ccbd832
linux ($drive2)/nix/store/h9s50bp50j63d3dp21i1n8hyqad73wiq-linux-4.15.18/bzImage systemConfig=/nix/store/lpmfj70ypydhwaadp2ql59060isms8kz-nixos-system-pxe-c2.medium.x86-18.03.132229.7cbf6ca1c84 init=/nix/store/lpmfj70ypydhwaadp2ql59060isms8kz-nixos-system-pxe-c2.medium.x86-18.03.132229.7cbf6ca1c84/init console=ttyS1,115200n8 loglevel=4
initrd ($drive2)/nix/store/1d03q5paks3yr5wjivh6gc2cg26j9kkv-initrd/initrd
}
menuentry "NixOS - Configuration 2 (2018-05-13 - 18.03.132229.7cbf6ca1c84)" {
search --set=drive1 --fs-uuid 2cb33080-dbc5-412c-82ae-cdbb4ccbd832
search --set=drive2 --fs-uuid 2cb33080-dbc5-412c-82ae-cdbb4ccbd832
linux ($drive2)/nix/store/h9s50bp50j63d3dp21i1n8hyqad73wiq-linux-4.15.18/bzImage systemConfig=/nix/store/8k2ldv3m7k28v51rq0dl2l1rca08ax8n-nixos-system-pxe-c2.medium.x86-18.03.132229.7cbf6ca1c84 init=/nix/store/8k2ldv3m7k28v51rq0dl2l1rca08ax8n-nixos-system-pxe-c2.medium.x86-18.03.132229.7cbf6ca1c84/init console=ttyS1,115200n8 loglevel=4
initrd ($drive2)/nix/store/1d03q5paks3yr5wjivh6gc2cg26j9kkv-initrd/initrd
}
menuentry "NixOS - Configuration 1 (2018-05-13 - 18.03.132229.7cbf6ca1c84)" {
search --set=drive1 --fs-uuid 2cb33080-dbc5-412c-82ae-cdbb4ccbd832
search --set=drive2 --fs-uuid 2cb33080-dbc5-412c-82ae-cdbb4ccbd832
linux ($drive2)/nix/store/h9s50bp50j63d3dp21i1n8hyqad73wiq-linux-4.15.18/bzImage systemConfig=/nix/store/cp8sxw2jhk2a8pqyp8mc9pvg959fqs0k-nixos-system-pxe-c2.medium.x86-18.03.132229.7cbf6ca1c84 init=/nix/store/cp8sxw2jhk2a8pqyp8mc9pvg959fqs0k-nixos-system-pxe-c2.medium.x86-18.03.132229.7cbf6ca1c84/init console=ttyS1,115200n8 loglevel=4
initrd ($drive2)/nix/store/1d03q5paks3yr5wjivh6gc2cg26j9kkv-initrd/initrd
}
}
# Set menu colors
set menu_color_normal=white/green
set menu_color_highlight=light-red/white
# Set menu display time
set timeout=3
# Set the default boot entry (first is 0)
set default=0
# Set the root variable - grub2 uses this to find files if the
# root device is not specified in the entry itself.
# It can be set explicitly like so:
#set root='(hd0,1)'
# Define console settings
#serial console=tty0 console=ttyS1,115200n8
serial --unit=0 --speed=115200 --word=8 --parity=no --stop=1
terminal --timeout=10 serial console
# Or it can be set using grub2's builtin search feature like so:
#search --no-floppy --fs-uuid --set root xxxxxxxx-yyyy-zzzz-aaaa-bbbbbbbbbbbb
search --no-floppy --fs-uuid --set=root 39cc9f7e-5933-442b-8f7b-e0c7ac0e8d55
# The string xxxxxxxx-yyyy-zzzz-aaaa-bbbbbbbbbbbb should be replaced with
# the proper UUID for the root device. It can be found using 'blkid' from
# util-linux.
# Boot entries:
# Linux
menuentry 'Ubuntu' --class ubuntu --class gnu-linux --class gnu {
insmod gzio
insmod part_msdos
insmod part_msdos
insmod diskfilter
insmod mdraid1x
insmod ext2
insmod gptsync
insmod part_gpt
set root='(mduuid/39cc9f7e-5933-442b-8f7b-e0c7ac0e8d55)'
if [ x$feature_platform_search_hint = xy ]; then
search --no-floppy --fs-uuid --set=root --hint='mduuid/39cc9f7e-5933-442b-8f7b-e0c7ac0e8d55' 39cc9f7e-5933-442b-8f7b-e0c7ac0e8d55
else
search --no-floppy --fs-uuid --set=root 39cc9f7e-5933-442b-8f7b-e0c7ac0e8d55
fi
linux /boot/vmlinuz root=UUID=39cc9f7e-5933-442b-8f7b-e0c7ac0e8d55 ro serial console=tty0 console=ttyS1,115200n8 biosdevname=0 net.ifnames=1 $vt_handoff
initrd /boot/initrd
}
# Linux single
menuentry 'Ubuntu - single user mode' --class ubuntu --class gnu-linux --class gnu {
insmod gzio
insmod part_msdos
insmod part_msdos
insmod diskfilter
insmod mdraid1x
insmod ext2
insmod gptsync
insmod part_gpt
set root='(mduuid/39cc9f7e-5933-442b-8f7b-e0c7ac0e8d55)'
if [ x$feature_platform_search_hint = xy ]; then
search --no-floppy --fs-uuid --set=root --hint='mduuid/39cc9f7e-5933-442b-8f7b-e0c7ac0e8d55' 39cc9f7e-5933-442b-8f7b-e0c7ac0e8d55
else
search --no-floppy --fs-uuid --set=root 39cc9f7e-5933-442b-8f7b-e0c7ac0e8d55
fi
linux /boot/vmlinuz root=UUID=39cc9f7e-5933-442b-8f7b-e0c7ac0e8d55 ro serial console=tty0 console=ttyS1,115200n8 biosdevname=0 net.ifnames=1 single
initrd /boot/initrd
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment