From a7cf56ccd3457a7d9994fd7b4aa674a43792e1bb Mon Sep 17 00:00:00 2001 From: Marius Bakke Date: Mon, 31 Oct 2022 01:29:42 +0100 Subject: [PATCH] Save GC root for the instance configuration. * create (initialize_guix): Add separate 'guix system build' step. --- create | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/create b/create index e59a1fa..a13c9cd 100755 --- a/create +++ b/create @@ -314,6 +314,10 @@ initialize_guix(){ export FS_TYPE="$4" local GUIX="$5" + # Build the system configuration and save GC root. + rm -f "$GC_ROOT" + $GUIX build --fallback --no-grafts -r "$GC_ROOT" "$GUIX_CONFIG" + # Install GuixSD $GUIX init "$GUIX_CONFIG" "$TARGET_ROOT" || { echo Failed to guix system init "$GUIX_CONFIG" "$TARGET_ROOT" >&2