Document setting up an i686 chroot
This commit is contained in:
parent
e25866c904
commit
e5fed90c10
10
README.md
10
README.md
|
@ -149,11 +149,19 @@ It is generally invoked like this:
|
||||||
|
|
||||||
```
|
```
|
||||||
cd /the/chroot/directory
|
cd /the/chroot/directory
|
||||||
mkarchroot -C config-x86_64/pacman.conf -M config-x86_64/makepkg.conf arch-x86_64/root base-devel
|
sudo mkarchroot -C config-x86_64/pacman.conf -M config-x86_64/makepkg.conf arch-x86_64/root base-devel
|
||||||
sudo vim arch-x86_64/root/etc/pacman.d/mirrorlist # uncomment at least one mirror
|
sudo vim arch-x86_64/root/etc/pacman.d/mirrorlist # uncomment at least one mirror
|
||||||
arch-nspawn arch-x86_64/root # enter bash shell within chroot
|
arch-nspawn arch-x86_64/root # enter bash shell within chroot
|
||||||
```
|
```
|
||||||
|
|
||||||
|
Use the same approach to create a chroot of a different architecture:
|
||||||
|
```
|
||||||
|
sudo mkarchroot -s -C config-i686/pacman.conf -M config-i686/makepkg.conf arch-i686/root base-devel # create i686 chroot
|
||||||
|
```
|
||||||
|
|
||||||
|
In this case `pacman.conf` contains the mirrors from the Arch Linux 32 project and `makepkg.conf`
|
||||||
|
contains `CARCH="i686" CHOST="i686-pc-linux-gnu"`.
|
||||||
|
|
||||||
Note that `makechrootpkg` will not use the "root" chroot directories directly. It will create a
|
Note that `makechrootpkg` will not use the "root" chroot directories directly. It will create a
|
||||||
working copy using `rsync -a --delete -q -W -x "$chrootdir/root/" "$copydir"` (when using btrfs
|
working copy using `rsync -a --delete -q -W -x "$chrootdir/root/" "$copydir"` (when using btrfs
|
||||||
it creates a subvolume instead of using rsync).
|
it creates a subvolume instead of using rsync).
|
||||||
|
|
Loading…
Reference in New Issue