mirror of
https://github.com/OpenRC/openrc.git
synced 2024-11-30 13:24:42 +08:00
fix issue with extra_net_fs_list
The extra_net_fs_list variable was not being included as it should have been for the net file systems because it was being expanded before it was set by the user. X-Gentoo-Bug: 374133 X-Gentoo-Bug-URL: https://bugs.gentoo.org/show_bug.cgi?id=374133
This commit is contained in:
parent
48dcc55b65
commit
e8e86b96dc
@ -16,7 +16,7 @@ start()
|
|||||||
{
|
{
|
||||||
# Mount local filesystems in /etc/fstab.
|
# Mount local filesystems in /etc/fstab.
|
||||||
local types="noproc" x= no_netdev=
|
local types="noproc" x= no_netdev=
|
||||||
for x in $net_fs_list; do
|
for x in $net_fs_list $extra_net_fs_list; do
|
||||||
types="${types},${x}"
|
types="${types},${x}"
|
||||||
done
|
done
|
||||||
|
|
||||||
@ -70,7 +70,7 @@ stop()
|
|||||||
einfo "Unmounting filesystems"
|
einfo "Unmounting filesystems"
|
||||||
eindent
|
eindent
|
||||||
local fs=
|
local fs=
|
||||||
for x in $net_fs_list; do
|
for x in $net_fs_list $extra_net_fs_list; do
|
||||||
fs="$fs${fs:+|}$x"
|
fs="$fs${fs:+|}$x"
|
||||||
done
|
done
|
||||||
[ -n "$fs" ] && fs="^($fs)$"
|
[ -n "$fs" ] && fs="^($fs)$"
|
||||||
|
@ -34,7 +34,7 @@ start()
|
|||||||
fi
|
fi
|
||||||
m="^($m)$"
|
m="^($m)$"
|
||||||
fs=
|
fs=
|
||||||
for x in $net_fs_list; do
|
for x in $net_fs_list $extra_net_fs_list; do
|
||||||
fs="$fs${fs:+|}$x"
|
fs="$fs${fs:+|}$x"
|
||||||
done
|
done
|
||||||
[ -n "$fs" ] && fs="^($fs)$"
|
[ -n "$fs" ] && fs="^($fs)$"
|
||||||
|
@ -44,7 +44,7 @@ start()
|
|||||||
[ -x @SYSCONFDIR@/init.d/rpcbind ] && pmap="rpcbind"
|
[ -x @SYSCONFDIR@/init.d/rpcbind ] && pmap="rpcbind"
|
||||||
|
|
||||||
local x= fs= rc=
|
local x= fs= rc=
|
||||||
for x in $net_fs_list; do
|
for x in $net_fs_list $extra_net_fs_list; do
|
||||||
case "$x" in
|
case "$x" in
|
||||||
nfs|nfs4)
|
nfs|nfs4)
|
||||||
# If the nfsmount script took care of the nfs
|
# If the nfsmount script took care of the nfs
|
||||||
@ -81,7 +81,7 @@ stop()
|
|||||||
ebegin "Unmounting network filesystems"
|
ebegin "Unmounting network filesystems"
|
||||||
. "$RC_LIBEXECDIR"/sh/rc-mount.sh
|
. "$RC_LIBEXECDIR"/sh/rc-mount.sh
|
||||||
|
|
||||||
for x in $net_fs_list; do
|
for x in $net_fs_list $extra_net_fs_list; do
|
||||||
fs="$fs${fs:+,}$x"
|
fs="$fs${fs:+,}$x"
|
||||||
done
|
done
|
||||||
if [ -n "$fs" ]; then
|
if [ -n "$fs" ]; then
|
||||||
@ -90,7 +90,7 @@ stop()
|
|||||||
|
|
||||||
eindent
|
eindent
|
||||||
fs=
|
fs=
|
||||||
for x in $net_fs_list; do
|
for x in $net_fs_list $extra_net_fs_list; do
|
||||||
fs="$fs${fs:+|}$x"
|
fs="$fs${fs:+|}$x"
|
||||||
done
|
done
|
||||||
[ -n "$fs" ] && fs="^($fs)$"
|
[ -n "$fs" ] && fs="^($fs)$"
|
||||||
|
@ -39,7 +39,7 @@ stop_addon()
|
|||||||
}
|
}
|
||||||
|
|
||||||
net_fs_list="afs cifs coda davfs fuse fuse.sshfs gfs glusterfs lustre
|
net_fs_list="afs cifs coda davfs fuse fuse.sshfs gfs glusterfs lustre
|
||||||
ncpfs nfs nfs4 ocfs2 shfs smbfs $extra_net_fs_list"
|
ncpfs nfs nfs4 ocfs2 shfs smbfs"
|
||||||
is_net_fs()
|
is_net_fs()
|
||||||
{
|
{
|
||||||
[ -z "$1" ] && return 1
|
[ -z "$1" ] && return 1
|
||||||
|
Loading…
Reference in New Issue
Block a user