Skip to content

Commit

Permalink
fix: execute debootstrap with bash and set DEBOOTSTRAP_DIR manually t…
Browse files Browse the repository at this point in the history
…o fs-cook source
  • Loading branch information
SaicharanKandukuri committed Apr 4, 2024
1 parent a6ac29d commit 0647dfa
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion plugins/envsetup
Original file line number Diff line number Diff line change
Expand Up @@ -322,14 +322,20 @@ do_build() {
_debootstrap=$(which debootstrap)
fi

if ! $DEBOOTSTRAP_DIR; then
DEBOOTSTRAP_DIR="$ROOT_DIR/core/debootstrap"
fi

if [ "$BUILD_PLATFORM" == "termux" ]; then
dpkg_depends_on debootstrap
_debootstrap="$(which debootstrap)"
FOREIGN=""
fi

(
$SUDO $_debootstrap \
# execute debootstrap with bash to skip changing file permission
# to executable
$SUDO bash $_debootstrap \
$FOREIGN \
--arch="$arch" \
--no-check-gpg \
Expand Down

0 comments on commit 0647dfa

Please sign in to comment.