From: Harald Hoyer Date: Thu, 18 Feb 2010 16:46:01 +0000 (+0100) Subject: mount-root: skip comments X-Git-Tag: 005~38 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=d793fc2e8b873f2b5471afe397f81c533bdc3f0f;p=thirdparty%2Fdracut.git mount-root: skip comments --- diff --git a/modules.d/95rootfs-block/mount-root.sh b/modules.d/95rootfs-block/mount-root.sh index 2b4c78560..0ac156d6b 100755 --- a/modules.d/95rootfs-block/mount-root.sh +++ b/modules.d/95rootfs-block/mount-root.sh @@ -36,6 +36,9 @@ if [ -n "$root" -a -z "${root%%block:*}" ]; then rootfs="auto" rootopts="defaults" while read dev mp fs opts rest; do + # skip comments + [ "${dev%%#*}" != "$dev" ] && continue + if [ "$mp" = "/" ]; then rootfs=$fs rootopts=$opts