Le 28/03/2020 à 20:49, Pascal Hambourg a écrit :
You'd rather use a persistent identifier that the kernels kows about :
PARTUUID. Get the value with blkid.
Can't remember whether the kernel knows about PARTLABEL too, which would
be nicer. Guess not.
Just checked in the Linux kernel changelogs : root=PARTLABEL=xxx support
was added in version 4.20, which is quite recent. Too late for the
current Debian stable kernel (4.19) though.
Partition labels (aka names) can be set using any GPT compatible
partitioning tool such as recent fdisk, parted, gdisk...
Note that the DOS/MBR partition scheme does not support partition
labels. It does not support real partition UUIDs either, but the kernel
builds synthetic ones by combining the 32-bit disk identifier and the
partition number so that PARTUUID can be used (see blkid). Warning :
synthetic partition UUIDs are not as reliable as real ones, as the
partition numbers may change when editing the partition table (specially
for logical partitions).