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" ''
|
(writeShellScriptBin "nixos-check-reboot" ''
|
||||||
set -e
|
set -e
|
||||||
booted="$(readlink /run/booted-system/kernel)"
|
booted="$(readlink /run/booted-system/kernel)"
|
||||||
built="$(readlink /nix/var/nix/profiles/system/kernel)"
|
current="$(readlink /run/current-system/kernel)"
|
||||||
if [ "$booted" = "$built" ]
|
if [ "$booted" = "$current" ]
|
||||||
then
|
then
|
||||||
echo OK
|
echo OK
|
||||||
exit 0
|
exit 0
|
||||||
|
|
Loading…
Reference in a new issue