* Do a sync before switching to a new configuration.
svn path=/nixos/trunk/; revision=33381
This commit is contained in:
parent
7c75b046ea
commit
1949a85987
1 changed files with 3 additions and 0 deletions
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in a new issue