]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
rules: add /dev/disk/by-partuuid symlinks also for dos partition tables 3293/head
authorUwe Kleine-König <u.kleine-koenig@pengutronix.de>
Mon, 9 May 2016 09:24:55 +0000 (11:24 +0200)
committerMichael Olbrich <m.olbrich@pengutronix.de>
Thu, 19 May 2016 06:37:20 +0000 (08:37 +0200)
blkid reports PARTUUID values also for partitions that are defined by a
dos partitioning scheme. Instead of limiting the partitioning scheme to
"gpt or dos" just drop the test for the partitioning scheme and trust
blkid to do the right thing.

rules/60-persistent-storage.rules

index 7ad8a557ffc775703dfd601fbec224c35af5ea2b..408733915ca70d065e835f722cee6ba5ee1506e4 100644 (file)
@@ -78,7 +78,7 @@ ENV{DEVTYPE}=="disk", ENV{ID_WWN_WITH_EXTENSION}=="?*", SYMLINK+="disk/by-id/wwn
 ENV{DEVTYPE}=="partition", ENV{ID_WWN_WITH_EXTENSION}=="?*", SYMLINK+="disk/by-id/wwn-$env{ID_WWN_WITH_EXTENSION}-part%n"
 
 # by-partlabel/by-partuuid links (partition metadata)
-ENV{ID_PART_ENTRY_SCHEME}=="gpt", ENV{ID_PART_ENTRY_UUID}=="?*", SYMLINK+="disk/by-partuuid/$env{ID_PART_ENTRY_UUID}"
+ENV{ID_PART_ENTRY_UUID}=="?*", SYMLINK+="disk/by-partuuid/$env{ID_PART_ENTRY_UUID}"
 ENV{ID_PART_ENTRY_SCHEME}=="gpt", ENV{ID_PART_ENTRY_NAME}=="?*", SYMLINK+="disk/by-partlabel/$env{ID_PART_ENTRY_NAME}"
 
 # add symlink to GPT root disk