genfstab: check sooner for pseudofs types

This commit is contained in:
Dave Reisner 2013-07-14 12:24:34 -04:00
parent 026f54428d
commit 1f2a6b9b71

View File

@ -99,6 +99,10 @@ fi
# handle block devices
findmnt -Recvruno SOURCE,TARGET,FSTYPE,OPTIONS,FSROOT "$root" |
while read -r src target fstype opts fsroot; do
if (( nopseudofs )) && fstype_is_pseudofs "$fstype"; then
continue
fi
# default 5th and 6th columns
dump=0 pass=2
@ -111,10 +115,6 @@ findmnt -Recvruno SOURCE,TARGET,FSTYPE,OPTIONS,FSROOT "$root" |
pass=1 foundroot=1
fi
if fstype_is_pseudofs "$fstype" && (( nopseudofs )); then
continue
fi
# if there's no fsck tool available, then only pass=0 makes sense.
if ! fstype_has_fsck "$fstype"; then
pass=0