From: Harald Hoyer Date: Tue, 28 Feb 2012 11:54:01 +0000 (+0100) Subject: 98usrmount/mount-usr.sh: ignore comments in fstab X-Git-Tag: 018~85 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=b642ce5340dfd72145793f2ca0fe8fdfe7e7dd84;p=thirdparty%2Fdracut.git 98usrmount/mount-usr.sh: ignore comments in fstab --- diff --git a/modules.d/98usrmount/mount-usr.sh b/modules.d/98usrmount/mount-usr.sh index 3e23b15ee..f9d049e37 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=*)