multibootusb icon indicating copy to clipboard operation
multibootusb copied to clipboard

Problem with ISO location in other partition

Open jabarea opened this issue 6 years ago • 1 comments

If we change the ISO location to other USB partition: set isopath='(hd0,msdos2)/isos'

There is a problem showing the name of the system at boot time in GRUB's menu. I think is a problem with this line in the scripts: regexp --set=isoname "$isopath/(.*)" "$isofile" I suppose that is because of the round brackets "()" of the path. I don't know which is the best solution for this issue, I have fixed it replacing the line with this one: regexp --set=isoname "[$isopath]/(.*)" "$isofile" But I don't know if this could be a problem in other situations.

Thank you very much.

jabarea avatar Jun 13 '18 08:06 jabarea

Hi @jabarea!

That's an interesting issue. It does seem that the parenthesis mess up the regexp. You could try something like regexp --set=isoname ".*/([A-Za-z0-9_\-\.]*)" "$isofile".

This regular expression should cover most of the characters used in ISO names although it'd take a bit of work to replace it in all configuration files. :thinking:

Edit: Actually, it seems that regexp --set=isoname ".*/(.*)" "$isofile" should suffice.

aguslr avatar Sep 22 '18 10:09 aguslr