change reboot check

This commit is contained in:
Sean Buckley 2021-06-03 23:59:17 -04:00
parent 9606e22fb9
commit be223fbad8

View file

@ -58,7 +58,14 @@ in
set -e set -e
booted="$(readlink /run/booted-system/{initrd,kernel,kernel-modules})" booted="$(readlink /run/booted-system/{initrd,kernel,kernel-modules})"
built="$(readlink /nix/var/nix/profiles/system/{initrd,kernel,kernel-modules})" built="$(readlink /nix/var/nix/profiles/system/{initrd,kernel,kernel-modules})"
[ "$booted" = "$built" ] if [ "$booted" = "$built" ]
then
echo OK
exit 0
else
echo REBOOT NEEDED
exit 1
fi
'') '')
(writeScriptBin "zfsram" '' (writeScriptBin "zfsram" ''