mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2024-10-22 05:07:45 +03:00
* Do a sync before switching to a new configuration.
svn path=/nixos/trunk/; revision=33381
This commit is contained in:
parent
7c75b046ea
commit
1949a85987
@ -188,6 +188,9 @@ fi
|
|||||||
# If we're not just building, then make the new configuration the boot
|
# If we're not just building, then make the new configuration the boot
|
||||||
# default and/or activate it now.
|
# default and/or activate it now.
|
||||||
if test "$action" = switch -o "$action" = boot -o "$action" = test; then
|
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"
|
$pathToConfig/bin/switch-to-configuration "$action"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user