Blame 0014-98usrmount-mount-usr.sh-ignore-comments-in-fstab.patch

Harald Hoyer 66318b
From b642ce5340dfd72145793f2ca0fe8fdfe7e7dd84 Mon Sep 17 00:00:00 2001
Harald Hoyer 66318b
From: Harald Hoyer <harald@redhat.com>
Harald Hoyer 66318b
Date: Tue, 28 Feb 2012 12:54:01 +0100
Harald Hoyer 66318b
Subject: [PATCH] 98usrmount/mount-usr.sh: ignore comments in fstab
Harald Hoyer 66318b
Harald Hoyer 66318b
---
Harald Hoyer 66318b
 modules.d/98usrmount/mount-usr.sh |    1 +
Harald Hoyer 66318b
 1 files changed, 1 insertions(+), 0 deletions(-)
Harald Hoyer 66318b
Harald Hoyer 66318b
diff --git a/modules.d/98usrmount/mount-usr.sh b/modules.d/98usrmount/mount-usr.sh
Harald Hoyer 66318b
index 3e23b15..f9d049e 100755
Harald Hoyer 66318b
--- a/modules.d/98usrmount/mount-usr.sh
Harald Hoyer 66318b
+++ b/modules.d/98usrmount/mount-usr.sh
Harald Hoyer 66318b
@@ -39,6 +39,7 @@ mount_usr()
Harald Hoyer 66318b
     local _dev _mp _fs _opts _rest _usr_found _ret _freq _passno
Harald Hoyer 66318b
     # check, if we have to mount the /usr filesystem
Harald Hoyer 66318b
     while read _dev _mp _fs _opts _freq _passno; do
Harald Hoyer 66318b
+        [ "${_dev%%#*}" != "$_dev" ] && continue
Harald Hoyer 66318b
         if [ "$_mp" = "/usr" ]; then
Harald Hoyer 66318b
             case "$_dev" in
Harald Hoyer 66318b
                 LABEL=*)