mirror of
https://github.com/buckley310/nixos-config.git
synced 2024-11-09 18:47:02 +00:00
change reboot check
This commit is contained in:
parent
9606e22fb9
commit
be223fbad8
1 changed files with 8 additions and 1 deletions
|
@ -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" ''
|
||||||
|
|
Loading…
Reference in a new issue