0
0
Fork 0
mirror of https://github.com/NixOS/nixpkgs.git synced 2025-07-14 06:00:33 +03:00

nixos/google-compute-image: fix image build (#368313)

This commit is contained in:
Sandro 2025-01-02 23:29:32 +01:00 committed by GitHub
commit 7cdeae9904
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -88,9 +88,13 @@ in
]
}
pushd $out
tar -Sc $diskImage | gzip -${toString cfg.compressionLevel} > \
# RTFM:
# https://cloud.google.com/compute/docs/images/create-custom
# https://cloud.google.com/compute/docs/import/import-existing-image
mv $diskImage disk.raw
tar -Sc disk.raw | gzip -${toString cfg.compressionLevel} > \
${config.image.fileName}
rm $diskImage
rm disk.raw
popd
'';
format = "raw";