From e704dbe6bd661385d19bcc874f95b2ba4dbcce46 Mon Sep 17 00:00:00 2001 From: Michael Tremer Date: Tue, 17 Nov 2020 16:35:13 +0000 Subject: [PATCH] network: Mount/umount network file systems at the correct time Signed-off-by: Michael Tremer --- config/rootfiles/core/153/filelists/files | 1 + src/initscripts/system/network | 8 ++++++++ 2 files changed, 9 insertions(+) diff --git a/config/rootfiles/core/153/filelists/files b/config/rootfiles/core/153/filelists/files index fddb5d68a3..10a19f8708 100644 --- a/config/rootfiles/core/153/filelists/files +++ b/config/rootfiles/core/153/filelists/files @@ -1,6 +1,7 @@ etc/issue etc/ntp.conf etc/os-release +etc/rc.d/init.d/network etc/rc.d/init.d/unbound etc/system-release etc/sysctl.conf diff --git a/src/initscripts/system/network b/src/initscripts/system/network index 6e7120885f..32b34343e1 100644 --- a/src/initscripts/system/network +++ b/src/initscripts/system/network @@ -67,9 +67,17 @@ case "${DO}" in /usr/local/bin/ipsec-interfaces /etc/rc.d/init.d/static-routes start + + boot_mesg "Mounting network file systems..." + mount -a -O _netdev + evaluate_retval ;; stop) + boot_mesg "Umounting network file systems..." + umount -a -O _netdev + evaluate_retval + # Stopping interfaces... # GREEN [ "$green" == "1" ] && /etc/rc.d/init.d/networking/green stop -- 2.39.5