Skip to content

Instantly share code, notes, and snippets.

@huksley
Created September 23, 2019 16:14
Show Gist options
  • Save huksley/6aa95dc8defb12ae346cdb6e65c5f528 to your computer and use it in GitHub Desktop.
Save huksley/6aa95dc8defb12ae346cdb6e65c5f528 to your computer and use it in GitHub Desktop.
menuentry "Rescue Ubuntu 18.04 LiveCD" {
set isoname="/ubuntu-18.04.3-desktop-amd64.iso"
search --label --set rescue rescue
loopback loop ($rescue)$isoname
linux (loop)/casper/vmlinuz boot=casper iso-scan/filename=$isoname quiet splash
initrd (loop)/casper/initrd
}
menuentry "Rescue XUbuntu 18.04 LiveCD" {
set isoname="/xubuntu-18.04.3-desktop-amd64.iso"
search --label --set rescue rescue
loopback loop ($rescue)$isoname
linux (loop)/casper/vmlinuz boot=casper iso-scan/filename=$isoname quiet splash
initrd (loop)/casper/initrd
}
@huksley
Copy link
Author

huksley commented Sep 26, 2019

  1. Use gparted or during install, create 10GB rescue partition.
  2. Format it as ext4. Label and enter name rescue.
  3. Add this file as /boot/grub/custom.cfg
  4. Run "update-grub" and it will add this menu entries to Grub boot menu.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment