From 176f065d3ddbbceebe3126a9c01faf19d582adc1 Mon Sep 17 00:00:00 2001 From: Stoiko Ivanov Date: Thu, 22 Nov 2018 18:27:03 +0100 Subject: [PATCH] buildsys: use truncate to create test.img saves time during creation and subsequent rsync Signed-off-by: Stoiko Ivanov --- Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Makefile b/Makefile index d5e76b6..0fdebbe 100644 --- a/Makefile +++ b/Makefile @@ -65,7 +65,7 @@ upload-pve: ${PVE_DEB} tar cf - ${PVE_DEB} | ssh -X repoman@repo.proxmox.com -- upload --product pve --dist stretch test.img: - dd if=/dev/zero of=test.img bs=2048 count=1M + truncate -s 2G test.img check-pve: ${PVE_DEB} test.img rm -rf testdir -- 2.39.2