Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/bin/sh
- set -e
- IMAGES=/boot/ubuntu-iso/
- . /usr/lib/grub/grub-mkconfig_lib
- for isofile in ${IMAGES}*.iso
- do
- IMAGEPATH=$( make_system_path_relative_to_its_root "$isofile" )
- echo "Found ubuntu iso image: $IMAGEPATH" >&2
- cat << EOF
- menuentry "Bootable iso: $(basename $IMAGEPATH | sed s/.iso//)" {
- EOF
- prepare_grub_to_access_device ${GRUB_DEVICE_BOOT} | sed -e "s/^/\t/"
- cat << EOF
- loopback loop $isofile
- linux (loop)/casper/vmlinuz boot=casper console-setup/layoutcode=latam locale=es_CL.UTF-8 iso-scan/filename=$isofile quiet splash noeject noprompt --
- initrd (loop)/casper/initrd.lz
- }
- EOF
- done
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement