You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
abort "Unsupported architecture: ${isArch}. Our default kexec images only support x86_64 and aarch64 cpus. Checkout https://github.com/nix-community/nixos-anywhere/#using-your-own-kexec-image for more information."
390
-
;;
391
-
esac
392
-
fi
382
+
if [[ ${isContainer-none}!="none" ]];then
383
+
echo"WARNING: This script does not support running from a '${isContainer}' container. kexec will likely not work">&2
abort "Unsupported architecture: ${isArch}. Our default kexec images only support x86_64 and aarch64 cpus. Checkout https://github.com/nix-community/nixos-anywhere/#using-your-own-kexec-image for more information."
393
+
;;
394
+
esac
395
+
fi
393
396
394
-
step Switching system into kexec
395
-
runSsh sh <<SSH
397
+
step Switching system into kexec
398
+
runSsh sh <<SSH
396
399
set -efu ${enableDebug}
397
400
$maybeSudo rm -rf /root/kexec
398
401
$maybeSudo mkdir -p /root/kexec
399
402
SSH
400
403
401
-
# no way to reach global ipv4 destinations, use gh-v6.com automatically if github url
402
-
if [[ ${hasIpv6_only-n}=="y" ]] && [[ $kexecUrl=="https://github.com/"* ]];then
403
-
kexecUrl=${kexecUrl/"github.com"/"gh-v6.com"}
404
-
fi
404
+
# no way to reach global ipv4 destinations, use gh-v6.com automatically if github url
405
+
if [[ ${hasIpv6_only-n}=="y" ]] && [[ $kexecUrl=="https://github.com/"* ]];then
406
+
kexecUrl=${kexecUrl/"github.com"/"gh-v6.com"}
407
+
fi
405
408
406
-
if [[ -f$kexecUrl ]];then
407
-
runSsh "${maybeSudo} tar -C /root/kexec -xvzf-"<"$kexecUrl"
0 commit comments