Make Install CD

From UsercbWiki

You need two partitions:

(1) your usual working partition
(2) newly installed Arch Linux which will be copied in CD

1. In your working partition make one directory e.g. /mycd

2. Mount Arch Linux Office Install CD and copy the whole content in /mycd

Or download isolinux-x.bin.tar.gz (38MB) containing same content as in CD except the three packages.
http://user-contributions.org/projects/aloi-cd/download/

In root of /mycd uncompress:

zxf isolinux-x.bin.tar.gz

3. Mount installed Arch Linux partition e.g. (mount /dev/hda2 /mnt/slave)

4. Edit instructions in /mnt/slave/etc/fstab. Example fstabb.

5. Edit instructions in /mnt/slave/etc/issues. Example Issues.

6. Edit /mnt/slave/etc/lilo.conf. Example Lilo.conff
Note: "root=/dev/hdaXX" will be added automatically by /arch/setup script.

7. Edit /mnt/slave/etc/rc.local Example rc.locall

Or copy the files from isolinux-x.bin.tar.gz /mycd/etc

Edit initrd.img

1.Rename /mycd/isolinux/initrd.img to initrdz.gz (not to conflict with the existing initrd.gz)

2. Uncompress initrdz.gz
gzip -d /mycd/isolinux/initrdz.gz

3. Mount initrdz and do editing in e.g. /mnt/image
mount -t auto -o loop /mycd/isolinux/initrdz /mnt/image

Edit line 386 to 391 in /mnt/image/arch/setup

	dodialog infobox "Installing package 1, hold on ... (appx. 1 min.)"
	tar xjpf /src/pkg/pkg1.bin.tar.bz2
	dodialog infobox "Installing package 2, hold on... (appx. 7 min.)"
	tar xjpf /src/pkg/pkg2.bin.tar.bz2
	dodialog infobox "Installing package 3, hold on... (appx. 6 min.)"
	tar xjpf /src/pkg/pkg3.bin.tar.bz2

Edit line 413 depending on kernel version.
2.6.17.x.

	sed -i "s|root=.*$|root=${PART_ROOT}\ninitrd=/boot/initrd26-full.img|g"

2.6.18.x.

	sed -i "s|root=.*$|root=${PART_ROOT}\ninitrd=/boot/kernel26-fallback.img|g"

4. Unmount (umount /mnt/image)

5. Compress initrdz
gzip -c /mycd/isolinux/initrdz > /mycd/isolinux/initrd.img
rm /mycd/isolinux/initrdz

5. Edit the following files as per your liking:
/mycd/isolinux/info.msg
/mycd/isolinux/boot.msg

Create packages

Compress the new installation in three packages. Name them as per the lines in /arch/setup:

cd /mnt/slave

tar cfj pkg1.bin.tar.bz2 bin/ boot/ dev/ etc/ home/ lib/ media/ mnt/ proc/ root/ sbin/ sys/ tmp/ var/

tar cfj pkg2.bin.tar.bz2 opt/

tar cfj pkg3.bin.tar.bz2 usr/

Create iso image

1. Delete the exiting packages in /mycd/pkg

2. Copy all three packages in /mycd/pkg

3. Make one directory /myiso and generate an iso file (don't miss the "." at the end):

cd /mycd

mkisofs -o /myiso/arch-office-install-0.7.2-5.iso -R -V "Arch Linux Office Install CD" -T -b isolinux/isolinux.bin -c isolinux/boot.cat -no-emul-boot -boot-load-size 4 -boot-info-table -A "Arch Linux (Office Install CD 0.7.2-5)" .

3. Check the size of iso not to exceed 700MB (if planning to burn in 700 CD-RW).

Note: Reduce the size delete following directores before compressing:

/mnt/slave/var/cache/pacman/pkg
/mnt/slave/var/lib/pacman/current
/mnt/slave/var/lib/pacman/extra

4. Burn CD

Good luck!!