mirror of
https://github.com/aviallon/nixos-lib.git
synced 2026-04-05 17:27:50 +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
|
||||
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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue