summaryrefslogtreecommitdiffstats
path: root/share/scripts/debootstrap
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2021-07-24 18:45:00 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2021-07-24 18:55:37 +0000
commitd20677330a40013f3b371fa0734de9ad7a069235 (patch)
treef4b1e2d7e40490a45c45e762048c16b8a615386d /share/scripts/debootstrap
parentAdding upstream version 20210630. (diff)
downloadopen-infrastructure-compute-tools-d20677330a40013f3b371fa0734de9ad7a069235.tar.xz
open-infrastructure-compute-tools-d20677330a40013f3b371fa0734de9ad7a069235.zip
Adding upstream version 20210724.upstream/20210724
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'share/scripts/debootstrap')
-rwxr-xr-xshare/scripts/debootstrap4
1 files changed, 3 insertions, 1 deletions
diff --git a/share/scripts/debootstrap b/share/scripts/debootstrap
index f0db7e8..9f5b6eb 100755
--- a/share/scripts/debootstrap
+++ b/share/scripts/debootstrap
@@ -174,9 +174,11 @@ do
fi
done
+# Run
mkdir -p "${MACHINES}"
-
${BOOTSTRAP} ${BOOTSTRAP_OPTIONS} --arch=${ARCHITECTURE} --include=${INCLUDE} ${DISTRIBUTION} ${MACHINES}/${NAME} ${MIRROR}
+
+# Cleaning apt cache
chroot "${MACHINES}/${NAME}" apt clean
# Setting hostname