# http://www.phys.ethz.ch/~franklin/Projects/dphys2/setup-dphys2 # - configuration for Makefile, makeroot, makerescue and dbootstrap # some fields transfered by dbootstrap into lilo.conf and debconf-preload # copyright ETH Zuerich Physics Deparement, use under either BSD or GPL license # author Neil Franklin, last modification 2003.07.25 # *** WARNING *** # this file should be chmod 600 because it contains LILO and root password! # ------ structure of this file is: # first CONF_* various site or subnet dependant user config variables # then DEBUG_* various debugging settings # last SYS_* various system internal values # ------ CONF_* various site or subnet dependant user config variables # --- set where we will be working while creating root floppy # this is not part of the normal Debian installation prosess # where we install local programs CONF_PREFIX=/usr/local # where we actually installed dphys2 CONF_DPHYS2=${CONF_PREFIX}/src/dphys2 # where we want dphys2 to do all the root disk unpack/modify/pack work # this must be a directory that root can access (not a root-squash NFS mount) # and there should be about 50MByte free space in its filesystem CONF_WORKDIR=${CONF_DPHYS2}/work # --- server to get our original Debian files from and later apt-get from # this results in http://${CONF_DEBSERVER}/${CONF_DEBDIR}/* being used #CONF_DEBSERVER=ftp.debian.org #CONF_DEBDIR=debian # we use our own local mirror here CONF_DEBSERVER=debian.ethz.ch CONF_DEBDIR=mirror/debian # --- which kernel and modules version to get # default is 2.2, use this to select 2.4 #CONF_KERNEL_24=yes # --- "Configure the Keyboard" menu # what keyboard layout you use # filename is relative to /usr/share/keymaps/ and without .kmap.gz ending #CONF_KEYBD=i386/qwerty/us CONF_KEYBD=i386/qwertz/sg-latin1 # --- "Partition a Hard Disk" menu # install floppy where we will copy our generated replacement root image to # this should be the drive on the install generating system, not on target(s) # most people can leave this as it is CONF_INST_FLOPPY=/dev/fd0 # where we want our final system on the target system to be installed to # if empty, try to auto-select, use /dev/hda if existant, else /dev/sda # most people can leave this as it is #CONF_DISK= # if above fails, set an specific disk by hand # you will need CONF_DISK=/dev/hd or sd, usually = a #CONF_DISK=/dev/hda #CONF_DISK=/dev/sda # use this to force DMA usage on some stupid hd disk drives #CONF_DISK_IDEDMA=1 # amount of disk to use for the swap partition, in MBytes CONF_SWAP_SIZE=512 # ---"Configure Device Driver Modules" menu # what net drivers we want included in our install root floppy drivers.tgz # net is needed to install from, to fetch files # this is our site-specific list of card types, you will need to change this # this is what we need for 2.2 kernel CONF_MODULESNET="3c59x.o eepro100.o rtl8139.o tulip.o" # this is what we need for 2.4 kernel #CONF_MODULESNET="3c59x.o 8139too.o eepro100.o tulip.o" # --- "Configure the Network" menu # what network we are using, most people can leave this as it is CONF_IF=eth0 # use DHCP to get IP-addr/netmask/network/broadcast/gateway/nameservers #CONF_DHCP=yes # rest of this section, only if *no* DHCP is being used # site specific network stuff CONF_DOMAIN=ethz.ch # if you do not have 3 name servers just comment unused lines out CONF_NAMESERVER1=129.132.250.2 CONF_NAMESERVER2=129.132.98.12 CONF_NAMESERVER3=129.132.250.220 #CONF_NAMESERVER4= # subnet specific network stuff # for each subnet generate its own(!) replacement root floppy # you are advised to write on the floppy "replacement root /" # we are generating here "replacement root 129.132.189.0/25" CONF_NETMASK=255.255.255.0 CONF_NETWORK=129.132.189.0 CONF_GATEWAY=129.132.189.1 CONF_BROADCAST=129.132.189.255 # --- "Make System Bootable" menu # *** WARNING *** # this file should be chmod 600 because it contains LILO and root password! # ensure it stays that way when you edit it! # if you don't want an LILO password, comment out the next line # of course this is _not_ the password we actually use, not even similar :-) #CONF_PASSWORD_LILO= CONF_PASSWORD_LILO=secret # --- debconf preloading for 2nd boot stage # this replaces the various config menues after rebooting # the 2 digit numbers are from the scripts run by base-config # - 15tzconfig - timezone stuff # where we are CONF_TIMEZOME_AREA=Europe CONF_TIMEZOME_PLACE=Zurich # - 20passwd - password setup stuff # security as we like it CONF_PASSWORD_MD5=true CONF_PASSWORD_SHADOW=true # we assume that many will use twice the same password CONF_PASSWORD_ROOT=${CONF_PASSWORD_LILO} #CONF_PASSWORD_ROOT=secret # - 25pcmcia - PCMCIA remove stuff # remove PCMCIA support if not a notebook # change this to CONF_REMOVE_PCMCIA=false if you want to keep it CONF_PCMCIA_REMOVE=true # - 40apt-setup - apt config stuff # what additional package types we want to use, main is allways in # use packages that are not strictly by the GPL religion CONF_USE_CONTRIB=true CONF_USE_NON_FREE=true # use new packages being added to woody, for next dot release CONF_USE_PROPOSED=true # set non-US and security (if wanted) and local (if exising) package servers # add non-US if wanted #CONF_DEBSERVER_NON_US=non-us.debian.org #CONF_DEBDIR_NON_US=debian-non-US # we use our own local mirror here, the same server as for normal packages # works for exeryone, so save us time reconfiguring for tests CONF_DEBSERVER_NON_US=${CONF_DEBSERVER} CONF_DEBDIR_NON_US=mirror/debian-non-US # add security if wanted #CONF_DEBSERVER_SECURITY=security.debian.org #CONF_DEBDIR_SECURITY="" CONF_DEBSERVER_SECURITY=${CONF_DEBSERVER} CONF_DEBDIR_SECURITY=mirror/debian-security # if you have an local packages server, uncomment these 2 lines # does not work for exeryone, so set to safe value, disabled #CONF_DEBSERVER_LOCAL=${CONF_DEBSERVER} #CONF_DEBDIR_LOCAL=pub/debian-local # --- run a user script (or binary) at end of first install stage # this is not part of the normal Debian installation prosess # - automatically run this script (or binary) #CONF_ENDFIRSTRUN_SCRIPT=endfirstrun # ------ DEBUG_*, various debugging settings # set this to sleep after displaying each steps header, number is in seconds #DEBUG_SLEEP=2 # set this to output debug state info and wait after each step #DEBUG_WAIT_STEP=yes # set this so that install will wait before deleting debconf-preload #DEBUG_WAIT_DEL_PRELOAD=yes # set this so that install will wait before deleting e f r user script #DEBUG_WAIT_DEL_EFR_SCRIPT=yes # set this so that install will wait before reboot at end of first stage #DEBUG_WAIT_ENDFIRST=yes # ------ SYS_*, various system internal values # so that things are easy to change later # *** you can ignore everything below here in normal operation *** # --- what files we will base our work on # note: this has only been designed for and tested with i386 # others at own risk, I expect them to fail badly SYS_ARCH=i386 # paths for files we fetch from server SYS_DEBDISKS=dists/woody/main/disks-${SYS_ARCH}/current # for 2.2 kernel SYS_DEBRESCUE=${SYS_DEBDISKS}/images-1.44/rescue.bin SYS_DEBROOT=${SYS_DEBDISKS}/images-1.44/root.bin SYS_DEBDRIVERS=${SYS_DEBDISKS}/drivers.tgz # for 2.4 kernel SYS_DEBRESCUE_24=${SYS_DEBDISKS}/images-1.44/bf2.4/rescue.bin SYS_DEBROOT_24=${SYS_DEBDISKS}/images-1.44/bf2.4/root.bin SYS_DEBDRIVERS_24=${SYS_DEBDISKS}/bf2.4/drivers.tgz # --- mount point for unpacking/packing root file system from/to floppy image SYS_MOUNT_ROOT=${CONF_WORKDIR}/root-mnt # --- handling modules # where modules go SYS_MODULEDIR=lib/modules # for 2.2 kernel SYS_MODULEDIRMISC=${SYS_MODULEDIR}/2.2.20/misc SYS_MODULEDIRNET=${SYS_MODULEDIR}/2.2.20/net # for 2.4 kernel SYS_MODULEDIRNET_24=${SYS_MODULEDIR}/2.4.18-bf2.4/kernel/drivers/net # standard misc drivers we need included in our install root drivers.tgz SYS_MODULESMISC="unix.o af_packet.o" # --- putting together our root disk # - where we will place the drivers archive within root floppy SYS_DRIVERS_TGZ=/drivers-dphys.tgz # - where we will place our LILO template SYS_LILO_CONF=/lilo.conf # --- modifying debconf for 2nd stage without dialogs # where we will place our modifyer for debconf for 2nd stage without dialogs SYS_PRELOAD_ON_FLOPPY=/debconf-preload SYS_PRELOAD_ON_TARGET=/debconf-preload # where we shall modify SYS_DEBCONF_DB=/var/cache/debconf/config.dat # what subdirectories we use as woody/CONF_DEBSUBDIR_* SYS_DEBSUBDIR_NON_US=non-US SYS_DEBSUBDIR_SECURITY=updates SYS_DEBSUBDIR_LOCAL=local # --- running an user command at the end of first install stage # where we will place our user command to run SYS_ENDFIRSTRUN_ON_FLOPPY=/${CONF_ENDFIRSTRUN_SCRIPT} SYS_ENDFIRSTRUN_ON_TARGET=/${CONF_ENDFIRSTRUN_SCRIPT}