mirror of
https://github.com/troglobit/finit.git
synced 2026-10-02 22:13:01 +07:00
Unmount all filesystems before rebooting
Signed-off-by: Claudio Matsuoka <cmatsuoka@gmail.com>
This commit is contained in:
+2
-2
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user