We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9ceb117 commit 9cf8344Copy full SHA for 9cf8344
nixos/modules/virtualisation/google-compute-image.nix
@@ -88,9 +88,13 @@ in
88
]
89
}
90
pushd $out
91
- tar -Sc $diskImage | gzip -${toString cfg.compressionLevel} > \
+ # 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} > \
96
${config.image.fileName}
- rm $diskImage
97
+ rm disk.raw
98
popd
99
'';
100
format = "raw";
0 commit comments