genfstab: check sooner for pseudofs types
This commit is contained in:
parent
026f54428d
commit
1f2a6b9b71
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user