cli: dont signal reboot for initrd changes

This commit is contained in:
Sean Buckley 2021-12-20 00:01:36 -05:00
parent d101e50318
commit d95f687c26

View file

@ -47,8 +47,8 @@
(writeShellScriptBin "nixos-check-reboot" ''
set -e
booted="$(readlink /run/booted-system/{initrd,kernel,kernel-modules})"
built="$(readlink /nix/var/nix/profiles/system/{initrd,kernel,kernel-modules})"
booted="$(readlink /run/booted-system/kernel)"
built="$(readlink /nix/var/nix/profiles/system/kernel)"
if [ "$booted" = "$built" ]
then
echo OK