Bug#704108: Suggested patch

Mark Hindley mark at hindley.org.uk
Wed Oct 8 13:44:19 BST 2025


Control: tags -1 patch

Askar,

Firstly apologies for the extreme delay in answering this.

I think we can resolve this by using the --recursive flag to umount(8) for tmpfs
mounts.

Suggested patch below.

Mark

commit f0e27eefe39c58ca276676d06820861b01922c93
Author: Mark Hindley <mark at hindley.org.uk>
Date:   Wed Oct 8 13:08:59 2025 +0100

    umountfs: recursively umount tmpfs.
    
    Closes: #704108

diff --git a/debian/src/initscripts/etc/init.d/umountfs b/debian/src/initscripts/etc/init.d/umountfs
index b8ee75b8..2960e7f3 100755
--- a/debian/src/initscripts/etc/init.d/umountfs
+++ b/debian/src/initscripts/etc/init.d/umountfs
@@ -53,11 +53,11 @@ do_stop() {
 	if [ "$TMPFS_MTPTS" ]; then
 		if [ "$VERBOSE" = no ]; then
 			log_action_begin_msg "Unmounting temporary filesystems"
-			fstab-decode umount $TMPFS_MTPTS
+			fstab-decode umount --recursive $TMPFS_MTPTS
 			log_action_end_msg $?
 		else
 			log_daemon_msg "Will now unmount temporary filesystems"
-			fstab-decode umount -v $TMPFS_MTPTS
+			fstab-decode umount --recursive -v $TMPFS_MTPTS
 			log_end_msg $?
 		fi
 	fi



More information about the Debian-init-diversity mailing list