On 11/09/23 01:20, Vladimir 'phcoder' Serbinenko wrote:
> Unlike UUID, label may contain spaces. AFAICT your code fails with spaces

It fails indeed. However, I can't even figure out how to make spaces in
labels work for *anything* - not only grub.cfg, but also fstab. Neither
quoting nor escaping them works. Also, it can probably contain other
symbols that get mangled into escaped sequences in /dev/disk/by-label/.
So, seeing that supporting spaces and other symbols in the boot device
is barely possible, wouldn't it be better to just fall back to UUID if
the label is too "unusual" to not require any "mangling" into escape
sequences?

If not, then how should I approach this for both grub.cfg and fstab?

_______________________________________________
Grub-devel mailing list
Grub-devel@gnu.org
https://lists.gnu.org/mailman/listinfo/grub-devel

Reply via email to