From eeab4780baae3bd6ee5edb91074ffc5991d73e5f Mon Sep 17 00:00:00 2001 From: Clifford Wolf Date: Sun, 3 Jun 2007 13:33:49 +0000 Subject: [PATCH] Clifford Wolf: Fixed filesystem shutdown procedure [2007053013065716522] (https://www.rocklinux.net/submaster) git-svn-id: http://www.rocklinux.org/svn/rock-linux/trunk@8544 c5f82cb5-29bc-0310-9cd0-bff59a50e3bc --- package/base/sysfiles/localfs.init | 8 -------- package/base/sysfiles/system.init | 8 ++++++++ 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/package/base/sysfiles/localfs.init b/package/base/sysfiles/localfs.init index e67d2ef7a..ba7923c35 100644 --- a/package/base/sysfiles/localfs.init +++ b/package/base/sysfiles/localfs.init @@ -78,13 +78,5 @@ dnl mount -o remount,ro $dir umount -d $dir done -dnl - block_split(`Unmounting remaining file systems.') - grep -E -v '^none (/|[a-z]+:) ' /proc/mounts > /etc/mtab - sync ; sleep 1 ; sync - umount -vdnra -t nodevfs,proc,sysfs,shm - mount -vn -o remount,sync / - mount -vn -o remount,ro / - sleep 1 ; sync ; sleep 1 block_end main_end diff --git a/package/base/sysfiles/system.init b/package/base/sysfiles/system.init index 083c6eebf..5032bac9c 100644 --- a/package/base/sysfiles/system.init +++ b/package/base/sysfiles/system.init @@ -71,6 +71,14 @@ dnl check(`killall5 -15') ; sleep 5 block_split(`Sending all processes a KILL signal.') check(`killall5 -9') ; sleep 5 +dnl + block_split(`Unmounting remaining file systems.') + grep -E -v '^none (/|[a-z]+:) ' /proc/mounts > /etc/mtab + sync ; sleep 1 ; sync + umount -vdnra -t nodevfs,proc,sysfs,shm + mount -vn -o remount,sync / + mount -vn -o remount,ro / + sleep 1 ; sync ; sleep 1 dnl block_split() command=""