|
|
@ -1,6 +1,15 @@ |
|
|
|
diff -u -r ../debootstrap-1.0.97/debootstrap ./debootstrap
|
|
|
|
--- ../debootstrap-1.0.97/debootstrap 2018-04-17 04:06:32.000000000 +0200
|
|
|
|
+++ ./debootstrap 2018-04-30 03:14:32.764728670 +0200
|
|
|
|
diff -uNr debootstrap-1.0.106/debootstrap debootstrap-1.0.106.mod/debootstrap
|
|
|
|
--- debootstrap-1.0.106/debootstrap 2018-07-05 11:48:22.000000000 +0300
|
|
|
|
+++ debootstrap-1.0.106.mod/debootstrap 2018-07-10 17:32:34.599933159 +0300
|
|
|
|
@@ -3,7 +3,7 @@
|
|
|
|
|
|
|
|
VERSION='@VERSION@' |
|
|
|
|
|
|
|
-unset TMP TEMP TMPDIR || true
|
|
|
|
+unset LD_PRELOAD TMP TEMP TMPDIR || true
|
|
|
|
|
|
|
|
# might not be exported if we're running from init=/bin/sh or similar |
|
|
|
export PATH |
|
|
|
@@ -14,7 +14,7 @@
|
|
|
|
if [ -x /debootstrap/debootstrap ]; then |
|
|
|
DEBOOTSTRAP_DIR=/debootstrap |
|
|
@ -10,7 +19,7 @@ diff -u -r ../debootstrap-1.0.97/debootstrap ./debootstrap |
|
|
|
fi |
|
|
|
fi |
|
|
|
|
|
|
|
@@ -468,10 +468,10 @@
|
|
|
|
@@ -483,10 +483,10 @@
|
|
|
|
|
|
|
|
if in_path dpkg && \ |
|
|
|
dpkg --print-architecture >/dev/null 2>&1; then |
|
|
@ -23,17 +32,22 @@ diff -u -r ../debootstrap-1.0.97/debootstrap ./debootstrap |
|
|
|
elif [ -e "$DEBOOTSTRAP_DIR/arch" ]; then |
|
|
|
HOST_ARCH=$(cat "$DEBOOTSTRAP_DIR/arch") |
|
|
|
fi |
|
|
|
@@ -512,7 +512,8 @@
|
|
|
|
@@ -527,12 +527,8 @@
|
|
|
|
if [ "$TARGET" = "/" ]; then |
|
|
|
CHROOT_CMD="" |
|
|
|
else |
|
|
|
- CHROOT_CMD="chroot \"$TARGET\""
|
|
|
|
-fi
|
|
|
|
-
|
|
|
|
-# fakeroot cannot check /proc/1/environ
|
|
|
|
-if [ "$HOST_OS" = Linux ] && ! doing_variant fakechroot && [ "$CONTAINER" = "lxc-libvirt" ]; then
|
|
|
|
- CHROOT_CMD="unshare --net $CHROOT_CMD"
|
|
|
|
+ PATH=$PATH:/usr/bin:/bin:/usr/sbin:/sbin
|
|
|
|
+ CHROOT_CMD="proot -w /home -b /dev -b /proc --link2symlink -0 -r $TARGET"
|
|
|
|
fi |
|
|
|
|
|
|
|
# fakeroot cannot check /proc/1/environ |
|
|
|
@@ -532,16 +533,6 @@
|
|
|
|
if [ -z "$SHA_SIZE" ]; then |
|
|
|
@@ -546,16 +542,6 @@
|
|
|
|
|
|
|
|
export ARCH SUITE TARGET CHROOT_CMD SHA_SIZE DEBOOTSTRAP_CHECKSUM_FIELD |
|
|
|
|
|
|
|