improve shutdown clean-up

This commit is contained in:
Tom Mortensen
2024-12-20 11:55:26 -08:00
parent 20a93f5b95
commit 1af5d0de5d
2 changed files with 10 additions and 2 deletions
+9 -1
View File
@@ -259,13 +259,21 @@ fi
# This never hurts:
/bin/sync
# now remount /boot read-only
log "Remounting /boot read-only:"
run /bin/mount -v -o remount,ro /boot
log "Remounting /lib read-only:"
run /bin/mount -v -o remount,ro /lib
log "Remounting /usr read-only:"
run /bin/mount -v -o remount,ro /usr
log "Remounting root filesystem read-only:"
run /bin/mount -v -n -o remount,ro /
# Update PATH hashes:
hash -r
# sleep 3 fixes problems with some hard drives that don't
# otherwise finish syncing before reboot or poweroff
/bin/sleep 3
+1 -1
View File
@@ -68,7 +68,7 @@ fi
# upgrade network configuration (if needed) and (re)generates our welcome text
if [[ -x /usr/local/sbin/create_network_ini ]]; then
/usr/local/sbin/create_network_ini init &>/dev/null &
/usr/local/sbin/create_network_ini init &
fi
# Needed by dynamix