From 014667b41c1e3ae7494a197749396c49a6351302 Mon Sep 17 00:00:00 2001 From: Francisco Gil Date: Tue, 17 Oct 2023 16:16:35 +0200 Subject: [PATCH] udev: automount: add exception to mount loop and ram block devices The nodes "/dev/ramX" and "/dev/loopX" are mounted on boot. Each node calls the mount.sh script, but they are not mounted because these nodes are blacklisted in the "blacklist.conf" file. In the ccmp13 adding this modification in the rule saves around 4 seconds per boot. In the ccmp15 and ccimx6ul around 2 seconds are saved. https://onedigi.atlassian.net/browse/DEL-8725 Signed-off-by: Francisco Gil --- .../recipes-core/udev/udev-extraconf/automount.rules | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/meta-digi-arm/recipes-core/udev/udev-extraconf/automount.rules b/meta-digi-arm/recipes-core/udev/udev-extraconf/automount.rules index df3fb866a..8b3e3384f 100644 --- a/meta-digi-arm/recipes-core/udev/udev-extraconf/automount.rules +++ b/meta-digi-arm/recipes-core/udev/udev-extraconf/automount.rules @@ -23,8 +23,8 @@ SUBSYSTEM=="block", ENV{ID_PART_ENTRY_NAME}=="recovery*", ACTION=="add", GOTO="a SUBSYSTEM=="mtd", ATTRS{name}=="recovery*", ACTION=="add", GOTO="automount_rules_end" # Media automounting -SUBSYSTEM=="block", ACTION=="add" RUN+="/etc/udev/scripts/mount.sh" -SUBSYSTEM=="block", ACTION=="remove" RUN+="/etc/udev/scripts/mount.sh" -SUBSYSTEM=="block", ACTION=="change", ENV{DISK_MEDIA_CHANGE}=="1" RUN+="/etc/udev/scripts/mount.sh" +SUBSYSTEM=="block", ATTRS{name}!="loop*|ram*", ACTION=="add" RUN+="/etc/udev/scripts/mount.sh" +SUBSYSTEM=="block", ATTRS{name}!="loop*|ram*", ACTION=="remove" RUN+="/etc/udev/scripts/mount.sh" +SUBSYSTEM=="block", ATTRS{name}!="loop*|ram*", ACTION=="change", ENV{DISK_MEDIA_CHANGE}=="1" RUN+="/etc/udev/scripts/mount.sh" LABEL="automount_rules_end"