*** THIS FILE IS OUT OF DATE AS OF THE POST-1.0 INSTALLER OVERHAUL ***

*** IN OTHER WORDS, IF YOU CAN READ THIS, IT'S OUT OF DATE ***

This file details the steps needed to boot the second stage of
the Progeny Debian Installer. This is recommended for experts
only. Simply booting the Progeny Debian Installer first stage is
recommended for most cases.

Use parted to partition the disk, if necessary, and mke2fs and
mkswap to format the partitions (alternatively, you can let
parted format the partitions for you). Then, mount the target
filesystems in /target and extract the following file:

  /cdrom/dists/progeny/main/install-i386/minimal.tar.gz

Create a /boot/grub directory and copy the appropriate files from
/usr/share/grub/i386-pc there. Create /boot/grub/menu.lst and
/etc/fstab.

You now have a bootable, unconfigured, minimal Progeny Debian
system which you can boot into and complete the installation
manually. However, you will probably want to prepare the new
system for the Progeny Debian Installer's second stage.

To do this, copy /etc/init.d/installer into /target/etc/init.d
and then make a symbolic link from it to
/target/etc/rcS.d/S99installer, like this:

/target/etc/rcS.d# ln -s ../init.d/installer S99installer

Next, copy /etc/installer.xsession into /target. Create the
directory /target/usr/share/sawfish/themes/installer and copy
/etc/theme.jl there.

If you want to install the basic Progeny Debian packages (for
easy system configuration, including GNOME admin tools), copy
/etc/second_stage_packages into /target/etc. Create the directory
/target/usr/share/configlets/user and copy /share/user-configlet/*
there.

If you do not wish to install the X Window System, create an
empty file /target/second_stage_text_mode.

Finally, unmount the target filesystems and exit the shell. The
system will then reboot.

Below is a transcript of an actual session using the rescue mode
to prepare a system for the Progeny Debian Installer's second
stage.

*******************************************************************************
/# parted /dev/hda
GNU Parted 1.4.6
Copyright (C) 1998-2000 Free Software Foundation, Inc.
This program is free software, covered by the GNU General Public License.

This program is distributed in the hope that it will be useful, but WITHOUT ANY
WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A
PARTICULAR PURPOSE.  See the GNU General Public License for more details.

GNU Parted's development is supported by Conectiva, www.conectiva.com

Using /dev/hda
Warning: The operating system thinks the geometry on /dev/hda is 4160/255/63.
Therefore, cylinder 1024 ends at 8032.499M.  You should check that this matches
the BIOS geometry before using this program.
(parted) mklabel msdos
(parted) print
Disk geometry for /dev/hda: 0.000-32634.492 megabytes
Disk label type: msdos
Minor    Start       End     Type      Filesystem  Flags
(parted) mkpart extended 0 32634.492
(parted) mkpartfs logical ext2 0 2048
(parted) mkpartfs logical linux-swap 2048 2172
(parted) mkpartfs logical ext2 2172 32634.492
(parted) print
Disk geometry for /dev/hda: 0.000-32634.492 megabytes
Disk label type: msdos
Minor    Start       End     Type      Filesystem  Flags
1          0.031  32632.031  extended              lba
5          0.062   2047.346  logical   ext2        
6       2047.377   2172.854  logical   linux-swap  
7       2172.885  32632.031  logical   ext2        
(parted) quit
/# mount /dev/hda5 /target
/# cd /target
/target# mkdir home
/target# mount /dev/hda7 home
/target# ls
home        lost+found
/target# zcat /cdrom/live/dists/progeny/main/install-i386/minimal.tar.gz | tar xf -
/target# ls
bin         dev         home        lost+found  root        usr
boot        etc         initrd      mnt         sbin        var
cdrom       floppy      lib         proc        tmp
/target# mkdir boot/grub
/target# cp usr/share/grub/i386-pc/* boot/grub/
/target# cat >boot/grub/menu.lst
title Progeny Debian
root (hd0,4)
kernel /boot/vmlinuz-2.2.19 root=/dev/hda5 ro
initrd /boot/initrd-2.2.19.gz
/target# cat >etc/fstab 
/dev/hda5 / ext2 defaults,errors=remount-ro 0 1
/dev/hda6 none swap sw 0 0
proc /proc proc defaults 0 0
/dev/hda7 /home ext2 defaults 0 1
/dev/cdrom /cdrom iso9660 defaults,ro,user,noauto 0 0
/dev/fd0 /floppy auto defaults,user,noauto 0 0
/target# cp /etc/init.d/installer etc/init.d/
/target# cd etc/rcS.d/
/target/etc/rcS.d# ln -s ../init.d/installer S99installer
/target/etc/rcS.d# cd ../..
/target# cp /etc/installer.xsession .
/target# mkdir -p usr/share/sawfish/themes/installer/
/target# cp /etc/theme.jl usr/share/sawfish/themes/installer/
/target# cp /etc/second_stage_packages etc/
/target# cd /
/# umount /target/home
/# umount /target
/# exit
