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