create a tarbomb along with rsyncing the rootfs
This commit is contained in:
parent
92f3e3bbbe
commit
ffd33dee6b
|
|
@ -24,11 +24,15 @@ rsync_to_raw_image() {
|
||||||
req=(workdir strapdir bootpart rootpart)
|
req=(workdir strapdir bootpart rootpart)
|
||||||
ckreq || return 1
|
ckreq || return 1
|
||||||
|
|
||||||
notice "rsyncing strapdir to raw image..."
|
notice "Preparing to rsync and tar the rootfs..."
|
||||||
image_raw_mount
|
image_raw_mount
|
||||||
silly sleep 1
|
silly sleep 1
|
||||||
|
|
||||||
pushd $strapdir
|
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 || {
|
sudo rsync -HPavz -q ./* $workdir/mnt || {
|
||||||
image_raw_umount
|
image_raw_umount
|
||||||
die "not enough space, please report a bug"
|
die "not enough space, please report a bug"
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue