Skip to content

Can't boot images with spaces in filename #1

@chrstphrchvz

Description

@chrstphrchvz

I used grub-imageboot to boot a Dell Diagnostics iso image. I first renamed the file to make the menu entry more obvious:

sudo cp Downloads/cdd_1265.ISO "/boot/images/Dell Diagnostics.iso"
sudo update-grub

But grub-imageboot doesn't escape the space I put in the filename: in grub.cfg,

### BEGIN /etc/grub.d/60_grub-imageboot ###
menuentry "Bootable ISO Image: Dell Diagnostics" {

    ...

    linux16 /@/boot/memdisk iso
    initrd16 /@/boot/images/Dell Diagnostics.iso
}
### END /etc/grub.d/60_grub-imageboot ###

It tries to boot using the nonexistent file /@/boot/images/Dell.

I have limited experience writing shell scripts, so my best guess is that the space should be escaped using /@/boot/images/Dell\ Diagnostics.iso or by using double quotes around the entire $IMAGEPATH in /etc/grub.d/60_grub-imageboot.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions