From a09ee3f6b885b2b85986e10768f0b3088eb88f4b Mon Sep 17 00:00:00 2001 From: Daniel Baumann Date: Mon, 20 Jun 2016 20:38:53 +0200 Subject: Creating machines directory in container create scripts if it's not already existing. Signed-off-by: Daniel Baumann --- share/scripts/debconf | 1 + share/scripts/debootstrap | 2 ++ 2 files changed, 3 insertions(+) (limited to 'share/scripts') diff --git a/share/scripts/debconf b/share/scripts/debconf index c08444a..aa1c798 100755 --- a/share/scripts/debconf +++ b/share/scripts/debconf @@ -990,6 +990,7 @@ Upgrade_system "${CACHE}/${DISTRIBUTION}_${ARCHITECTURE}" || echo "W: If upgradi Cleanup_system "${CACHE}/${DISTRIBUTION}_${ARCHITECTURE}" ## Specific parts +mkdir -p "${MACHINES}" cp -a "${CACHE}/${DISTRIBUTION}_${ARCHITECTURE}" "${MACHINES}/${NAME}" # Mounting bind mounts diff --git a/share/scripts/debootstrap b/share/scripts/debootstrap index 0a9e733..de9e501 100755 --- a/share/scripts/debootstrap +++ b/share/scripts/debootstrap @@ -129,6 +129,8 @@ DISTRIBUTION="${DISTRIBUTION:-jessie}" MIRROR="${MIRROR:-http://ftp.debian.org/debian}" PASSWORD="${PASSWORD:-$(dd if=/dev/urandom bs=12 count=1 2> /dev/null | base64)}" +mkdir -p "${MACHINES}" + debootstrap --arch=${ARCHITECTURE} --include=dbus ${DISTRIBUTION} ${MACHINES}/${NAME} ${MIRROR} chroot "${MACHINES}/${NAME}" apt-get clean -- cgit v1.2.3