
On 18/03/2021 21.24, Dave Howorth wrote:
On Thu, 18 Mar 2021 19:48:55 +0100 "Carlos E. R." <> wrote:
On 18/03/2021 17.12, Neil Rickert wrote:
On 3/18/21 6:23 AM, David T-G wrote:
% grep resume /etc/default/grub
OOOOOH! We have a bingo:
diskfarm:~ # grep resume /etc/default/grub GRUB_CMDLINE_LINUX_DEFAULT="splash=silent resume=/dev/disk/by-label/System Reserved mitigations=auto quiet"
This needs a bug report.
You are right, I missed that lone "Reserved".
Apparently the label for that partition is "System Reserved" which contains a space. So quoting is needed. It should have used
GRUB_CMDLINE_LINUX_DEFAULT="splash=silent resume=/dev/disk/by-label/System\ Reserved mitigations=auto quiet"
or
GRUB_CMDLINE_LINUX_DEFAULT="splash=silent resume=/dev/disk/by-label/'System Reserved' mitigations=auto quiet"
or something similar. Or it should ignore your settings and use UUID for that particular partition.
I understood that spaces were prohibited in partition labels. I don't know how to find this out for sure, but I see the labels I use, and I see I used "_" instead of spaces.
They are definitely not prohibited in partition labels. I have for example:
/dev/sda1: LABEL="ESP" UUID="A2D4-EB6B" TYPE="vfat" PARTLABEL="EFI system partition" PARTUUID="2d6563ec-fd02-4309-bc44-3b5343fc88f2"
(sorry for the line wrap)
But that's irrelevant because by-label uses the filesystem label (a.k.a. volume label). If you want to use the partition label then you need to use by-partlabel.
This https://wiki.archlinux.org/index.php/persistent_block_device_naming archlinux page has examples showing filesystem labels with spaces as well, but I don't know if they actually work. The maximum lengths of filesystem labels vary depending on the filesystem.
Definitely a bug report is in order. Find out if spaces are allowed or not on filesystem labels; if not, then find out what wrote that space, and add detection in YaST for the situation and then demand the user to change the label. And if spaces are allowed, handle them. -- Cheers / Saludos, Carlos E. R. (from 15.2 x86_64 at Telcontar)