mirror of
https://github.com/troglobit/finit.git
synced 2026-11-29 21:08:21 +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();
|
||||||
sync();
|
sync();
|
||||||
system("/bin/mount -n -o remount,ro /");
|
system("/bin/umount -a;/bin/mount -n -o remount,ro /");
|
||||||
system("/sbin/unionctl.static / --remove / > /dev/null 2>&1");
|
//system("/sbin/unionctl.static / --remove / > /dev/null 2>&1");
|
||||||
|
|
||||||
if (sig == SIGINT || sig == SIGUSR1)
|
if (sig == SIGINT || sig == SIGUSR1)
|
||||||
reboot(RB_AUTOBOOT);
|
reboot(RB_AUTOBOOT);
|
||||||
|
|||||||
Reference in new issue
Block a user