Bug#444262: Possible fix

Mark Hindley mark at hindley.org.uk
Wed Oct 8 14:01:50 BST 2025


Control: tags -1 patch

Loïc,

Firstly, apologies for the ridiculously long time it has taken to answer this.

I wonder if using the --recursive flag to umount(8) would be a good solution.

Initial patch attached for testing.

Mark

commit 2610345b8186b759780a97db61b93145e9614d80
Author: Mark Hindley <mark at hindley.org.uk>
Date:   Wed Oct 8 13:58:41 2025 +0100

    umountnfs: recursively umount network filesystems.
    
    Closes: #444262

diff --git a/debian/src/initscripts/etc/init.d/umountnfs.sh b/debian/src/initscripts/etc/init.d/umountnfs.sh
index beddf604..4bf1c758 100755
--- a/debian/src/initscripts/etc/init.d/umountnfs.sh
+++ b/debian/src/initscripts/etc/init.d/umountnfs.sh
@@ -52,6 +52,7 @@ do_stop() {
 		case "$FSTYPE" in
 			nfs | nfs4 | smbfs | ncp | ncpfs | cifs | coda | ceph)
 				DIRS="$MTPT $DIRS"
+				FLAGS="--recursive $FLAGS"
 				;;
 			proc | procfs | linprocfs | devpts | usbfs | usbdevfs | sysfs)
 				DIRS="$MTPT $DIRS"



More information about the Debian-init-diversity mailing list