]> git.ipfire.org Git - thirdparty/dracut.git/commitdiff
95fstab-sys: Skip mounted filesystem.
authorChao Wang <chaowang@redhat.com>
Thu, 26 Jul 2012 03:24:25 +0000 (11:24 +0800)
committerHarald Hoyer <harald@redhat.com>
Thu, 26 Jul 2012 06:35:02 +0000 (08:35 +0200)
Signed-off-by: Chao Wang <chaowang@redhat.com>
modules.d/95fstab-sys/mount-sys.sh

index a1e5ab13e8f64bded0138d4d0a3e885986c7d0da..12711a07ddac97142a8cda85a462a56845d0a575 100755 (executable)
@@ -11,6 +11,7 @@ fstab_mount() {
     info "Mounting from $1"
     while read _dev _mp _fs _opts _dump _pass _rest; do
         [ -z "${_dev%%#*}" ] && continue # Skip comment lines
+        ismounted $_mp && continue # Skip mounted filesystem
         if [ "$_pass" -gt 0 ] && ! strstr "$_opts" _netdev; then
             fsck_single "$_dev" "$_fs" "$_opts"
         fi