]> git.ipfire.org Git - thirdparty/openembedded/openembedded-core-contrib.git/commitdiff
udev-extraconf/mount.sh: ignore lvm in automount
authorMuhammad Hamza <Muhammad_Hamza@mentor.com>
Tue, 21 Jun 2022 05:09:37 +0000 (10:09 +0500)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Tue, 21 Jun 2022 17:44:23 +0000 (18:44 +0100)
Failure message is shown in boot logs when trying to
mount lvm as automounter does not handle cases where
lvm is mounted. This simply skips lvm while automounting
to avoid failure message in boot logs.

Signed-off-by: Ansar Rasool <ansar_rasool@mentor.com>
Signed-off-by: Muhammad Hamza <muhammad_hamza@mentor.com>
Signed-off-by: Luca Ceresoli <luca.ceresoli@bootlin.com>
meta/recipes-core/udev/udev-extraconf/mount.sh

index 537828e3e3c0567492248bf977ecbb2382c8bccf..8b6ce777411344b04195061cd7206db6b34427a0 100644 (file)
@@ -76,6 +76,8 @@ automount_systemd() {
         ;;
     swap)
         return ;;
+    lvm*|LVM*)
+        return ;;
     # TODO
     *)
         ;;
@@ -129,6 +131,8 @@ automount() {
                ;;
        swap)
                return ;;
+       lvm*|LVM*)
+                return ;;
        # TODO
        *)
                ;;