From 56b52791312edeade1e6bd853ce56c778f363d50 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=B6rg=20Thalheim?= Date: Sat, 23 Dec 2023 21:07:31 +0100 Subject: [PATCH] fix kexec-syscall-auto check --- nix/kexec-installer/kexec-run.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/nix/kexec-installer/kexec-run.sh b/nix/kexec-installer/kexec-run.sh index afeed10..9a144c3 100644 --- a/nix/kexec-installer/kexec-run.sh +++ b/nix/kexec-installer/kexec-run.sh @@ -57,7 +57,7 @@ find . | cpio -o -H newc | gzip -9 >> "$SCRIPT_DIR/initrd" kexecSyscallFlags="" # only do kexec-syscall-auto on kernels newer than 6.0. # On older kernel we often get errors like: https://github.com/nix-community/nixos-anywhere/issues/264 -if ! printf "%s\n" "6.1" "$(uname -r)" | sort -c -V; then +if printf "%s\n" "6.1" "$(uname -r)" | sort -c -V 2>&1; then kexecSyscallFlags="--kexec-syscall-auto" fi