[pve-devel] [RFC/PATCH installer 4/4] buildsys: use truncate to create test.img
Stoiko Ivanov
s.ivanov at proxmox.com
Mon Oct 1 12:42:01 CEST 2018
saves time during creation and subsequent rsync
Signed-off-by: Stoiko Ivanov <s.ivanov at proxmox.com>
---
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 at 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.11.0
More information about the pve-devel
mailing list