From: Stoiko Ivanov Date: Thu, 22 Nov 2018 17:27:03 +0000 (+0100) Subject: buildsys: use truncate to create test.img X-Git-Url: https://git.proxmox.com/?p=pve-installer.git;a=commitdiff_plain;h=176f065d3ddbbceebe3126a9c01faf19d582adc1 buildsys: use truncate to create test.img saves time during creation and subsequent rsync Signed-off-by: Stoiko Ivanov --- 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