* Do a sync before switching to a new configuration.

svn path=/nixos/trunk/; revision=33381
This commit is contained in:
Eelco Dolstra 2012-03-23 12:29:11 +00:00
parent 7c75b046ea
commit 1949a85987

View file

@ -188,6 +188,9 @@ fi
# If we're not just building, then make the new configuration the boot
# default and/or activate it now.
if test "$action" = switch -o "$action" = boot -o "$action" = test; then
# Just in case the new configuration hangs the system, do a sync now.
sync
$pathToConfig/bin/switch-to-configuration "$action"
fi