95fstab-sys: Skip mounted filesystem.

Signed-off-by: Chao Wang <chaowang@redhat.com>
master
Chao Wang 2012-07-26 11:24:25 +08:00 committed by Harald Hoyer
parent ab8bfca794
commit 06c6ea654f
1 changed files with 1 additions and 0 deletions

View File

@ -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