From 0c9152bd668e599bf1f3b0f95e48bc07e649ac25 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Isma=C3=ABl=20Bouya?= Date: Fri, 5 Mar 2021 00:37:03 +0100 Subject: [PATCH] Add next-boot recipe to makefile --- Makefile | 2 +- nixops/Makefile | 4 ++++ 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/Makefile b/Makefile index 466b63a..e5b9284 100644 --- a/Makefile +++ b/Makefile @@ -1,6 +1,6 @@ subrecipes = setup nix-info edit_env subrecipes += ssh-eldiron ssh-backup-2 ssh-monitoring-1 ssh-4c -subrecipes += debug build dry-run upload deploy deploy-reboot +subrecipes += debug build dry-run upload deploy next-boot deploy-reboot subrecipes += list-generations delete-generations cleanup ${subrecipes}: @$(MAKE) --no-print-directory -C nixops/ $@ diff --git a/nixops/Makefile b/nixops/Makefile index f232e8a..f3d06ef 100644 --- a/nixops/Makefile +++ b/nixops/Makefile @@ -59,6 +59,10 @@ deploy: ./scripts/with_env morph deploy default.nix switch --keep-result --upload-secrets $(MORPH_ARGS) nix-env -p $(PROFILE) --set .gcroots/default.nix +next-boot: + ./scripts/with_env morph deploy default.nix boot --keep-result --upload-secrets $(MORPH_ARGS) + nix-env -p $(PROFILE) --set .gcroots/default.nix + deploy-reboot: ./scripts/with_env morph deploy default.nix boot --reboot --upload-secrets $(MORPH_ARGS) -- 2.41.0