From c0738061fe48f544229008fc3ae37e739465724f Mon Sep 17 00:00:00 2001 From: Daniel Baumann Date: Sun, 2 Oct 2022 22:46:10 +0200 Subject: Also passing root as sandbox user to mmdebstrap in build scripts. Signed-off-by: Daniel Baumann --- share/build-scripts/debconf | 3 ++- share/build-scripts/debootstrap | 2 +- 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 -- cgit v1.2.3