nixpkgs-suyu/modules/system
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
..
activation * switch-to-configuration: force a reinstallation of GRUB whenever the 2009-12-16 18:11:26 +00:00
boot Enabling back the i8042 module loading at initrd. Otherwise, some 2009-12-16 23:45:10 +00:00
etc * Back out r17946 and 17948 because it doesn't work. I've seen it 2009-10-30 08:37:08 +00:00
upstart * Support pre-stop scripts. These are needed to cleanly shutdown 2009-11-06 22:45:19 +00:00
upstart-events Fixing the shutdown script, for the not-that-strange case of having 2009-12-16 23:59:05 +00:00