ignore initrd when updating
All checks were successful
Hydra nixosConfigurations.rainbow-resort Hydra build #27424 of nixos-config:pr618:nixosConfigurations.rainbow-resort
Hydra nixosConfigurations.thinkrac Hydra build #27425 of nixos-config:pr618:nixosConfigurations.thinkrac
Hydra nixosConfigurations.oracle-installer Hydra build #27422 of nixos-config:pr618:nixosConfigurations.oracle-installer
Hydra nixosConfigurations.pc-installer Hydra build #27423 of nixos-config:pr618:nixosConfigurations.pc-installer

This commit is contained in:
Charlotte 🦝 Delenk 2024-11-24 11:37:27 +01:00
parent 8822957cdf
commit fe1b3a879b
Signed by: darkkirb
GPG key ID: AB2BD8DAF2E37122

View file

@ -70,8 +70,8 @@ with lib;
if cfg.reboot then
''
${switchToConfiguration} boot
booted="$(${pkgs.coreutils}/bin/readlink /run/booted-system/{initrd,kernel,kernel-modules})"
built="$(${pkgs.coreutils}/bin/readlink ${output}/{initrd,kernel,kernel-modules})"
booted="$(${pkgs.coreutils}/bin/readlink /run/booted-system/{kernel,kernel-modules})"
built="$(${pkgs.coreutils}/bin/readlink ${output}/{kernel,kernel-modules})"
if [ "$booted" = "$built" ]; then
${switchToConfiguration} switch
else