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:
commit
7cdeae9904
1 changed files with 6 additions and 2 deletions
|
@ -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";
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue