Skip to content

Commit

Permalink
Merge pull request #146 from ajs124/fix/kexec-check
Browse files Browse the repository at this point in the history
move kexec check into kexec codepath
  • Loading branch information
Mic92 committed Jul 12, 2023
2 parents 04f9809 + eb1997c commit abdec7b
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/nixos-anywhere.sh
Original file line number Diff line number Diff line change
Expand Up @@ -301,11 +301,11 @@ if [[ ${is_os-n} != "Linux" ]]; then
abort "This script requires Linux as the operating system, but got $is_os"
fi

if [[ ${is_arch-n} != "x86_64" ]] && [[ $kexec_url == "$default_kexec_url" ]]; then
abort "The default kexec image only support x86_64 cpus. Checkout https://github.com/numtide/nixos-anywhere/#using-your-own-kexec-image for more information."
fi

if [[ ${is_kexec-n} == "n" ]] && [[ ${is_installer-n} == "n" ]]; then
if [[ ${is_arch-n} != "x86_64" ]] && [[ $kexec_url == "$default_kexec_url" ]]; then
abort "The default kexec image only support x86_64 cpus. Checkout https://github.com/numtide/nixos-anywhere/#using-your-own-kexec-image for more information."
fi

step Switching system into kexec
ssh_ <<SSH
set -efu ${enable_debug}
Expand Down

0 comments on commit abdec7b

Please sign in to comment.