[Debian-NP-Commits] r239 - people/vagrant/simple-cdd

Vagrant Cascadian debian-np-devel@lists.alioth.debian.org
Wed, 24 Nov 2004 21:34:39 -0700


Author: vagrant-guest
Date: Wed Nov 24 21:34:23 2004
New Revision: 239

Added:
   people/vagrant/simple-cdd/README
Modified:
   people/vagrant/simple-cdd/CONF.sh
   people/vagrant/simple-cdd/TODO
   people/vagrant/simple-cdd/simple-cdd-downloads.list
   people/vagrant/simple-cdd/simple-cdd-packages.list
Log:
added README document, comments about packages, and default for simple-cdd-path
so that build-simple-cdd works in default directory.


Modified: people/vagrant/simple-cdd/CONF.sh
==============================================================================
--- people/vagrant/simple-cdd/CONF.sh	(original)
+++ people/vagrant/simple-cdd/CONF.sh	Wed Nov 24 21:34:23 2004
@@ -3,8 +3,10 @@
 #
 
 # Unset all optional variables first to start from a clean state
-unset TASK              || true
-unset SIZELIMIT         || true
+unset_vars="TASK SIZELIMIT"
+for var in $unset_vars ; do
+  unset $var || true
+done
 unset NONUS             || true
 unset FORCENONUSONCD1   || true
 unset NONFREE           || true
@@ -287,7 +289,7 @@
 #IMAGETARGET=official_images
 
 # path to simple-cdd stuff
-simple_cdd_path="$HOME/nobackup/simple-cdd"
+simple_cdd_path=$(pwd)
 
 export MIRROR=$simple_cdd_path/mirror/
 export TDIR=$simple_cdd_path/tmp/

Added: people/vagrant/simple-cdd/README
==============================================================================
--- (empty file)
+++ people/vagrant/simple-cdd/README	Wed Nov 24 21:34:23 2004
@@ -0,0 +1,124 @@
+here's a quick guide to using simple-cdd...
+
+Build Dependencies
+
+apt-get install debpartial-mirror (works with 0.2.8, only in unstable)
+apt-get install debian-cd (used 2.2.20)
+
+
+Package Selection
+
+edit simple-cdd-packages.list to include all the packages you want
+automatically installed.
+
+edit simple-cdd-downloads.list to include extra packags to include on the CD
+that do not get installed automatically (though debian-installer or tasksel may need or try to install them).
+
+
+Debconf Preseeding
+
+edit default.preseed to include the debconf questions you want. 
+
+it uses the debcong-get-selections/debconf-set-selections format.
+
+add additional questions, but avoid having any question more than once- it is
+not predictable what happens in this case.
+
+this doesn't get loaded till after the CD is mounted, so some questions (such
+as language and country settings) may have to be passed at the boot prompt(see
+below).
+
+comment out the following question:
+
+  base-config    base-config/main-menu
+
+these questions are used by simple-cdd, modify at your own risk:
+
+  base-config    base-config/late_command
+  base-config    base-config/early_command
+  base-config    apt-setup/uri_type
+
+setting debconf priority to anything other than high or critical may ask you a
+lot of questions:
+
+  d-i     debconf/priority
+  debconf debconf/priority
+
+
+Passing Boot Prompt Parameters
+
+you can alter the default boot parameters by editing CONF.sh:
+
+KERNEL_PARAMS="preseed/file=/cdrom/simple-cdd/default.preseed languagechooser/language-name=English countrychooser/country-name='United States'"
+
+FIXME: i have not tested this example
+
+this can be useful if you need to specify a language.
+
+NOTE: be careful not to specify too many parameters to the kernel. i guess it
+can only take 8, and debian-installer uses several by default. if you need to
+remove some options, you may need to modify
+debian-cd/tools/boot/sarge/boot-i386 and remove some of the APPEND options,
+like vga=normal and rw ...  good luck.
+
+
+Debian Installer Release
+
+simple-cdd needs debian-installer rc2 or newer. if debian-installer in sarge
+has not yet fully migrated to rc2(not all mirrors have updated as of 20041124),
+in CONF.sh edit:
+
+use_di_codename="sid", or use_di_release="rc2", or use_di_release="20041118"
+
+
+Build the CD
+
+./build-simple-cdd
+
+debpartial-mirror should download lots and lots of files.
+
+then it should build the CD image.
+
+the image should appear in images/sarge-i386-1.raw
+
+
+More Fun and Adventures
+
+Testing with qemu in non-graphical mode
+
+i tested this code out entirely with qemu over a slow ssh connection,
+so i needed to figure out how to get serial console working...
+
+unfortunately, you need to tweak debian-cd:
+
+mkdir -p debian-cd
+cp -a /usr/share/debian-cd/* debian-cd/*
+
+cd debian-cd/tools/boot/sarge/
+
+cat boot-i386 | sed -e 's/TIMEOUT 0/TIMEOUT 5/g' > boot-i386.new && \
+  mv -i boot-i386.new boot-i386
+
+
+and make a few changes in CONF.sh:
+
+BASEDIR=./debian-cd
+
+KERNEL_PARAMS="preseed/file=/cdrom/simple-cdd/default.preseed console=ttyS0,38400"
+
+
+and then build the CD image:
+
+./build-simple-cdd
+
+
+finally, to test with qemu:
+
+qemu -nographic -hda ~/hd.img -cdrom images/sarge-i386-1.raw -boot d
+
+once it's done installing, boot from the hard drive:
+
+qemu -nographic -hda ~/hd.img -cdrom images/sarge-i386-1.raw -boot c
+
+since grub doesn't pass the console=ttyS,38400 by default, it may take a while
+for you to see anything.  be patient, and it will eventually show up.

Modified: people/vagrant/simple-cdd/TODO
==============================================================================
--- people/vagrant/simple-cdd/TODO	(original)
+++ people/vagrant/simple-cdd/TODO	Wed Nov 24 21:34:23 2004
@@ -1,4 +1,4 @@
-simplify and trim out extra info in CONF.sh
+simplify and trim out extra info in CONF.sh, or split into several files.
 
 use preseed include mechanisms rather than simply appending to default
 preseeding file.

Modified: people/vagrant/simple-cdd/simple-cdd-downloads.list
==============================================================================
--- people/vagrant/simple-cdd/simple-cdd-downloads.list	(original)
+++ people/vagrant/simple-cdd/simple-cdd-downloads.list	Wed Nov 24 21:34:23 2004
@@ -1,9 +1,22 @@
+# keep grub and a kernel-image or debian-installer won't work properly.
 kernel-image-2.4-386
 grub
 
+# i like to download these, too.
+lessdisks
+lessdisks-xterminal
+lessdisks-cloner-terminal
+lessdisks-cloner-server
+sdm
+sdm-terminal
+xdialog
+
+# debian-installer wants to install these for some reason:
 mdetect
 read-edid
 
+# other packages that debian-cd complains about if they're not there:
+# remove them at your own risk.
 ash
 discover1
 discover
@@ -16,15 +29,9 @@
 syslinux
 ucf
 
+# for some reasons debian-cd complains if these are missing, too,
+# though it might work just fine without them.
 postfix
 maildrop
 ssmtp
 nullmailer
-
-lessdisks
-lessdisks-xterminal
-lessdisks-cloner-terminal
-lessdisks-cloner-server
-sdm
-sdm-terminal
-xdialog

Modified: people/vagrant/simple-cdd/simple-cdd-packages.list
==============================================================================
--- people/vagrant/simple-cdd/simple-cdd-packages.list	(original)
+++ people/vagrant/simple-cdd/simple-cdd-packages.list	Wed Nov 24 21:34:23 2004
@@ -1,3 +1,6 @@
+# examples for a demo lessdisks/sdm server
 lessdisks
 sdm
 xdialog
+aterm
+icewm