mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-02 07:31:26 +00:00
* Unmount file systems.
svn path=/nixu/trunk/; revision=7084
This commit is contained in:
parent
49b2a218b5
commit
54f6e4fc71
@ -15,8 +15,20 @@ script
|
||||
echo \"<<< SYSTEM SHUTDOWN >>>\"
|
||||
echo \"\"
|
||||
|
||||
# Do an initial sync just in case.
|
||||
sync || true
|
||||
|
||||
# Unmount file systems.
|
||||
umount -n -a || true
|
||||
|
||||
# Remount / read-only
|
||||
mount -n -o remount,ro /dontcare / || true
|
||||
|
||||
# Final sync.
|
||||
sync || true
|
||||
|
||||
# Right now all events above power off the system.
|
||||
exec halt -f -p
|
||||
exec halt -f
|
||||
end script
|
||||
";
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user