From 9c999a070d429e3a0fb7f61ba9772997b6d4402e Mon Sep 17 00:00:00 2001 From: Antoine Viallon Date: Wed, 10 Jan 2024 21:52:48 +0100 Subject: [PATCH] [Boot] fix last boot marking for Nixos 23.11 + fix issue when not booted into a specialization --- boot.nix | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/boot.nix b/boot.nix index 92fbe1e..1318e3e 100644 --- a/boot.nix +++ b/boot.nix @@ -318,6 +318,7 @@ in { extraInstallCommands = let efiDir = config.boot.loader.efi.efiSysMountPoint; in '' + export PATH="$PATH:${getBin pkgs.coreutils-full}/bin:${getBin pkgs.gnused}/bin" rpath= generation= specialization= @@ -329,9 +330,10 @@ in { echo "Good path: $path" ok=true fi - for specialization in "$path"/specialisation/*; do - if [ "$(realpath $specialization)" = "$boot_generation_path" ]; then + for spec in "$path"/specialisation/*; do + if [ "$(realpath $spec)" = "$boot_generation_path" ]; then ok=true + specialization="$spec" echo "Good specialization: $specialization" break fi