mirror of
https://github.com/troglobit/finit.git
synced 2026-10-26 12:14:37 +00:00
Unmount all filesystems before rebooting
Signed-off-by: Claudio Matsuoka <cmatsuoka@gmail.com>
This commit is contained in:
1 parent
52feb6f51c
commit
ed4abc952a
1 file changed
+2
-2
+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