| 70 | |
| 71 | == The Stage 2 Install == |
| 72 | |
| 73 | The stage 2 install is designed to be invoked from 2 places: The stage 1 install, and the hopefully-obsolete-by-the-time-you-read-this auto-upgrade code. |
| 74 | |
| 75 | First, we do some hardware-specific hacks (I'm looking at you, Realtek). |
| 76 | |
| 77 | Then we parse the kernel's command-line, looking for options we care about. In particular, we support: |
| 78 | * `debathena/clusteraddr`: DEPRECATED, an IP address, which also serves as a flag indicating that this is a cluster machine. (Note the different prefix, this is not a typo). |
| 79 | * `da/pxetype`: cluster, workstation, vanilla, etc. We fallback to `debathena/pxetype` but will stop doing that. |
| 80 | * `da/i`: beta or production |
| 81 | * `da/m`: mirror site |
| 82 | * `da/part`: auto or manual partitioning |
| 83 | |
| 84 | For the fallback values (clusteraddr or debathena/pxetype), we set some defaults of installertype=production and mirrorsite=mirrors.mit.edu. Eventually, we should stop doing this, and just error out if the necessary arguments aren't there. We already barf if pxetype isn't present. |
| 85 | |
| 86 | We re-run net configuration in case we get a debathena/clusteraddr, but we do everything automatically. We will stop doing this eventually. |
| 87 | |
| 88 | We now build-up a pre-seed file by copying the netcfg arguments, and setting the mirror hostname. We also copy in the contents of `preseed.common`. We add `preseed.autoinstall` (possibly skipping the partman section) for cluster machines. We then fetch the actual [wiki:Installation Debathena Installer] (the beta version, if necessary), set pxe-install-flag, and exit out into the main installer, which will use these preseed values. |
| 89 | |
| 90 | === Other files in the stage2 installer === |
| 91 | |
| 92 | * athena/{netparams,masks} -- these will go away when we stop re-doing netcfg in stage 2 |
| 93 | * check-disks.sh -- Run by the partman component. Find the first IDE/SATA disk, and ensure that the disk itself is big enough for the install. This is defined as "20GB" by a variable at the top of this script. |
| 94 | * lvm-cluster-machine.partman -- a partman "recipe" for the layout of a typical cluster machine. See /usr/share/doc/debian-installer/devel/partman-auto-recipe.txt.gz |
| 95 | * postinstall.sh - Run for debathena installation to do some sanity checking and run the debathena installer. |
| 96 | * preseed.autoinstall - For things that should be set for cluster machines |
| 97 | * preseed.common - Generally useful preseed values |
| 98 | |
| 99 | |