tUse mkdir -p when mounting image, or before rsyncing. - libdevuansdk - common library for devuan's simple distro kits
HTML git clone https://git.parazyd.org/libdevuansdk
DIR Log
DIR Files
DIR Refs
DIR Submodules
DIR README
DIR LICENSE
---
DIR commit cf71a581e38f827eac4e801fa85f0dea8561707c
DIR parent 95146870fe653c86d8c015bad227a497b25efceb
HTML Author: parazyd <parazyd@dyne.org>
Date: Wed, 3 Jan 2018 13:14:44 +0100
Use mkdir -p when mounting image, or before rsyncing.
Diffstat:
M zlibs/imaging | 2 +-
M zlibs/rsync | 1 +
2 files changed, 2 insertions(+), 1 deletion(-)
---
DIR diff --git a/zlibs/imaging b/zlibs/imaging
t@@ -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
}
DIR diff --git a/zlibs/rsync b/zlibs/rsync
t@@ -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