fsck: simplify skiplist setup
Use printf rather than a manual for loop. Signed-off-by: Mike Frysinger <vapier@gentoo.org>
This commit is contained in:
parent
8d61d03e27
commit
2c60282ba9
@ -71,12 +71,10 @@ start()
|
|||||||
done
|
done
|
||||||
|
|
||||||
if [ "$RC_UNAME" = Linux ]; then
|
if [ "$RC_UNAME" = Linux ]; then
|
||||||
local skiptypes x
|
local skiptypes
|
||||||
for x in $net_fs_list $extra_net_fs_list; do
|
skiptypes=$(printf 'no%s,' ${net_fs_list} ${extra_net_fs_list})
|
||||||
skiptypes="${skiptypes}no${x},"
|
[ "${skiptypes}" = "no," ] && skiptypes=""
|
||||||
done
|
fsck_opts="$fsck_opts -C0 -T -t ${skiptypes}noopts=_netdev"
|
||||||
skiptypes="${skiptypes}noopts=_netdev"
|
|
||||||
fsck_opts="$fsck_opts -C0 -T -t $skiptypes"
|
|
||||||
if [ -z "$fsck_passno" -a -z "$fsck_mnt" ]; then
|
if [ -z "$fsck_passno" -a -z "$fsck_mnt" ]; then
|
||||||
fsck_args=${fsck_args--A -p}
|
fsck_args=${fsck_args--A -p}
|
||||||
if echo 2>/dev/null >/.test.$$; then
|
if echo 2>/dev/null >/.test.$$; then
|
||||||
|
Loading…
Reference in New Issue
Block a user