David Wright composed on 2022-04-21 12:28 (UTC-0500): > On Thu 21 Apr 2022 at 05:30:31 (-0500), Richard Owlett wrote:
>> When creating a partition with Gparted the is a box titled "Label:". >> I was referring to the content placed there. > There are lots of partitioners, but only one set of useful names, > those matched by * in /dev/disk/by-*. I let the Grub scripts play > with the UUIDs, and switch over to LABELs when it's done. >> > Grub itself, of course, >> > supports their use, but not the scripts that generate grub.cfg. >> IIRC several years ago I was told I could manually edit to display as >> desired. It would be overwritten the next time update-grub was run. > That's right. So you can change what Grub eventually does when booting > at several levels: > . Press E at the blue screen, and do what you like as it only lasts > one boot. But remember what it was you did, in case it works. > . Edit grub.cfg, and take some care, but if you screw up, you can > boot from another entry, and grub-mkconfig will generate a fresh > copy. > . Edit /etc/default/grub, and take more care as screw-ups are > more persistent. > . Roll your own. Roll your own includes using /boot/grub/custom.cfg composed and maintained exclusively by the sysadmin. This file is never written by the installation itself. It needs changing only when: 1-Distro is added or removed. 2-Admin wants Distro name in Grub menu to be changed. 3-An applicable volume LABEL is changed. /boot/grub/custom.cfg is routinely incorporated by Grub into the tail of /boot/grub/grub.cfg via /etc/grub.d/40_custom and/or 41_custom. If 40_custom and 41_custom are copied by the admin to 06_custom and 07_custom, then Grub incorporates the content of /boot/grub/custom.cfg before the automatically generated /boot/grub/grub.cfg entries, putting the custom entries conveniently at the top of each boot menu. My current custom.cfg is using 7 lines per menuitem, compared to a more typical autogenerated entry of about 17 lines. Example: menuentry "Debian 11 Bullseye on Partition 14" { load_video set gfxpayload=keep search --no-floppy --set=root --hint-baremetal=ahci0,gpt14 --label exampleLabel linux /vmlinuz root=LABEL=exampleLabel noresume mitigations=auto consoleblank=0 initrd /initrd.img } Note lack of kernel and initrd versioning. Symlinks to current and previous kernels and initrds are automatically generated in / on Debian installations. Thus there's no need for custom.cfg change when kernels are installed or removed or initrds rebuilt. -- Evolution as taught in public schools is, like religion, based on faith, not based on science. Team OS/2 ** Reg. Linux User #211409 ** a11y rocks! Felix Miata