Skip to content

Commit a3a6925

Browse files
authored
[disk script] fix tar (#472)
2 parents 570399a + d8cc1e1 commit a3a6925

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

pkgs/disk-script/default.nix

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ writeShellApplication {
3232
root="$TMP_DIR/root"
3333
# gcp requires that disks end in "disk.raw"
3434
diskImage="$TMP_DIR/disk.raw"
35-
tarball="$TMP_DIR/disk.sqsh.tar.gz"
35+
tarball="$TMP_DIR/disk.raw.tar.gz"
3636
3737
(
3838
mkdir -p "$root/nix/store" "$root/etc/nixmodules"
@@ -49,7 +49,7 @@ writeShellApplication {
4949
echo "mksquashfs took $SECONDS seconds" >&2
5050
5151
SECONDS=0
52-
tar --use-compress-program="pigz --best --recursive | pv" -Scf "$tarball" "$diskImage"
52+
tar --use-compress-program="pigz --best --recursive | pv" -Scf "$tarball" disk.raw
5353
echo "tar took $SECONDS seconds" >&2
5454
5555
echo Tarball created at "$tarball" >&2

0 commit comments

Comments
 (0)