From 8b739dec53f8bca23e46e2d2a9732abee9b8d591 Mon Sep 17 00:00:00 2001 From: Lennart Poettering Date: Sat, 10 Jan 2009 01:37:03 +0100 Subject: [PATCH] fix naming for tape nst devices in /dev/tape/by-path/ $env{ID_PATH} includes the "-nst" suffix anyway, so we shouldn't append it a second time as part of the rule creating the device file symlink. Signed-off-by: Lennart Poettering --- rules/rules.d/60-persistent-storage-tape.rules | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/rules/rules.d/60-persistent-storage-tape.rules b/rules/rules.d/60-persistent-storage-tape.rules index d3226f13..8d538889 100644 --- a/rules/rules.d/60-persistent-storage-tape.rules +++ b/rules/rules.d/60-persistent-storage-tape.rules @@ -19,6 +19,6 @@ KERNEL=="nst*[0-9]", ENV{ID_SERIAL}=="?*", SYMLINK+="tape/by-id/$env{ID_BUS}-$en # by-path (parent device path) KERNEL=="st*[0-9]|nst*[0-9]", IMPORT{program}="path_id %p" KERNEL=="st*[0-9]", ENV{ID_PATH}=="?*", SYMLINK+="tape/by-path/$env{ID_PATH}" -KERNEL=="nst*[0-9]", ENV{ID_PATH}=="?*", SYMLINK+="tape/by-path/$env{ID_PATH}-nst" +KERNEL=="nst*[0-9]", ENV{ID_PATH}=="?*", SYMLINK+="tape/by-path/$env{ID_PATH}" LABEL="persistent_storage_tape_end" -- 2.39.5