]> git.ipfire.org Git - thirdparty/systemd.git/commit - rules/60-persistent-storage.rules
rules: Handle MMC boot partitions by-path correctly (#6026)
authorGeorge McCollister <george.mccollister@gmail.com>
Fri, 26 May 2017 02:13:50 +0000 (21:13 -0500)
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Fri, 26 May 2017 02:13:50 +0000 (22:13 -0400)
commit4e3f07029ad7b86773ce85db422bbce95ac578cf
tree07a69d7b434afc8c46ff3bbe9f3e7c51b64e0092
parent2340bfbfccb0c1361becbb527bf9fe3e8c174cf0
rules: Handle MMC boot partitions by-path correctly (#6026)

Many eMMC devices have separate boot partitions that aren't part of the
normal partition table that show up as /dev/mmcblk[0-9]boot[0-9]. These
partitions are generally small (128KB to 16MB) and typically hold a boot
loader, boot loader data or a recovery image. Match these and create
-boot%n by-path symlinks.

Prior to this change by-path symlinks for the main device would be
incorrectly linked to one of the boot partitions.

For instance before:
/dev/disk/by-path/platform-219c000.usdhc linked to /dev/mmcblk1boot1

Now:
/dev/disk/by-path/platform-219c000.usdhc links to /dev/mmcblk1
/dev/disk/by-path/platform-219c000.usdhc-boot0 links to /dev/mmcblk1boot0
/dev/disk/by-path/platform-219c000.usdhc-boot1 links to /dev/mmcblk1boot1

On systems that support multiple SD/MMC devices it can be essential to
have by-path links to these devices since device names vary depending on
which other devices are connected.
rules/60-persistent-storage.rules