udev-extraconf/mount.sh: ignore lvm in automount

Message ID 20220621050937.2332316-1-muhammad_hamza@mentor.com
State Accepted, archived
Commit b1d18072ed9a8b0bca0f20f8e5deefa73ab6acbe
Headers show
Series udev-extraconf/mount.sh: ignore lvm in automount | expand

Commit Message

Hamza, Muhammad June 21, 2022, 5:09 a.m. UTC
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>
---
 meta/recipes-core/udev/udev-extraconf/mount.sh | 4 ++++
 1 file changed, 4 insertions(+)

Patch

diff --git a/meta/recipes-core/udev/udev-extraconf/mount.sh b/meta/recipes-core/udev/udev-extraconf/mount.sh
index 5195bf8dc2..0b0a22965a 100644
--- a/meta/recipes-core/udev/udev-extraconf/mount.sh
+++ b/meta/recipes-core/udev/udev-extraconf/mount.sh
@@ -83,6 +83,8 @@  automount_systemd() {
         ;;
     swap)
         return ;;
+    lvm*|LVM*)
+        return ;;
     # TODO
     *)
         ;;
@@ -143,6 +145,8 @@  automount() {
 		;;
 	swap)
 		return ;;
+	lvm*|LVM*)
+                return ;;
 	# TODO
 	*)
 		;;