From d20cc0803602316d9ebf885b36328e9946eee452 Mon Sep 17 00:00:00 2001 From: Dmitry Voronin Date: Mon, 30 Sep 2024 05:39:06 +0300 Subject: [PATCH] Add git fsck to verification. --- Makefile | 1 + module/AutoUpdateSigned.nix | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/Makefile b/Makefile index 971c4d9..41109e1 100644 --- a/Makefile +++ b/Makefile @@ -66,6 +66,7 @@ update: verify: git verify-commit HEAD + git fsck vm: nix run $(options) $(flake)#nixosConfigurations.$(hostname).config.system.build.vm diff --git a/module/AutoUpdateSigned.nix b/module/AutoUpdateSigned.nix index b735b44..658ddd0 100644 --- a/module/AutoUpdateSigned.nix +++ b/module/AutoUpdateSigned.nix @@ -35,7 +35,7 @@ in { rm -rf ./nixos git clone --depth=1 --single-branch --branch=main ${const.url} ./nixos pushd ./nixos - git verify-commit HEAD || { + git verify-commit HEAD && git fsck || { echo "Verification failed." exit 1 };