1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-12-15 17:25:11 +00:00
nixpkgs/modules/system/upstart-events
Lluís Batlle i Rossell 483ee6219e Fixing the shutdown script, for the not-that-strange case of having
/nix bind mounted from a fs not rootfs.

As niksnut found, if the sources of bind mounted directories are
umounted before remounting them as "ro", a "mount -o remount,ro" on the
bind targets will not leave the filesystem properly umounted, the same
way as a "-o remount,ro" would do on a usual filesystem.

So, the trick of always remounting as 'ro' before attempting an umount seems
to fix the problem.

svn path=/nixos/trunk/; revision=19008
2009-12-16 23:59:05 +00:00
..
control-alt-delete.nix * Updated some more jobs. 2009-11-06 19:20:09 +00:00
runlevel.nix * Updated poweroff/reboot/maintenance mode for Upstart 0.6. Upstart 2009-11-06 21:08:06 +00:00
shutdown.nix Fixing the shutdown script, for the not-that-strange case of having 2009-12-16 23:59:05 +00:00