Skip to content

Instantly share code, notes, and snippets.

@bmwalters
Last active December 11, 2023 07:19
Show Gist options
  • Star 3 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save bmwalters/58120221f1c8a08e264e0bc1d46c67f2 to your computer and use it in GitHub Desktop.
Save bmwalters/58120221f1c8a08e264e0bc1d46c67f2 to your computer and use it in GitHub Desktop.
Creating a 32-bit Arch Linux chroot

on the host system

  1. Download an iso
  2. mkdir mounted-iso mounted-root root live
  3. sudo mount -o loop archlinux-2020.06.01-i686.iso mounted-iso/
  4. sudo mount -t squashfs mounted-iso/arch/i686/airootfs.sfs mounted-root/
  5. sudo cp -av mounted-root/. root/
  6. sudo umount mounted-root
  7. sudo umount mounted-iso
  8. sudo mount -o bind root live/
  9. sudo arch-chroot live bash

inside the chroot

  1. setarch i686
  2. Rank /etc/pacman.d/mirrorlist
  3. pacman -Sy
  4. pacman -Scc
  5. pacman-key --init && pacman-key --populate archlinux32 && pacman-key --refresh-keys
  6. pacman -S archlinux32-keyring
  7. pacman -Syu
  8. pacman -S base-devel gtk3 # etc.

profit

@robertkirkman
Copy link

robertkirkman commented Jul 26, 2023

thank you very good it works i got some package conflicts with pacman -Syu (archlinux32-2023.03.02-i686.iso)but that is probably an Arch Linux 32 issue, this still worked for what I needed

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment