Skip to content

Commit eaeb75c

Browse files
authored
Merge pull request #478 from phaer/skip-pre-switch-checks
Allow skipping system.preSwitchChecks...
2 parents 77e6a4e + ab5d00f commit eaeb75c

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/nixos-anywhere.sh

+4
Original file line numberDiff line numberDiff line change
@@ -719,6 +719,10 @@ if [ ${copyHostKeys-n} = "y" ]; then
719719
cp -a "\$p" "/mnt/\$p"
720720
done
721721
fi
722+
# https://stackoverflow.com/a/13864829
723+
if [ ! -z ${NIXOS_NO_CHECK+0} ]; then
724+
export NIXOS_NO_CHECK
725+
fi
722726
nixos-install --no-root-passwd --no-channel-copy --system "$nixosSystem"
723727
if [[ ${phases[reboot]} == 1 ]]; then
724728
if command -v zpool >/dev/null && [ "\$(zpool list)" != "no pools available" ]; then

0 commit comments

Comments
 (0)