Unverified Commit 825479c3 authored by Ramses's avatar Ramses Committed by GitHub
Browse files

nixos-rebuild, nixos-rebuild-ng: print the store path that was built (#376142)

parents ecd6e6e1 f1c80ddf
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
@@ -502,6 +502,9 @@ def execute(argv: list[str]) -> None:
                        specialisation=args.specialisation,
                        install_bootloader=args.install_bootloader,
                    )
                    print_result("Done. The new configuration is", path_to_config)
                case Action.BUILD:
                    print_result("Done. The new configuration is", path_to_config)
                case Action.BUILD_VM | Action.BUILD_VM_WITH_BOOTLOADER:
                    # If you get `not-found`, please open an issue
                    vm_path = next(path_to_config.glob("bin/run-*-vm"), "not-found")
+6 −0
Original line number Diff line number Diff line
@@ -949,7 +949,13 @@ if [[ "$action" = switch || "$action" = boot || "$action" = test || "$action" =
    if ! targetHostSudoCmd "${cmd[@]}" "$action"; then
        log "warning: error(s) occurred while switching to the new configuration"
        exit 1
    else
        echo -n "Done. The new configuration is " >&2
        echo "$pathToConfig"
    fi
elif [[ "$action" = build ]]; then
    echo -n "Done. The new configuration is " >&2
    echo "$pathToConfig"
fi