]> git.ipfire.org Git - thirdparty/openembedded/openembedded-core.git/commit
udev-extraconf/mount.sh: add LABELs to mountpoints
authorMuhammad Hamza <Muhammad_Hamza@mentor.com>
Tue, 21 Jun 2022 09:05:12 +0000 (14:05 +0500)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Tue, 21 Jun 2022 17:44:23 +0000 (18:44 +0100)
commita9a0a0967832445f1bcc65d58f95343d1b562e1b
treea2011485670be8083e25c289393fb103a27670fe
parent3275cc6c2ecfd70ba134b49363c9cecbb0c2c0b2
udev-extraconf/mount.sh: add LABELs to mountpoints

This alters the mountpoints such that if a device has a LABEL or
a PARTLABEL, it will be mounted at e.g.:

  /run/media/$LABEL-<device-node>
  /run/media/$PARTLABEL-<device-node>
  /run/media/rootfs-sda2

otherwise the device will be mounted at e.g.:

  /run/media/<device-node>
  /run/media/sda1

The <device-node> appended with LABEL or PARTLABEL makes sure that
the mountpoint is unique, therefore, avoids overlapping mounts.

Signed-off-by: Arsalan H. Awan <Arsalan_Awan@mentor.com>
Signed-off-by: Muhammad Hamza <muhammad_hamza@mentor.com>
Signed-off-by: Luca Ceresoli <luca.ceresoli@bootlin.com>
meta/recipes-core/udev/udev-extraconf/mount.sh
meta/recipes-core/udev/udev-extraconf_1.1.bb