Skip to content

Commit 9cf8344

Browse files
committed
nixos/google-compute-image: fix image build
1 parent 9ceb117 commit 9cf8344

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

nixos/modules/virtualisation/google-compute-image.nix

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -88,9 +88,13 @@ in
8888
]
8989
}
9090
pushd $out
91-
tar -Sc $diskImage | gzip -${toString cfg.compressionLevel} > \
91+
# RTFM:
92+
# https://cloud.google.com/compute/docs/images/create-custom
93+
# https://cloud.google.com/compute/docs/import/import-existing-image
94+
mv $diskImage disk.raw
95+
tar -Sc disk.raw | gzip -${toString cfg.compressionLevel} > \
9296
${config.image.fileName}
93-
rm $diskImage
97+
rm disk.raw
9498
popd
9599
'';
96100
format = "raw";

0 commit comments

Comments
 (0)