Main.ChrootTesting History

Hide minor edits - Show changes to markup

February 05, 2011, at 04:21 PM by acrux -
Changed line 9 from:
  1. CHROOT=/crux-ppc-2.6
to:
  1. CHROOT=/crux-ppc-2.7
Changed line 18 from:
  1. mount -o loop crux-ppc-2.6.iso /mnt
to:
  1. mount -o loop crux-ppc-2.7.iso /mnt
Changed line 24 from:
  1. mount -o loop crux-ppc-2.6.iso /mnt
to:
  1. mount -o loop crux-ppc-2.7.iso /mnt
Changed line 26 from:
  1. tar xvf /mnt/crux/core/pkgutils#5.34.2-2.pkg.tar.gz usr/bin/pkgadd -O > /tmp/pkgadd
to:
  1. tar xvf /mnt/crux/core/pkgutils#5.35.1-1.pkg.tar.xz usr/bin/pkgadd -O > /tmp/pkgadd
Changed line 50 from:

CRUX PPC (32 bit) version 2.6

to:

CRUX PPC (32 bit) version 2.7

Changed line 53 from:

gcc version 4.4.2 (CRUX PPC) (GCC)

to:

gcc version 4.5.2 (CRUX PPC) (GCC)

Added lines 58-59:
September 17, 2010, at 12:17 AM by acrux -
Changed line 6 from:

Step 1: prepare target chroot

to:

Step 1: prepare your target chroot

Changed line 36 from:

Step 4: Activate your chroot

to:

Step 4: activate your chroot

Changed line 46 from:

Step 5: Verify

to:

Step 5: verify your chroot

September 16, 2010, at 11:58 PM by acrux -
Deleted lines 0-1:

work in progress


Changed line 7 from:

bla bla bla

to:

September 16, 2010, at 11:57 PM by acrux -
Changed lines 6-7 from:

How to test a release using a chroot environment

to:

How to test (or install) a release using a chroot environment

Deleted lines 59-60:

Step 6:

September 16, 2010, at 10:46 PM by acrux -
Changed lines 3-4 from:

author: Jue updated by: Acrux

to:

author: Jue
updated by: Acrux

September 16, 2010, at 10:46 PM by acrux -
Changed lines 3-4 from:

author: Acrux

to:

author: Jue updated by: Acrux

Changed lines 6-8 from:

How to test a pre-release using a chroot environment

quando/dove/perche' farlo

to:

How to test a release using a chroot environment

June 28, 2010, at 05:09 PM by acrux -
Changed line 5 from:

How to test a prerelease using a chroot environment

to:

How to test a pre-release using a chroot environment

June 28, 2010, at 11:16 AM by acrux -
Added lines 1-2:

work in progress


June 28, 2010, at 10:58 AM by acrux -
Changed line 53 from:

gcc version 4.4.4 (CRUX PPC) (GCC)

to:

gcc version 4.4.2 (CRUX PPC) (GCC)

June 28, 2010, at 10:58 AM by acrux -
Changed line 9 from:
  1. CHROOT=/crux-2.4
to:
  1. CHROOT=/crux-ppc-2.6
Changed line 16 from:

On a host with a pkgadd binary (typically when doing this on a CRUX host):

to:

On a host with a pkgadd binary (typically when doing this on a CRUX PPC host):

Changed line 18 from:
  1. mount -o loop crux-2.4.iso /mnt
to:
  1. mount -o loop crux-ppc-2.6.iso /mnt
Changed line 24 from:
  1. mount -o loop crux-2.4.iso /mnt
to:
  1. mount -o loop crux-ppc-2.6.iso /mnt
Changed line 26 from:
  1. tar xvf /mnt/crux/core/pkgutils#5.31.0-1.pkg.tar.gz usr/bin/pkgadd -O > /tmp/pkgadd
to:
  1. tar xvf /mnt/crux/core/pkgutils#5.34.2-2.pkg.tar.gz usr/bin/pkgadd -O > /tmp/pkgadd
Changed line 50 from:

CRUX version 2.4

to:

CRUX PPC (32 bit) version 2.6

Changed line 53 from:

gcc version 4.2.2

to:

gcc version 4.4.4 (CRUX PPC) (GCC)

June 28, 2010, at 10:07 AM by acrux -
Added lines 4-6:

quando/dove/perche' farlo

Step 1: prepare target chroot

Deleted lines 7-9:

Step 1: prepare target chroot

bla bla bla

Added line 31:

Added line 37:

Changed lines 47-48 from:
to:

[@

Changed lines 56-64 from:

Step 6: test ports

  1. cd /usr/ports/opt # adjust to your liking
  2. for p in `grep -l <your name> */Pkgfile`;
  3. do prt-get depinst ${p%*/} --log; done
  4. cd /var/log/pkgbuild

Bold: It may be wise to share the ccache cache dir with the "outside" environment

to:

@]

Step 6:

June 28, 2010, at 09:54 AM by acrux -
Added lines 1-61:

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

  1. crux

CRUX version 2.4

  1. gcc -v
 ...

gcc version 4.2.2

  1. ports -u

...

Step 6: test ports

  1. cd /usr/ports/opt # adjust to your liking
  2. for p in `grep -l <your name> */Pkgfile`;
  3. do prt-get depinst ${p%*/} --log; done
  4. cd /var/log/pkgbuild

Bold: It may be wise to share the ccache cache dir with the "outside" environment