CRUX PPC
A lightweight GNU/Linux distribution for PowerPC!
Main.ChrootTesting History
Hide minor edits - Show changes to markup
- CHROOT=/crux-ppc-2.6
- CHROOT=/crux-ppc-2.7
- mount -o loop crux-ppc-2.6.iso /mnt
- mount -o loop crux-ppc-2.7.iso /mnt
- mount -o loop crux-ppc-2.6.iso /mnt
- mount -o loop crux-ppc-2.7.iso /mnt
- tar xvf /mnt/crux/core/pkgutils#5.34.2-2.pkg.tar.gz usr/bin/pkgadd -O > /tmp/pkgadd
- tar xvf /mnt/crux/core/pkgutils#5.35.1-1.pkg.tar.xz usr/bin/pkgadd -O > /tmp/pkgadd
CRUX PPC (32 bit) version 2.6
CRUX PPC (32 bit) version 2.7
gcc version 4.4.2 (CRUX PPC) (GCC)
gcc version 4.5.2 (CRUX PPC) (GCC)
Step 1: prepare your target chroot
Step 4: activate your chroot
Step 5: verify your chroot
work in progress
bla bla bla
How to test a release using a chroot environment
How to test (or install) a release using a chroot environment
author: Jue updated by: Acrux
author: Jue
updated by: Acrux
author: Acrux
author: Jue updated by: Acrux
How to test a pre-release using a chroot environment
quando/dove/perche' farlo
How to test a release using a chroot environment
How to test a prerelease using a chroot environment
How to test a pre-release using a chroot environment
work in progress
gcc version 4.4.4 (CRUX PPC) (GCC)
gcc version 4.4.2 (CRUX PPC) (GCC)
- CHROOT=/crux-2.4
- CHROOT=/crux-ppc-2.6
On a host with a pkgadd binary (typically when doing this on a CRUX host):
On a host with a pkgadd binary (typically when doing this on a CRUX PPC host):
- mount -o loop crux-2.4.iso /mnt
- mount -o loop crux-ppc-2.6.iso /mnt
- mount -o loop crux-2.4.iso /mnt
- mount -o loop crux-ppc-2.6.iso /mnt
- tar xvf /mnt/crux/core/pkgutils#5.31.0-1.pkg.tar.gz usr/bin/pkgadd -O > /tmp/pkgadd
- tar xvf /mnt/crux/core/pkgutils#5.34.2-2.pkg.tar.gz usr/bin/pkgadd -O > /tmp/pkgadd
CRUX version 2.4
CRUX PPC (32 bit) version 2.6
gcc version 4.2.2
gcc version 4.4.4 (CRUX PPC) (GCC)
quando/dove/perche' farlo
Step 1: prepare target chroot
Step 1: prepare target chroot
bla bla bla
[@
Step 6: test ports
- cd /usr/ports/opt # adjust to your liking
- for p in `grep -l <your name> */Pkgfile`;
- do prt-get depinst ${p%*/} --log; done
- cd /var/log/pkgbuild
Bold: It may be wise to share the ccache cache dir with the "outside" environment
@]
Step 6:
author: Acrux
How to test a prerelease using a chroot environment
bla bla bla
Step 1: prepare target chroot
bla bla bla
# CHROOT=/crux-2.4 # mkdir $CHROOT # mkdir -p $CHROOT/var/lib/pkg # touch $CHROOT/var/lib/pkg/db
Step 2: install core packages
On a host with a pkgadd binary (typically when doing this on a CRUX host):
# mount -o loop crux-2.4.iso /mnt # cd /mnt/crux # for p in core/* ; do pkgadd -r $CHROOT $p; done
On a host without pkgadd binary:
# mount -o loop crux-2.4.iso /mnt # cd /mnt/crux # tar xvf /mnt/crux/core/pkgutils#5.31.0-1.pkg.tar.gz usr/bin/pkgadd -O > /tmp/pkgadd # for p in core/* ; do /tmp/pkgadd -r $CHROOT $p; done
Step 3: copy DNS settings
# cp /etc/resolv.conf $CHROOT/etc
Step 4: Activate your chroot
# mount -t proc proc $CHROOT/proc # mount --bind /dev $CHROOT/dev # mount --bind /sys $CHROOT/sys # chroot $CHROOT /bin/bash
This step (#4) has to be repeated after every reboot
Step 5: Verify
- crux
CRUX version 2.4
- gcc -v
...
gcc version 4.2.2
- ports -u
...
Step 6: test ports
- cd /usr/ports/opt # adjust to your liking
- for p in `grep -l <your name> */Pkgfile`;
- do prt-get depinst ${p%*/} --log; done
- cd /var/log/pkgbuild
Bold: It may be wise to share the ccache cache dir with the "outside" environment