mirror of
https://github.com/aviallon/nixos-lib.git
synced 2026-04-06 01:38:06 +00:00
[Boot] fix last boot marking for Nixos 23.11 + fix issue when not booted into a specialization
This commit is contained in:
parent
39edefcc88
commit
9c999a070d
1 changed files with 4 additions and 2 deletions
6
boot.nix
6
boot.nix
|
|
@ -318,6 +318,7 @@ in {
|
||||||
extraInstallCommands = let
|
extraInstallCommands = let
|
||||||
efiDir = config.boot.loader.efi.efiSysMountPoint;
|
efiDir = config.boot.loader.efi.efiSysMountPoint;
|
||||||
in ''
|
in ''
|
||||||
|
export PATH="$PATH:${getBin pkgs.coreutils-full}/bin:${getBin pkgs.gnused}/bin"
|
||||||
rpath=
|
rpath=
|
||||||
generation=
|
generation=
|
||||||
specialization=
|
specialization=
|
||||||
|
|
@ -329,9 +330,10 @@ in {
|
||||||
echo "Good path: $path"
|
echo "Good path: $path"
|
||||||
ok=true
|
ok=true
|
||||||
fi
|
fi
|
||||||
for specialization in "$path"/specialisation/*; do
|
for spec in "$path"/specialisation/*; do
|
||||||
if [ "$(realpath $specialization)" = "$boot_generation_path" ]; then
|
if [ "$(realpath $spec)" = "$boot_generation_path" ]; then
|
||||||
ok=true
|
ok=true
|
||||||
|
specialization="$spec"
|
||||||
echo "Good specialization: $specialization"
|
echo "Good specialization: $specialization"
|
||||||
break
|
break
|
||||||
fi
|
fi
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue