summaryrefslogtreecommitdiffstats
path: root/share
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@open-infrastructure.net>2022-10-02 20:46:10 +0000
committerDaniel Baumann <daniel.baumann@open-infrastructure.net>2022-10-02 20:46:42 +0000
commitc0738061fe48f544229008fc3ae37e739465724f (patch)
treead302320824bf32fa50f19a2cd916f19646552b7 /share
parentAlso passing explicit directory output-format to mmdebstrap in build scripts. (diff)
downloadcompute-tools-c0738061fe48f544229008fc3ae37e739465724f.tar.xz
compute-tools-c0738061fe48f544229008fc3ae37e739465724f.zip
Also passing root as sandbox user to mmdebstrap in build scripts.
Signed-off-by: Daniel Baumann <daniel.baumann@open-infrastructure.net>
Diffstat (limited to 'share')
-rwxr-xr-xshare/build-scripts/debconf3
-rwxr-xr-xshare/build-scripts/debootstrap2
2 files changed, 3 insertions, 2 deletions
diff --git a/share/build-scripts/debconf b/share/build-scripts/debconf
index dae632a..b589fce 100755
--- a/share/build-scripts/debconf
+++ b/share/build-scripts/debconf
@@ -405,7 +405,8 @@ Debootstrap ()
mmdebstrap)
mmdebstrap --arch=${ARCHITECTURE} --components=${PARENT_ARCHIVE_AREAS} \
- --format=directory --mode=root --include=${INCLUDE} ${PARENT_DISTRIBUTION} "${DIRECTORY}" ${PARENT_MIRROR}
+ --format=directory --mode=root --aptopt='APT::Sandbox::User "root"' \
+ --include=${INCLUDE} ${PARENT_DISTRIBUTION} "${DIRECTORY}" ${PARENT_MIRROR}
;;
*)
diff --git a/share/build-scripts/debootstrap b/share/build-scripts/debootstrap
index 738f75b..567ee6b 100755
--- a/share/build-scripts/debootstrap
+++ b/share/build-scripts/debootstrap
@@ -136,7 +136,7 @@ case "${SCRIPT}" in
mmdebstrap)
BOOTSTRAP="/usr/bin/mmdebstrap"
- BOOTSTRAP_OPTIONS="--format=directory --mode=root"
+ BOOTSTRAP_OPTIONS="--format=directory --mode=root --aptopt='APT::Sandbox::User \"root\"'"
;;
esac