Skip to content

Commit 0647dfa

Browse files
fix: execute debootstrap with bash and set DEBOOTSTRAP_DIR manually to fs-cook source
1 parent a6ac29d commit 0647dfa

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

plugins/envsetup

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -322,14 +322,20 @@ do_build() {
322322
_debootstrap=$(which debootstrap)
323323
fi
324324

325+
if ! $DEBOOTSTRAP_DIR; then
326+
DEBOOTSTRAP_DIR="$ROOT_DIR/core/debootstrap"
327+
fi
328+
325329
if [ "$BUILD_PLATFORM" == "termux" ]; then
326330
dpkg_depends_on debootstrap
327331
_debootstrap="$(which debootstrap)"
328332
FOREIGN=""
329333
fi
330334

331335
(
332-
$SUDO $_debootstrap \
336+
# execute debootstrap with bash to skip changing file permission
337+
# to executable
338+
$SUDO bash $_debootstrap \
333339
$FOREIGN \
334340
--arch="$arch" \
335341
--no-check-gpg \

0 commit comments

Comments
 (0)