diff options
author | Eelco Dolstra <eelco.dolstra@logicblox.com> | 2014-08-15 01:57:36 +0200 |
---|---|---|
committer | Eelco Dolstra <eelco.dolstra@logicblox.com> | 2014-08-15 02:14:34 +0200 |
commit | 785ed2b528322676a256fc14a2201773626f46bb (patch) | |
tree | 43fc06481eb73940f901153574d4ac8106dc8fda /nixos/modules/installer | |
parent | 883fa4f9205b2aa699760a73e1f1a26bb4f5296e (diff) | |
download | nixlib-785ed2b528322676a256fc14a2201773626f46bb.tar nixlib-785ed2b528322676a256fc14a2201773626f46bb.tar.gz nixlib-785ed2b528322676a256fc14a2201773626f46bb.tar.bz2 nixlib-785ed2b528322676a256fc14a2201773626f46bb.tar.lz nixlib-785ed2b528322676a256fc14a2201773626f46bb.tar.xz nixlib-785ed2b528322676a256fc14a2201773626f46bb.tar.zst nixlib-785ed2b528322676a256fc14a2201773626f46bb.zip |
Don't silently ignore errors from the activation script
Diffstat (limited to 'nixos/modules/installer')
-rw-r--r-- | nixos/modules/installer/tools/nixos-rebuild.sh | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/nixos/modules/installer/tools/nixos-rebuild.sh b/nixos/modules/installer/tools/nixos-rebuild.sh index be37e61151aa..52b64c37578e 100644 --- a/nixos/modules/installer/tools/nixos-rebuild.sh +++ b/nixos/modules/installer/tools/nixos-rebuild.sh @@ -225,7 +225,10 @@ fi # If we're not just building, then make the new configuration the boot # default and/or activate it now. if [ "$action" = switch -o "$action" = boot -o "$action" = test ]; then - $pathToConfig/bin/switch-to-configuration "$action" + if ! $pathToConfig/bin/switch-to-configuration "$action"; then + echo "warning: there were error switching to the new configuration" >&2 + exit 1 + fi fi |