init.d/fsck: only check local file systems
On linux systems, fsck was not taking into account which filesystems were local or remote. This commit adds the -t option, with an appropriate value, to the fsck call so that remote file systems are not checked. reported-by: Vladimir Berezhnoy <non7top@gmail.com> X-Gentoo-Bug: 408363 X-Gentoo-Bug-URL: http://bugs.gentoo.org/show_bug.cgi?id=408363
This commit is contained in:
parent
300c03203d
commit
0571a7e05b
@ -71,7 +71,12 @@ start()
|
||||
done
|
||||
|
||||
if [ "$RC_UNAME" = Linux ]; then
|
||||
fsck_opts="$fsck_opts -C0 -T"
|
||||
local skiptypes x
|
||||
for x in $net_fs_list $extra_net_fs_list; do
|
||||
skiptypes="${skiptypes}no${x},"
|
||||
done
|
||||
skiptypes="${skiptypes}noopts=_netdev"
|
||||
fsck_opts="$fsck_opts -C0 -T -t $skiptypes"
|
||||
if [ -z "$fsck_passno" -a -z "$fsck_mnt" ]; then
|
||||
fsck_args=${fsck_args--A -p}
|
||||
if echo 2>/dev/null >/.test.$$; then
|
||||
|
Loading…
Reference in New Issue
Block a user