[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [PATCH] Add support for specifying the boot device by label
From: |
darkpenguin |
Subject: |
Re: [PATCH] Add support for specifying the boot device by label |
Date: |
Tue, 26 Sep 2023 07:28:48 +0000 |
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?
Re: [PATCH] Add support for specifying the boot device by label, Vladimir 'phcoder' Serbinenko, 2023/09/10
Re: [PATCH] Add support for specifying the boot device by label, Olaf Hering, 2023/09/11