Skip to content

Commit d8cc1e1

Browse files
committed
[disk script] fix tar
Why === * I accidentally tarred the absolute path instead of the relative one * I didn't name the tarball correctly What changed === * Fix the name and use relative path
1 parent 570399a commit d8cc1e1

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)