create a tarbomb along with rsyncing the rootfs

This commit is contained in:
parazyd 2017-10-27 20:23:18 +02:00
parent 92f3e3bbbe
commit ffd33dee6b
No known key found for this signature in database
GPG Key ID: F0CB28FCF78637DE
1 changed files with 5 additions and 1 deletions

View File

@ -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"