]> git.proxmox.com Git - pve-installer.git/commitdiff
buildsys: use truncate to create test.img
authorStoiko Ivanov <s.ivanov@proxmox.com>
Thu, 22 Nov 2018 17:27:03 +0000 (18:27 +0100)
committerThomas Lamprecht <t.lamprecht@proxmox.com>
Thu, 22 Nov 2018 18:09:02 +0000 (19:09 +0100)
saves time during creation and subsequent rsync

Signed-off-by: Stoiko Ivanov <s.ivanov@proxmox.com>
Makefile

index d5e76b6db21c467b5602fe2618086ac3b42cf95e..0fdebbe1120f52f13a45569eb7127dc15c103d6b 100644 (file)
--- 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:
        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
 
 check-pve: ${PVE_DEB} test.img
        rm -rf testdir