From ed4abc952a7ecc8d7235095ae5ac249c8c496f77 Mon Sep 17 00:00:00 2001 From: Claudio Matsuoka Date: Wed, 27 Aug 2008 17:17:26 -0300 Subject: [PATCH] Unmount all filesystems before rebooting Signed-off-by: Claudio Matsuoka --- finit-alt.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/finit-alt.c b/finit-alt.c index af8a3430..7b3c8124 100644 --- a/finit-alt.c +++ b/finit-alt.c @@ -625,8 +625,8 @@ void shutdown(int sig) sync(); sync(); - system("/bin/mount -n -o remount,ro /"); - system("/sbin/unionctl.static / --remove / > /dev/null 2>&1"); + system("/bin/umount -a;/bin/mount -n -o remount,ro /"); + //system("/sbin/unionctl.static / --remove / > /dev/null 2>&1"); if (sig == SIGINT || sig == SIGUSR1) reboot(RB_AUTOBOOT);