summaryrefslogtreecommitdiff
path: root/src/chroot-tools/librechroot
diff options
context:
space:
mode:
authorLuke Shumaker <LukeShu@sbcglobal.net>2014-05-11 22:45:42 -0400
committerLuke Shumaker <LukeShu@sbcglobal.net>2014-05-11 22:45:42 -0400
commitb31425edf4c1b292280e5d14016611f238372a18 (patch)
tree18d3dd7440fedd50a531e01045e015db7c5e14e9 /src/chroot-tools/librechroot
parent6f5910a55f72c5d01a26b685a7a06a6673a2e9f7 (diff)
Create CHROOTARCH in chroot.conf for when $CARCH != $(uname -m)
This is the case on mips, where CARCH is misp64el, but uname -m is mips64.
Diffstat (limited to 'src/chroot-tools/librechroot')
-rwxr-xr-xsrc/chroot-tools/librechroot2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/chroot-tools/librechroot b/src/chroot-tools/librechroot
index d8e76ac..9e74a62 100755
--- a/src/chroot-tools/librechroot
+++ b/src/chroot-tools/librechroot
@@ -336,6 +336,8 @@ main() {
printf '%q ' "${CHROOTEXTRAPKG[@]}"
printf ')\n'
fi
+ # TODO: only set CHROOTARCH if $CARCH != $(uname -m)
+ printf 'CHROOTARCH=%q\n' "$(uname -m)"
} > "$copydir"/etc/libretools.d/chroot.conf
if [[ $mode != delete ]]; then