From d8cc1e1600081d92a98c35c80cdaf58a9a36b54a Mon Sep 17 00:00:00 2001 From: Ryan Mulligan Date: Thu, 29 Jan 2026 08:06:53 -0800 Subject: [PATCH] [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 --- pkgs/disk-script/default.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkgs/disk-script/default.nix b/pkgs/disk-script/default.nix index 1c7ec1d..ccb495e 100644 --- a/pkgs/disk-script/default.nix +++ b/pkgs/disk-script/default.nix @@ -32,7 +32,7 @@ writeShellApplication { root="$TMP_DIR/root" # gcp requires that disks end in "disk.raw" diskImage="$TMP_DIR/disk.raw" - tarball="$TMP_DIR/disk.sqsh.tar.gz" + tarball="$TMP_DIR/disk.raw.tar.gz" ( mkdir -p "$root/nix/store" "$root/etc/nixmodules" @@ -49,7 +49,7 @@ writeShellApplication { echo "mksquashfs took $SECONDS seconds" >&2 SECONDS=0 - tar --use-compress-program="pigz --best --recursive | pv" -Scf "$tarball" "$diskImage" + tar --use-compress-program="pigz --best --recursive | pv" -Scf "$tarball" disk.raw echo "tar took $SECONDS seconds" >&2 echo Tarball created at "$tarball" >&2