# 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.03.13 # *** 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 # 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 # --- handling modules # 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 CONF_MODULESNET="3c59x.o eepro100.o rtl8139.o tulip.o" # --- keyboard layout # what keyboard layout you use # filename is relative to /usr/share/keymaps/ and without any .kmap.gz #CONF_KEYBD=i386/qwerty/us-latin1 CONF_KEYBD=i386/qwertz/sg-latin1 # --- target disks # 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 # you may need CONF_DISK=/dev/sda or hd or sd CONF_DISK=/dev/hda # amount of disk to use for the swap partition, in MBytes CONF_SWAP_SIZE=512 # --- network configuration # 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 # --- lilo password # *** 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 # - timezone stuff # where we are CONF_TIMEZOME_AREA=Europe CONF_TIMEZOME_PLACE=Zurich # - 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 # - PCMCIA 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 # - 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 nto work for exeryone, so set to safe value, disabled #CONF_DEBSERVER_LOCAL=${CONF_DEBSERVER} #CONF_DEBDIR_LOCAL=mirror/debian-local # --- run a user script (or binary) at end of first install stage # - 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} SYS_DEBRESCUE=${SYS_DEBDISKS}/current/images-1.44/rescue.bin SYS_DEBROOT=${SYS_DEBDISKS}/current/images-1.44/root.bin SYS_DEBDRIVERS=${SYS_DEBDISKS}/current/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_MODULEDIRMISC=lib/modules/2.2.20/misc SYS_MODULEDIRNET=lib/modules/2.2.20/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}