commit cf71a581e38f827eac4e801fa85f0dea8561707c
parent 95146870fe653c86d8c015bad227a497b25efceb
Author: parazyd <parazyd@dyne.org>
Date: Wed, 3 Jan 2018 13:14:44 +0100
Use mkdir -p when mounting image, or before rsyncing.
Diffstat:
2 files changed, 2 insertions(+), 1 deletion(-)
diff --git a/zlibs/imaging b/zlibs/imaging
@@ -178,7 +178,7 @@ image_raw_mount() {
act "mounted root partition" || zerr
[[ "$bootfs" == none ]] || {
- sudo mkdir $workdir/mnt/boot
+ sudo mkdir -p $workdir/mnt/boot
sudo mount $bootpart $workdir/mnt/boot && \
act "mounted boot partition" || zerr
}
diff --git a/zlibs/rsync b/zlibs/rsync
@@ -28,6 +28,7 @@ rsync_to_raw_image() {
image_raw_mount
silly sleep 1
+ mkdir -p $R/dist
pushd $strapdir
notice "creating a tarbomb of the rootfs..."
sudo tar czf "$R/dist/${image_name}.tar.gz" . || zerr