mount: does not support mounting by partition label
In other Linux distros, it is possible to mount by the partition label (e.g. mount -L DRIVE_A /mnt
) in addition to the UUID and /dev path. Alpine does not include the -L option, nor is it possible to use e.g.LABEL=DRIVE_A
in /etc/fstab, ("DRIVE_A" is an example drive label).
This is necessary when creating Alpine images for multiple machines. If the drive is mounted by the /dev/ path, it may change on reboot if other drives are added to the machine. If the drive is specified by UUID, then only that particular partition can be used with any of the machines (because UUIDs are unique to that partition).
For my purposes, I want to create a generic drive with a specific label and have the Alpine image mount it by the label. This way, it can be reused across multiple machines without having to update the UUID in the apkovl for each one, and there will be no issues stemming from /dev/sda becoming /dev/sdc on reboot.
The -L (label) command line option should be added to the mount command in Alpine.