Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
SUSE:SLE-15-SP6:Update
systemd
1004-udev-optionally-disable-the-generation-of-...
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File 1004-udev-optionally-disable-the-generation-of-the-partla.patch of Package systemd
From e4891d7dbd9c463c1c64f5c3a656b6251144d522 Mon Sep 17 00:00:00 2001 From: Franck Bui <fbui@suse.com> Date: Tue, 21 Aug 2018 16:21:53 +0200 Subject: [PATCH 1004/1016] udev: optionally disable the generation of the 'partlabel' symlinks We already addressed bsc#1089761 to prevent the generation of "primary" or "logical". But it wasn't enough: some users could also have used their own name other than "primary" and "logical" of course... For them, we introduce "udev.no-partlabel-links" kernel command-line option to prevent the generation of all by-partlabel symlinks regardless of the name which was choosen. This option should be *only* used to address performance issue related to bsc#1089761 because it will be removed as soon as the udev performance issue will be addressed. [fbui: fixes bsc#1089761] --- rules.d/60-persistent-storage.rules.in | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/rules.d/60-persistent-storage.rules.in b/rules.d/60-persistent-storage.rules.in index 345b27a025..62c5f22dfa 100644 --- a/rules.d/60-persistent-storage.rules.in +++ b/rules.d/60-persistent-storage.rules.in @@ -154,7 +154,9 @@ ENV{ID_WWN_WITH_EXTENSION}=="?*", SYMLINK+="disk/by-id/wwn-$env{ID_WWN_WITH_EXTE # by-partlabel/by-partuuid links (partition metadata) 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}=="?*", ENV{ID_PART_ENTRY_NAME}!="primary|logical", SYMLINK+="disk/by-partlabel/$env{ID_PART_ENTRY_NAME}" + +IMPORT{cmdline}="udev.no-partlabel-links" +ENV{ID_PART_ENTRY_SCHEME}=="gpt", ENV{ID_PART_ENTRY_NAME}=="?*", ENV{ID_PART_ENTRY_NAME}!="primary|logical", ENV{udev.no-partlabel-links}!="?*", SYMLINK+="disk/by-partlabel/$env{ID_PART_ENTRY_NAME}" # by-diskseq link (if an app is told to open a path like this, they may parse # the diskseq number from the path, then issue BLKGETDISKSEQ to verify they really got -- 2.35.3
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor