Difference between revisions of "Arch32"

From ArchWiki
Jump to: navigation, search
(48 intermediate revisions by 8 users not shown)
Line 1: Line 1:
/usr/local/bin/pacman32
+
#REDIRECT [[Install_bundled_32-bit_system_in_Arch64]]
#!/bin/bash
+
ARCH32_ROOT="/opt/arch32"
+
PACMAN_EXEC="pacman"
+
+
+
sed -e 's/x86_64/i686/g' \
+
  /etc/pacman.d/mirrorlist > $ARCH32_ROOT/mirrorlist
+
sed -e 's@/etc/pacman.d/mirrorlist@/opt/arch32/mirrorlist@g' \
+
  /etc/pacman.conf > $ARCH32_ROOT/pacman.conf
+
+
$PACMAN_EXEC \
+
  --root $ARCH32_ROOT \
+
  --cachedir $ARCH32_ROOT/var/cache/pacman/pkg \
+
  --config $ARCH32_ROOT/pacman.conf \
+
  "$@"
+
 
+
/usr/local/bin/arch32
+
#!/bin/bash
+
schroot -p -- "$@"
+

Revision as of 02:18, 11 December 2012