Skip to content

Commit

Permalink
Save GC root for the instance configuration.
Browse files Browse the repository at this point in the history
* create (initialize_guix): Add separate 'guix system build' step.
  • Loading branch information
mbakke committed Nov 1, 2022
1 parent 673d3cb commit a7cf56c
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions create
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit a7cf56c

Please sign in to comment.