modules/nixos/common/update: use grub.extraInstallCommands for boot diff
This commit is contained in:
parent
9795fb35a0
commit
01137d599d
2 changed files with 10 additions and 6 deletions
modules/nixos/common
|
@ -12,11 +12,6 @@ nix-env --profile /nix/var/nix/profiles/system --set "$p"
|
|||
booted="$(readlink /run/booted-system/{initrd,kernel,kernel-modules} && cat /run/booted-system/kernel-params)"
|
||||
built="$(readlink "$p"/{initrd,kernel,kernel-modules} && cat "$p"/kernel-params)"
|
||||
if [[ $booted != "$built" ]]; then
|
||||
if [[ -e /run/current-system ]]; then
|
||||
echo "--- diff to current-system"
|
||||
nvd diff /run/current-system "$p"
|
||||
echo "---"
|
||||
fi
|
||||
/nix/var/nix/profiles/system/bin/switch-to-configuration boot
|
||||
# don't use kexec if system is virtualized, reboots are fast enough
|
||||
if ! systemd-detect-virt -q; then
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue