From ffd33dee6b1c415d220c17797fa2949976fc9c67 Mon Sep 17 00:00:00 2001 From: parazyd Date: Fri, 27 Oct 2017 20:23:18 +0200 Subject: [PATCH] create a tarbomb along with rsyncing the rootfs --- zlibs/rsync | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/zlibs/rsync b/zlibs/rsync index 23d1660..7bbc29a 100644 --- a/zlibs/rsync +++ b/zlibs/rsync @@ -24,11 +24,15 @@ rsync_to_raw_image() { req=(workdir strapdir bootpart rootpart) ckreq || return 1 - notice "rsyncing strapdir to raw image..." + notice "Preparing to rsync and tar the rootfs..." image_raw_mount silly sleep 1 pushd $strapdir + notice "creating a tarbomb of the rootfs..." + sudo tar czf "$R/dist/${image_name}.tar.gz" . || zerr + + notice "rsyncing strapdir to raw image..." sudo rsync -HPavz -q ./* $workdir/mnt || { image_raw_umount die "not enough space, please report a bug"