From 329f7803ee4414cd015e6f83a835079208608171 Mon Sep 17 00:00:00 2001 From: Lennart Poettering Date: Fri, 7 Mar 2014 03:30:30 +0100 Subject: udev: automatically create a symlink /dev/disk/by-id/gpt-auto-root if there's a suitable root partition --- rules/60-persistent-storage.rules | 3 +++ 1 file changed, 3 insertions(+) (limited to 'rules/60-persistent-storage.rules') diff --git a/rules/60-persistent-storage.rules b/rules/60-persistent-storage.rules index 4f7163da02..19e450de1c 100644 --- a/rules/60-persistent-storage.rules +++ b/rules/60-persistent-storage.rules @@ -84,4 +84,7 @@ ENV{DEVTYPE}=="partition", ENV{ID_WWN_WITH_EXTENSION}=="?*", SYMLINK+="disk/by-i ENV{ID_PART_ENTRY_SCHEME}=="gpt", 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 +ENV{ID_PART_ENTRY_SCHEME}=="gpt", ENV{ID_PART_GPT_AUTO_ROOT}=="1", SYMLINK+="disk/by-id/gpt-auto-root" + LABEL="persistent_storage_end" -- cgit v1.2.3-54-g00ecf