Last active
September 3, 2022 08:52
-
-
Save francoiscolas/5468288 to your computer and use it in GitHub Desktop.
Boot to ISO from Grub.
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 "Ubuntu ISO" { | |
set root=(hd0,4) | |
set iso=/ubuntu.iso | |
loopback loop $iso | |
linux (loop)/casper/vmlinuz boot=casper iso-scan/filename=$iso only-ubiquity | |
initrd (loop)/casper/initrd | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment