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 <[email protected]>
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"

Reply via email to