Difference between revisions of "Arch32"

From ArchWiki
Jump to: navigation, search
Line 2: Line 2:
 
  #!/bin/bash
 
  #!/bin/bash
 
  ARCH32_ROOT="/opt/arch32"
 
  ARCH32_ROOT="/opt/arch32"
  PACMAN_EXEC="pacman"
+
  PACMAN_EXEC="pacman"  
 
   
 
   
 
   
 
   
  sed -e 's/x86_64/i686/g' \
+
  sed -e 's/x86_64/i686/g' /etc/pacman.d/mirrorlist > $ARCH32_ROOT/mirrorlist
  /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
  sed -e 's@/etc/pacman.d/mirrorlist@/opt/arch32/mirrorlist@g' \
+
  /etc/pacman.conf > $ARCH32_ROOT/pacman.conf
+
 
   
 
   
  $PACMAN_EXEC \
+
  $PACMAN_EXEC --root $ARCH32_ROOT --cachedir $ARCH32_ROOT/var/cache/pacman/pkg --config $ARCH32_ROOT/pacman.conf "$@"
  --root $ARCH32_ROOT \
+
 
  --cachedir $ARCH32_ROOT/var/cache/pacman/pkg \
+
  --config $ARCH32_ROOT/pacman.conf \
+
  "$@"
+
  
 
/usr/local/bin/arch32
 
/usr/local/bin/arch32
 
  #!/bin/bash
 
  #!/bin/bash
 
  schroot -p -- "$@"
 
  schroot -p -- "$@"

Revision as of 09:56, 10 August 2009

/usr/local/bin/pacman32

#!/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 -- "$@"