mirror of
https://github.com/buckley310/nixos-config.git
synced 2024-11-09 18:47:02 +00:00
cli: read current-system rev from /run/
This commit is contained in:
parent
d95f687c26
commit
7ab3d482c7
1 changed files with 2 additions and 2 deletions
|
@ -48,8 +48,8 @@
|
|||
(writeShellScriptBin "nixos-check-reboot" ''
|
||||
set -e
|
||||
booted="$(readlink /run/booted-system/kernel)"
|
||||
built="$(readlink /nix/var/nix/profiles/system/kernel)"
|
||||
if [ "$booted" = "$built" ]
|
||||
current="$(readlink /run/current-system/kernel)"
|
||||
if [ "$booted" = "$current" ]
|
||||
then
|
||||
echo OK
|
||||
exit 0
|
||||
|
|
Loading…
Reference in a new issue