From 2a1a821bb3941ddd341b52068d5c05e06d907355 Mon Sep 17 00:00:00 2001 From: Vineeth Vijayan Date: Mon, 19 Jun 2023 11:32:15 +0200 Subject: [PATCH] zdev: add missing label in the udev-rules MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The udev-rules generated with the current version of chzdev command is missing the configuration label, incase of auto configuration, resulting in an ineffective configuration logic. Add the missing configuration start label for autoconfig. Fixes: 2e89722ef0ec ("zdev: make site specific udev-rule for ccw") Signed-off-by: Vineeth Vijayan Reviewed-by: Peter Oberparleiter Signed-off-by: Jan Höppner --- zdev/src/udev_ccw.c | 1 + 1 file changed, 1 insertion(+) diff --git a/zdev/src/udev_ccw.c b/zdev/src/udev_ccw.c index 3375a5e5..1881337b 100644 --- a/zdev/src/udev_ccw.c +++ b/zdev/src/udev_ccw.c @@ -295,6 +295,7 @@ static exit_code_t udev_ccw_write_device_legacy(struct device *dev, bool autocon } fprintf(fd, "GOTO=\"%s\"\n", end_label); fprintf(fd, "\n"); + fprintf(fd, "LABEL=\"%s\"\n", cfg_label); write_attr_to_file(fd, state, id);