Revert "local/netmount: remove uses of -O [no]_netdev"
This reverts commit 2a439c85bd
.
There is another use case for -O involving iscsi, so we can't remove it.
This commit is contained in:
parent
3b6a6df4b5
commit
dac5966ca4
@ -12,6 +12,11 @@ configuration settings for best results with OpenRC.
|
|||||||
CONFIG_START_STOP_DAEMON -- The start-stop-daemon applet is not compatible with
|
CONFIG_START_STOP_DAEMON -- The start-stop-daemon applet is not compatible with
|
||||||
start-stop-daemon in OpenRC.
|
start-stop-daemon in OpenRC.
|
||||||
|
|
||||||
|
CONFIG_MOUNT -- The mount applet does not support the -O [no]_netdev options to
|
||||||
|
skip over or include network file systems when the -a option is present.
|
||||||
|
|
||||||
|
CONFIG_UMOUNT -- The umount applet does not support the -O option along with -a.
|
||||||
|
|
||||||
CONFIG_SWAPONOFF -- The swapon applet does not support the -e option
|
CONFIG_SWAPONOFF -- The swapon applet does not support the -e option
|
||||||
or recognize the nofail option in fstab.
|
or recognize the nofail option in fstab.
|
||||||
|
|
||||||
|
16
NEWS.md
16
NEWS.md
@ -5,23 +5,15 @@ the information in this file is in reverse order.
|
|||||||
|
|
||||||
## OpenRC-0.18
|
## OpenRC-0.18
|
||||||
|
|
||||||
The behaviour of localmount and netmount is changing. In the past, these
|
The behaviour of localmount and netmount in this version is changing. In
|
||||||
services always started successfully. However, now they will fail if a
|
the past, these services always started successfully. In this version,
|
||||||
file system they attempt to mount cannot be mounted.
|
they will be able to fail if file systems they mount fail to mount. If
|
||||||
|
you have file systems listed in fstab which should not be mounted at
|
||||||
If you have file systems listed in fstab which should not be mounted at
|
|
||||||
boot time, make sure to add noauto to the mount options. If you have
|
boot time, make sure to add noauto to the mount options. If you have
|
||||||
file systems that you want to attempt to mount at boot time but failure
|
file systems that you want to attempt to mount at boot time but failure
|
||||||
should be allowed, add nofail to the mount options for these file
|
should be allowed, add nofail to the mount options for these file
|
||||||
systems in fstab.
|
systems in fstab.
|
||||||
|
|
||||||
In this version, we are dropping the use of the -O switch for
|
|
||||||
mount/umount -a. This is being dropped because it is util-linux
|
|
||||||
specific and not compatible with busybox.
|
|
||||||
|
|
||||||
This should not be a regression for Gentoo users, but I am publishing
|
|
||||||
this here because it may be for others.
|
|
||||||
|
|
||||||
## OpenRC-0.14
|
## OpenRC-0.14
|
||||||
|
|
||||||
The binfmt service, which registers misc binary formats with the Linux
|
The binfmt service, which registers misc binary formats with the Linux
|
||||||
|
@ -15,18 +15,19 @@ depend()
|
|||||||
start()
|
start()
|
||||||
{
|
{
|
||||||
# Mount local filesystems in /etc/fstab.
|
# Mount local filesystems in /etc/fstab.
|
||||||
local types="noproc" x= rc=
|
local types="noproc" x= no_netdev= rc=
|
||||||
for x in $net_fs_list $extra_net_fs_list; do
|
for x in $net_fs_list $extra_net_fs_list; do
|
||||||
types="${types},no${x}"
|
types="${types},no${x}"
|
||||||
done
|
done
|
||||||
|
|
||||||
if [ "$RC_UNAME" = Linux ]; then
|
if [ "$RC_UNAME" = Linux ]; then
|
||||||
|
no_netdev="-O no_netdev"
|
||||||
if mountinfo -q /usr; then
|
if mountinfo -q /usr; then
|
||||||
touch "$RC_SVCDIR"/usr_premounted
|
touch "$RC_SVCDIR"/usr_premounted
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
ebegin "Mounting local filesystems"
|
ebegin "Mounting local filesystems"
|
||||||
mount -at "$types"
|
mount -at "$types" $no_netdev
|
||||||
eend $? "Some local filesystem failed to mount"
|
eend $? "Some local filesystem failed to mount"
|
||||||
rc=$?
|
rc=$?
|
||||||
if [ "$RC_UNAME" != Linux ]; then
|
if [ "$RC_UNAME" != Linux ]; then
|
||||||
|
@ -22,6 +22,10 @@ start()
|
|||||||
ebegin "Mounting network filesystems"
|
ebegin "Mounting network filesystems"
|
||||||
mount -at $fs
|
mount -at $fs
|
||||||
rc=$?
|
rc=$?
|
||||||
|
if [ "$RC_UNAME" = Linux ]; then
|
||||||
|
mount -a -O _netdev
|
||||||
|
rc=$?
|
||||||
|
fi
|
||||||
ewend $rc "Could not mount all network filesystems"
|
ewend $rc "Could not mount all network filesystems"
|
||||||
if [ "$RC_UNAME" != Linux ]; then
|
if [ "$RC_UNAME" != Linux ]; then
|
||||||
rc=0
|
rc=0
|
||||||
@ -53,5 +57,9 @@ stop()
|
|||||||
retval=$?
|
retval=$?
|
||||||
|
|
||||||
eoutdent
|
eoutdent
|
||||||
|
if [ "$RC_UNAME" = Linux ]; then
|
||||||
|
umount -a -O _netdev
|
||||||
|
retval=$?
|
||||||
|
fi
|
||||||
eend $retval "Failed to unmount network filesystems"
|
eend $retval "Failed to unmount network filesystems"
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user