Bug#761511: Suggested patch
Mark Hindley
mark at hindley.org.uk
Mon Feb 10 11:16:48 GMT 2025
Control: tags -1 patch
Hi,
Sorry for the extended wait for a resolution to this.
I suspect the /dev/run -> /run/shm migration is pretty much done now, but I
suggest the following to ensure the warning is only printed when /dev/shm
actually appears in /etc/fstab.
Mark
commit 1b9c9ee5b8bb8968c5dbee93555699ad6f25056c
Author: Mark Hindley <mark at hindley.org.uk>
Date: Mon Feb 10 11:08:37 2025 +0000
Only warn about old /dev/shm mount if it is actually present in /etc/fstab.
Closes: #761511
diff --git a/debian/src/initscripts/lib/init/mount-functions.sh b/debian/src/initscripts/lib/init/mount-functions.sh
index 4348ecfa..02a5ea3f 100644
--- a/debian/src/initscripts/lib/init/mount-functions.sh
+++ b/debian/src/initscripts/lib/init/mount-functions.sh
@@ -384,7 +384,9 @@ run_migrate ()
if [ ! -L "$OLD" ] && [ -d "$OLD" ] ; then
if [ "$OLD" != "/tmp" ]; then
log_warning_msg "Filesystem mounted on $OLD; setting up compatibility bind mount."
- log_warning_msg "Please remove this mount from /etc/fstab; it is no longer needed, and it is preventing completion of the transition to $RUN."
+ if read_fstab_entry "$OLD" ; then
+ log_warning_msg "Please remove this mount from /etc/fstab; it is no longer needed, and it is preventing completion of the transition to $RUN."
+ fi
fi
mount -t $FSTYPE "$RUN" "$OLD" $OPTS
else
More information about the Debian-init-diversity
mailing list