This commit is contained in:
parent
588257617c
commit
999c2762ca
7 changed files with 128 additions and 0 deletions
21
files/patches/0001-arch-detect.patch
Normal file
21
files/patches/0001-arch-detect.patch
Normal file
|
@ -0,0 +1,21 @@
|
|||
diff --git a/debootstrap b/debootstrap
|
||||
index 43a7383..62c991f 100755
|
||||
--- a/debootstrap
|
||||
+++ b/debootstrap
|
||||
@@ -547,15 +547,7 @@ fi
|
||||
|
||||
###########################################################################
|
||||
|
||||
-if in_path dpkg && \
|
||||
- dpkg --print-architecture >/dev/null 2>&1; then
|
||||
- HOST_ARCH=$(/usr/bin/dpkg --print-architecture)
|
||||
-elif in_path udpkg && \
|
||||
- udpkg --print-architecture >/dev/null 2>&1; then
|
||||
- HOST_ARCH=$(/usr/bin/udpkg --print-architecture)
|
||||
-elif [ -e "$DEBOOTSTRAP_DIR/arch" ]; then
|
||||
- HOST_ARCH=$(cat "$DEBOOTSTRAP_DIR/arch")
|
||||
-fi
|
||||
+HOST_ARCH=amd64
|
||||
HOST_OS="$HOST_ARCH"
|
||||
# basic host OS guessing for non-Debian systems
|
||||
if [ -z "$HOST_OS" ]; then
|
15
files/patches/0002-def_components.patch
Normal file
15
files/patches/0002-def_components.patch
Normal file
|
@ -0,0 +1,15 @@
|
|||
diff --git a/functions b/functions
|
||||
index c6752f4..7ee6619 100644
|
||||
--- a/functions
|
||||
+++ b/functions
|
||||
@@ -176,6 +176,10 @@ default_mirror () {
|
||||
DEF_MIRROR="$1"
|
||||
}
|
||||
|
||||
+default_components () {
|
||||
+ export USE_COMPONENTS="$1"
|
||||
+}
|
||||
+
|
||||
FINDDEBS_NEEDS_INDICES="false"
|
||||
finddebs_style () {
|
||||
case "$1" in
|
Loading…
Add table
Add a link
Reference in a new issue