diff options
author | Lennart Poettering <lennart@poettering.net> | 2014-03-07 03:30:30 +0100 |
---|---|---|
committer | Lennart Poettering <lennart@poettering.net> | 2014-03-07 03:30:30 +0100 |
commit | 329f7803ee4414cd015e6f83a835079208608171 (patch) | |
tree | e1cfe747362b254cf1ace721294005aa63cdd024 /rules/60-persistent-storage.rules | |
parent | 5ecdcf41cbce38c44b399993cb1c356280e0bafd (diff) |
udev: automatically create a symlink /dev/disk/by-id/gpt-auto-root if there's a suitable root partition
Diffstat (limited to 'rules/60-persistent-storage.rules')
-rw-r--r-- | rules/60-persistent-storage.rules | 3 |
1 files changed, 3 insertions, 0 deletions
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" |