From b1672361bdfe512ec1d671bceb8b4324d57fb504 Mon Sep 17 00:00:00 2001 From: jonas Date: Sat, 14 Oct 2006 10:06:22 +0000 Subject: Rearrange default files: Better names. git-svn-id: svn+ssh://xayide/home/jonas/private_svn/fleshybrid/homebase@35 8f53b18a-e215-0410-8885-9f593d34873e --- common-settings | 8 +-- config-DEFAULTS | 126 ------------------------------------------ config-HOST | 36 ------------ config-MANDATED | 159 ----------------------------------------------------- config-TARGET | 1 - defaults-fixed.cfg | 159 +++++++++++++++++++++++++++++++++++++++++++++++++++++ defaults.cfg | 126 ++++++++++++++++++++++++++++++++++++++++++ host.cfg | 36 ++++++++++++ target.cfg | 1 + 9 files changed, 326 insertions(+), 326 deletions(-) delete mode 100644 config-DEFAULTS delete mode 100644 config-HOST delete mode 100644 config-MANDATED delete mode 120000 config-TARGET create mode 100644 defaults-fixed.cfg create mode 100644 defaults.cfg create mode 100644 host.cfg create mode 120000 target.cfg diff --git a/common-settings b/common-settings index 000ca69..ea4d18e 100644 --- a/common-settings +++ b/common-settings @@ -4,9 +4,9 @@ set -e -. ./config-DEFAULTS || exit 1 -. ./config-HOST || exit 1 -. ./config-TARGET || exit 1 -. ./config-MANDATED || exit 1 +. ./defaults.cfg || exit 1 +. ./host.cfg || exit 1 +. ./target.cfg || exit 1 +. ./defaults-fixed.cfg || exit 1 exit 0 diff --git a/config-DEFAULTS b/config-DEFAULTS deleted file mode 100644 index 2271204..0000000 --- a/config-DEFAULTS +++ /dev/null @@ -1,126 +0,0 @@ -#!/bin/sh - -# Use the classic debootstrap or the newer cdebootstrap -debootstrap="cdebootstrap" - -# Default ordered list of all APT sources -aptsources="base security" - -# Default URI of base APT repository used for initial setup -aptsource_base_host="http://ftp.debian.org/debian/" - -# cdebootstrap seems to only support http URIs (unlike chroot'et aptitude) -aptsource_base_cdebootstrap="http://ftp.debian.org/debian/" - -# Tweaks at http://debian.jones.dk (disabled by default) -aptsource_jones_host="http://debian.jones.dk/" -aptsource_jones_components="kernels misc" -#aptsource_jones_components="kernels boot filesystems filesharing fileviewers php mediastreaming voip admin mailservers misc" - -# Default list of components (if not just "main") -#aptsource_base_components="main contrib non-free" - -# Default URI and components of additional APT sources -aptsource_security_host="http://security.debian.org/" -aptsource_security_components="updates/main" - -# Directories unavailable when not in maintainance mode -flashybrid_diskstore=" - /usr/doc - /usr/share/doc - /usr/share/info - /usr/share/locale - /usr/share/man - /var/cache/apt - /var/cache/debconf - /var/lib/apt - /var/lib/aptitude - /var/lib/dpkg - /usr/lib/gconv - /usr/share/aptitude -" - -# Directories stored in memory when not in maintainance mode -flashybrid_ramstore=" - /var/lib/dhcp3 - /var/lib/shorewall - /var/lib/nfs -" -# Directories always stored in memory (never preserved across boot) -flashybrid_ramtmp=" -" - -DHCPCLIENT="dhcp3" - -debootstrap_excludes="lilo,ipchains,pcmcia-cs,ppp,pppoe,pppoeconf,pppconfig,syslinux,logrotate,mailx,at,makedev,wget" -debootstrap_excludes="$debootstrap_excludes,nvi,base-config,cron,ed,fdutils,gettext-base,groff-base,info,iptables,man-db,manpages,nano,tasksel,telnet,apt-utils" -debootstrap_excludes="$debootstrap_excludes,bsdmainutils" -#debootstrap_excludes="$debootstrap_excludes,klogd,sysklogd" -debootstrap_excludes="$debootstrap_excludes,libpcap0.7" -debootstrap_excludes="$debootstrap_excludes,libtextwrap1,libdb4.2,console-common" -debootstrap_excludes="$debootstrap_excludes,console-data,console-tools,libconsole" - -# Save space by dropping MTA -debootstrap_excludes="$debootstrap_excludes,exim,exim4-base,exim4,exim4-config,exim4-daemon-light,libopencdk8,libpcre3,libtasn1-2,libgcrypt11,libgcrypt7,libgdbm3,libgnutls10,libgnutls11,libgpg-error0,liblockfile1,liblzo1" - -# Save space by dropping debconf i18n support -# (also allows to avoid logrotate - nasty to configure for r/o systems!) -#debootstrap_excludes="$debootstrap_excludes,debconf-i18n,liblocale-gettext-perl,libtext-charwidth-perl,libtext-iconv-perl,libtext-wrapi18n-perl" -#debootstrap_includes="debconf-english" -## FIXME: debootstrap currently broken and cannot include debconf-english, -## so do that as regular aptitude run within 1_makerootfs.sh. -debootstrap_excludes="$debootstrap_excludes,liblocale-gettext-perl,libtext-charwidth-perl,libtext-iconv-perl,libtext-wrapi18n-perl" -#debootstrap_excludes="$debootstrap_excludes,debconf-i18n" -#debootstrap_includes="debconf-english" - -# We want a different DHCP client - if at all -debootstrap_excludes="$debootstrap_excludes,dhcp-client" - -# Package groups depending on enabled features -aptitude_install_dhcpclient="dhcp3-client" -#aptitude_install_dhcpclient="udhcpc" -aptitude_install_grub="grub" -aptitude_install_flashybrid="flashybrid" -aptitude_install_nfs="nfs-common" - -# Kernel modules to install into the initrd -modules_install="usb-storage sd_mod scsi_mod uhci uhci-hcd ehci-hcd usbcore" -#modules_install="$modules_install vfat nls_cp437 msdos fat" - -# Boot helper apps -aptitude_install_boot="memtest86+ udev usbutils resolvconf module-init-tools" - -# Stuff semi-required for networking -aptitude_install_net="openssh-client openssh-server syslog-ng netbase" - -# Stuff semi-required for storage -aptitude_install_disk="lvm2 mdadm smartmontools hdparm hddtemp e2undel testdisk" - -# Stuff semi-required for acpi -aptitude_install_acpi="acpid" - -# Admin helper apps (mime-support is needed to read gzip'ed files through mc) -#aptitude_install_admin="mc mime-support file" -aptitude_install_admin="less mc mime-support" - -# Framebuffer-based infoscreen -#aptitude_install_fbinfoscreen="ppmtofb netpbm python" - -# X11-based infoscreen -# (libxmuu1 is for locally added "xset" binary taken from xbase-clients) -#aptitude_install_x11infoscreen="xfonts-base xserver-xfree86 libxmuu1 launchtool unclutter qiv" -#flashybrid_diskstore_x11infoscreen="/usr/X11R6/man" - -# X11-based PhoneHome -# (X11 core modules installed first to avoid -all packages pulled in) -aptitude_install_x11phonehome="xfonts-base xserver-xorg-input-kbd xserver-xorg-input-mouse xserver-xorg-video-i810" -aptitude_install_x11phonehome="$aptitude_install_x11phonehome xserver-xorg-core" -# (libxmuu1 is for locally added "xset" binary taken from xbase-clients) -# (killall from psmisc is used within motion launchtool script) -aptitude_install_x11phonehome="$aptitude_install_x11phonehome libxmuu1 launchtool unclutter psmisc" -aptitude_install_x11phonehome="$aptitude_install_x11phonehome motion simpleopal alsa-base" -flashybrid_diskstore_x11phonehome="/usr/X11R6/man" - -# Shorewall firewall -#aptitude_install_shorewall="shorewall wget wipl-daemon dhcp3-server iptstate" -#aptitude_install_shorewall="$aptitude_install_shorewall tcpd shorewall wget dhcp3-server iptstate br2684ctl" diff --git a/config-HOST b/config-HOST deleted file mode 100644 index 5a6dc66..0000000 --- a/config-HOST +++ /dev/null @@ -1,36 +0,0 @@ -#!/bin/sh - -mountpoint="/mnt/usbstick" - -# This may change each time you switch USB stick on the host -usbdev_host="/dev/sda" - -# These usually do not change -usbdev_target="/dev/sda" -usbdev_grub="hd0" - -# Ordered list of all APT sources (if different from DEFAULT) -#aptsources="base security jones" -aptsources="base security" - -# URI of base APT repository (if different from DEFAULT) -# TODO: Check if cdebootstrap (like debootstrap) can somehow use file:/ URI -aptsource_base_host="http://proxy:9999/debian" - -# cdebootstrap seem to only support http URI (unlike chroot'et aptitude) -aptsource_base_cdebootstrap="http://proxy:9999/debian" - -# Default list of components (if not just "main") -#aptsource_base_components="main contrib non-free" - -# URI and components of additional APT sources (if different from DEFAULT) -#aptsource_security_host="file:/pub/mirrors/debian-security/" -#aptsource_jones_host="http://debian.jones.dk/" -#aptsource_jones_components="kernels misc" - -# Device name (or NFS share) to mount to "/pub" -#pubdev_host="192.168.102.252:/pub" -pubdev_host="" -# Device type for "/pub" -#pubfs="nfs" -pubfs="" diff --git a/config-MANDATED b/config-MANDATED deleted file mode 100644 index 8d78323..0000000 --- a/config-MANDATED +++ /dev/null @@ -1,159 +0,0 @@ -#!/bin/sh - -# FIXME: Rewrite all config_MANDATED options as functions - -# Resolve bootloaders and install targets -syslinuxdev_host='' -isolinuxdev_host='' -grubdev_host='' -lilodev_host='' -partno=0 -for bootloader in $bootloaders; do - let partno=$partno+1 - if [ $partno -gt 4 ]; then - echo 'ERROR: No more than 4 bootloaders supported!' >&2 - exit 1 - fi - case $bootloader in - SYSLINUX) - [ -n "$syslinuxdev_host" ] && continue - syslinuxdev_host="$usbdev_host$partno" - thisfs='' - for fs in $selectable_filesystems; do - case $fs in - vfat|msdos) - thisfs=$fs - continue 2 - ;; - esac - done - if [ -z "$thisfs" ]; then - echo "ERROR: None of the selectable filesystems suitable for $bootloader"'!' >&2 - exit 1 - fi - eval fs$partno=$thisfs - ;; - GRUB) - [ -n "$grubdev_host" ] && continue - grubdev_host="$usbdev_host$partno" - let partno_grub=$partno-1 || partno_grub=0 - grubdev_grub="$usbdev_grub,$partno_grub" - thisfs='' - for fs in $selectable_filesystems; do - case $fs in - ext2|ext3|e2fs|e3fs|ext2fs|ext3fs) - thisfs=e2fs - continue 2 - ;; - fat|vfat|dos) - thisfs=fat - continue 2 - ;; - isofs) - # FIXME: Do we need a specific 1st stage bootloader defined here as well? - thisfs=$fs - continue 2 - ;; - jfs|reiserfs|xfs|minix) - thisfs=$fs - continue 2 - ;; - esac - done - if [ -z "$thisfs" ]; then - echo "ERROR: None of the selectable filesystems suitable for $bootloader"'!' >&2 - exit 1 - fi - eval fs$partno=$thisfs - ;; - LILO|ISOLINUX) - echo "ERROR: bootloader \"$bootloader\" not yet implemented"'!' >&2 - exit 1 - ;; - *) - echo "ERROR: Unknown bootloader \"$bootloader\""'!' >&2 - exit 1 - ;; - esac -done -# TODO: Loop through all possible bootloaders instead of checking only these two -if [ -n "$grubdev_host" ] && [ -n "$syslinuxdev_host" ]; then - MULTIPLE_BOOTLOADERS="yes" -fi -if [ "$MULTIPLE_BOOTLOADERS" = "yes" ]; then - MBR="yes" -fi -if [ -z "$grubdev_host$syslinuxdev_host$isolinuxdev_host$lilodev_host" ]; then - echo 'ERROR: No bootloader defined!' >&2 - exit 1 -fi -if [ -n "$syslinuxdev_host" ] && [ "$ROOTFS" != "isofs" ]; then - INCOMPATIBLE_FS="yes" -fi -bootdev_host="${usbdev_host}1" -# FIXME: Set rootdev to dev of highest priority bootloader matching ROOTFS -if [ "$MULTIPLE_BOOTLOADERS" = "yes" ] || [ "$INCOMPATIBLE_FS" = "yes" ]; then - rootdev_host="${usbdev_host}2" - rootdev_target="${usbdev_target}2" -else - rootdev_host="${usbdev_host}1" - rootdev_target="${usbdev_target}1" -fi -if [ "$FLASHYBRID" = "yes" ] && [ "$ROOTFS" = "isofs" ]; then - echo 'ERROR: FLASHYBRID requires a writable root filesystem!' >&2 - exit 1 -fi -# FIXME: Support rolling the prepared system into a read-only ISO -# filesystem instead of using flashybrid -if [ "$ROOTFS" = "isofs" ]; then - echo 'ERROR: isofs root filesystem is not yet supported!' >&2 - exit 1 -fi - -debootstrap_excludes="lilo,ipchains,pcmcia-cs,ppp,pppoe,pppoeconf,pppconfig,syslinux,logrotate,mailx,at,makedev,wget" -debootstrap_excludes="$debootstrap_excludes,nvi,base-config,cron,ed,fdutils,gettext-base,groff-base,info,iptables,man-db,manpages,nano,tasksel,telnet,apt-utils" -debootstrap_excludes="$debootstrap_excludes,bsdmainutils" -#debootstrap_excludes="$debootstrap_excludes,klogd,sysklogd" -debootstrap_excludes="$debootstrap_excludes,libpcap0.7" -debootstrap_excludes="$debootstrap_excludes,libtextwrap1,libdb4.2,console-common" -debootstrap_excludes="$debootstrap_excludes,console-data,console-tools,libconsole" - -# Save space by dropping MTA -debootstrap_excludes="$debootstrap_excludes,exim,exim4-base,exim4,exim4-config,exim4-daemon-light,libopencdk8,libpcre3,libtasn1-2,libgcrypt11,libgcrypt7,libgdbm3,libgnutls10,libgnutls11,libgpg-error0,liblockfile1,liblzo1" - -# Save space by dropping debconf i18n support -# (also allows to avoid logrotate - nasty to configure for r/o systems!) -#debootstrap_excludes="$debootstrap_excludes,debconf-i18n,liblocale-gettext-perl,libtext-charwidth-perl,libtext-iconv-perl,libtext-wrapi18n-perl" -#debootstrap_includes="debconf-english" -## FIXME: debootstrap currently broken and cannot include debconf-english, -## so do that as regular aptitude run within 1_makerootfs.sh. -debootstrap_excludes="$debootstrap_excludes,liblocale-gettext-perl,libtext-charwidth-perl,libtext-iconv-perl,libtext-wrapi18n-perl" -#debootstrap_excludes="$debootstrap_excludes,debconf-i18n" -#debootstrap_includes="debconf-english" - -# Alternative DHCP client implementations -debootstrap_excludes="$debootstrap_excludes,dhcp-client" - -case $DHCPCLIENT in - dhcp3) - aptitude_dhcpclient_install="dhcp3-client" - ;; - udhcpc) - aptitude_dhcpclient_install="udhcpc" - ;; - *) - echo "ERROR: Unknown dhcp client \"$DHCPCLIENT\""'!' >&2 - exit 1 - ;; -esac - -[ -n "$grubdev_host" ] && aptitude_install="$aptitude_install grub" -[ "$FLASHYBRID" = "yes" ] && aptitude_install="$aptitude_install flashybrid" - -if [ "$diskfs" = "nfs" ] || [ "$pubfs" = "nfs" ]; then - aptitude_install="$aptitude_install nfs-common" -fi - -# Kernel modules to install into the initrd -modules_install="usb-storage sd_mod scsi_mod uhci uhci-hcd ehci-hcd usbcore" -#modules_install="$modules_install vfat nls_cp437 msdos fat" diff --git a/config-TARGET b/config-TARGET deleted file mode 120000 index 9bea7d1..0000000 --- a/config-TARGET +++ /dev/null @@ -1 +0,0 @@ -config-homebase \ No newline at end of file diff --git a/defaults-fixed.cfg b/defaults-fixed.cfg new file mode 100644 index 0000000..8d78323 --- /dev/null +++ b/defaults-fixed.cfg @@ -0,0 +1,159 @@ +#!/bin/sh + +# FIXME: Rewrite all config_MANDATED options as functions + +# Resolve bootloaders and install targets +syslinuxdev_host='' +isolinuxdev_host='' +grubdev_host='' +lilodev_host='' +partno=0 +for bootloader in $bootloaders; do + let partno=$partno+1 + if [ $partno -gt 4 ]; then + echo 'ERROR: No more than 4 bootloaders supported!' >&2 + exit 1 + fi + case $bootloader in + SYSLINUX) + [ -n "$syslinuxdev_host" ] && continue + syslinuxdev_host="$usbdev_host$partno" + thisfs='' + for fs in $selectable_filesystems; do + case $fs in + vfat|msdos) + thisfs=$fs + continue 2 + ;; + esac + done + if [ -z "$thisfs" ]; then + echo "ERROR: None of the selectable filesystems suitable for $bootloader"'!' >&2 + exit 1 + fi + eval fs$partno=$thisfs + ;; + GRUB) + [ -n "$grubdev_host" ] && continue + grubdev_host="$usbdev_host$partno" + let partno_grub=$partno-1 || partno_grub=0 + grubdev_grub="$usbdev_grub,$partno_grub" + thisfs='' + for fs in $selectable_filesystems; do + case $fs in + ext2|ext3|e2fs|e3fs|ext2fs|ext3fs) + thisfs=e2fs + continue 2 + ;; + fat|vfat|dos) + thisfs=fat + continue 2 + ;; + isofs) + # FIXME: Do we need a specific 1st stage bootloader defined here as well? + thisfs=$fs + continue 2 + ;; + jfs|reiserfs|xfs|minix) + thisfs=$fs + continue 2 + ;; + esac + done + if [ -z "$thisfs" ]; then + echo "ERROR: None of the selectable filesystems suitable for $bootloader"'!' >&2 + exit 1 + fi + eval fs$partno=$thisfs + ;; + LILO|ISOLINUX) + echo "ERROR: bootloader \"$bootloader\" not yet implemented"'!' >&2 + exit 1 + ;; + *) + echo "ERROR: Unknown bootloader \"$bootloader\""'!' >&2 + exit 1 + ;; + esac +done +# TODO: Loop through all possible bootloaders instead of checking only these two +if [ -n "$grubdev_host" ] && [ -n "$syslinuxdev_host" ]; then + MULTIPLE_BOOTLOADERS="yes" +fi +if [ "$MULTIPLE_BOOTLOADERS" = "yes" ]; then + MBR="yes" +fi +if [ -z "$grubdev_host$syslinuxdev_host$isolinuxdev_host$lilodev_host" ]; then + echo 'ERROR: No bootloader defined!' >&2 + exit 1 +fi +if [ -n "$syslinuxdev_host" ] && [ "$ROOTFS" != "isofs" ]; then + INCOMPATIBLE_FS="yes" +fi +bootdev_host="${usbdev_host}1" +# FIXME: Set rootdev to dev of highest priority bootloader matching ROOTFS +if [ "$MULTIPLE_BOOTLOADERS" = "yes" ] || [ "$INCOMPATIBLE_FS" = "yes" ]; then + rootdev_host="${usbdev_host}2" + rootdev_target="${usbdev_target}2" +else + rootdev_host="${usbdev_host}1" + rootdev_target="${usbdev_target}1" +fi +if [ "$FLASHYBRID" = "yes" ] && [ "$ROOTFS" = "isofs" ]; then + echo 'ERROR: FLASHYBRID requires a writable root filesystem!' >&2 + exit 1 +fi +# FIXME: Support rolling the prepared system into a read-only ISO +# filesystem instead of using flashybrid +if [ "$ROOTFS" = "isofs" ]; then + echo 'ERROR: isofs root filesystem is not yet supported!' >&2 + exit 1 +fi + +debootstrap_excludes="lilo,ipchains,pcmcia-cs,ppp,pppoe,pppoeconf,pppconfig,syslinux,logrotate,mailx,at,makedev,wget" +debootstrap_excludes="$debootstrap_excludes,nvi,base-config,cron,ed,fdutils,gettext-base,groff-base,info,iptables,man-db,manpages,nano,tasksel,telnet,apt-utils" +debootstrap_excludes="$debootstrap_excludes,bsdmainutils" +#debootstrap_excludes="$debootstrap_excludes,klogd,sysklogd" +debootstrap_excludes="$debootstrap_excludes,libpcap0.7" +debootstrap_excludes="$debootstrap_excludes,libtextwrap1,libdb4.2,console-common" +debootstrap_excludes="$debootstrap_excludes,console-data,console-tools,libconsole" + +# Save space by dropping MTA +debootstrap_excludes="$debootstrap_excludes,exim,exim4-base,exim4,exim4-config,exim4-daemon-light,libopencdk8,libpcre3,libtasn1-2,libgcrypt11,libgcrypt7,libgdbm3,libgnutls10,libgnutls11,libgpg-error0,liblockfile1,liblzo1" + +# Save space by dropping debconf i18n support +# (also allows to avoid logrotate - nasty to configure for r/o systems!) +#debootstrap_excludes="$debootstrap_excludes,debconf-i18n,liblocale-gettext-perl,libtext-charwidth-perl,libtext-iconv-perl,libtext-wrapi18n-perl" +#debootstrap_includes="debconf-english" +## FIXME: debootstrap currently broken and cannot include debconf-english, +## so do that as regular aptitude run within 1_makerootfs.sh. +debootstrap_excludes="$debootstrap_excludes,liblocale-gettext-perl,libtext-charwidth-perl,libtext-iconv-perl,libtext-wrapi18n-perl" +#debootstrap_excludes="$debootstrap_excludes,debconf-i18n" +#debootstrap_includes="debconf-english" + +# Alternative DHCP client implementations +debootstrap_excludes="$debootstrap_excludes,dhcp-client" + +case $DHCPCLIENT in + dhcp3) + aptitude_dhcpclient_install="dhcp3-client" + ;; + udhcpc) + aptitude_dhcpclient_install="udhcpc" + ;; + *) + echo "ERROR: Unknown dhcp client \"$DHCPCLIENT\""'!' >&2 + exit 1 + ;; +esac + +[ -n "$grubdev_host" ] && aptitude_install="$aptitude_install grub" +[ "$FLASHYBRID" = "yes" ] && aptitude_install="$aptitude_install flashybrid" + +if [ "$diskfs" = "nfs" ] || [ "$pubfs" = "nfs" ]; then + aptitude_install="$aptitude_install nfs-common" +fi + +# Kernel modules to install into the initrd +modules_install="usb-storage sd_mod scsi_mod uhci uhci-hcd ehci-hcd usbcore" +#modules_install="$modules_install vfat nls_cp437 msdos fat" diff --git a/defaults.cfg b/defaults.cfg new file mode 100644 index 0000000..2271204 --- /dev/null +++ b/defaults.cfg @@ -0,0 +1,126 @@ +#!/bin/sh + +# Use the classic debootstrap or the newer cdebootstrap +debootstrap="cdebootstrap" + +# Default ordered list of all APT sources +aptsources="base security" + +# Default URI of base APT repository used for initial setup +aptsource_base_host="http://ftp.debian.org/debian/" + +# cdebootstrap seems to only support http URIs (unlike chroot'et aptitude) +aptsource_base_cdebootstrap="http://ftp.debian.org/debian/" + +# Tweaks at http://debian.jones.dk (disabled by default) +aptsource_jones_host="http://debian.jones.dk/" +aptsource_jones_components="kernels misc" +#aptsource_jones_components="kernels boot filesystems filesharing fileviewers php mediastreaming voip admin mailservers misc" + +# Default list of components (if not just "main") +#aptsource_base_components="main contrib non-free" + +# Default URI and components of additional APT sources +aptsource_security_host="http://security.debian.org/" +aptsource_security_components="updates/main" + +# Directories unavailable when not in maintainance mode +flashybrid_diskstore=" + /usr/doc + /usr/share/doc + /usr/share/info + /usr/share/locale + /usr/share/man + /var/cache/apt + /var/cache/debconf + /var/lib/apt + /var/lib/aptitude + /var/lib/dpkg + /usr/lib/gconv + /usr/share/aptitude +" + +# Directories stored in memory when not in maintainance mode +flashybrid_ramstore=" + /var/lib/dhcp3 + /var/lib/shorewall + /var/lib/nfs +" +# Directories always stored in memory (never preserved across boot) +flashybrid_ramtmp=" +" + +DHCPCLIENT="dhcp3" + +debootstrap_excludes="lilo,ipchains,pcmcia-cs,ppp,pppoe,pppoeconf,pppconfig,syslinux,logrotate,mailx,at,makedev,wget" +debootstrap_excludes="$debootstrap_excludes,nvi,base-config,cron,ed,fdutils,gettext-base,groff-base,info,iptables,man-db,manpages,nano,tasksel,telnet,apt-utils" +debootstrap_excludes="$debootstrap_excludes,bsdmainutils" +#debootstrap_excludes="$debootstrap_excludes,klogd,sysklogd" +debootstrap_excludes="$debootstrap_excludes,libpcap0.7" +debootstrap_excludes="$debootstrap_excludes,libtextwrap1,libdb4.2,console-common" +debootstrap_excludes="$debootstrap_excludes,console-data,console-tools,libconsole" + +# Save space by dropping MTA +debootstrap_excludes="$debootstrap_excludes,exim,exim4-base,exim4,exim4-config,exim4-daemon-light,libopencdk8,libpcre3,libtasn1-2,libgcrypt11,libgcrypt7,libgdbm3,libgnutls10,libgnutls11,libgpg-error0,liblockfile1,liblzo1" + +# Save space by dropping debconf i18n support +# (also allows to avoid logrotate - nasty to configure for r/o systems!) +#debootstrap_excludes="$debootstrap_excludes,debconf-i18n,liblocale-gettext-perl,libtext-charwidth-perl,libtext-iconv-perl,libtext-wrapi18n-perl" +#debootstrap_includes="debconf-english" +## FIXME: debootstrap currently broken and cannot include debconf-english, +## so do that as regular aptitude run within 1_makerootfs.sh. +debootstrap_excludes="$debootstrap_excludes,liblocale-gettext-perl,libtext-charwidth-perl,libtext-iconv-perl,libtext-wrapi18n-perl" +#debootstrap_excludes="$debootstrap_excludes,debconf-i18n" +#debootstrap_includes="debconf-english" + +# We want a different DHCP client - if at all +debootstrap_excludes="$debootstrap_excludes,dhcp-client" + +# Package groups depending on enabled features +aptitude_install_dhcpclient="dhcp3-client" +#aptitude_install_dhcpclient="udhcpc" +aptitude_install_grub="grub" +aptitude_install_flashybrid="flashybrid" +aptitude_install_nfs="nfs-common" + +# Kernel modules to install into the initrd +modules_install="usb-storage sd_mod scsi_mod uhci uhci-hcd ehci-hcd usbcore" +#modules_install="$modules_install vfat nls_cp437 msdos fat" + +# Boot helper apps +aptitude_install_boot="memtest86+ udev usbutils resolvconf module-init-tools" + +# Stuff semi-required for networking +aptitude_install_net="openssh-client openssh-server syslog-ng netbase" + +# Stuff semi-required for storage +aptitude_install_disk="lvm2 mdadm smartmontools hdparm hddtemp e2undel testdisk" + +# Stuff semi-required for acpi +aptitude_install_acpi="acpid" + +# Admin helper apps (mime-support is needed to read gzip'ed files through mc) +#aptitude_install_admin="mc mime-support file" +aptitude_install_admin="less mc mime-support" + +# Framebuffer-based infoscreen +#aptitude_install_fbinfoscreen="ppmtofb netpbm python" + +# X11-based infoscreen +# (libxmuu1 is for locally added "xset" binary taken from xbase-clients) +#aptitude_install_x11infoscreen="xfonts-base xserver-xfree86 libxmuu1 launchtool unclutter qiv" +#flashybrid_diskstore_x11infoscreen="/usr/X11R6/man" + +# X11-based PhoneHome +# (X11 core modules installed first to avoid -all packages pulled in) +aptitude_install_x11phonehome="xfonts-base xserver-xorg-input-kbd xserver-xorg-input-mouse xserver-xorg-video-i810" +aptitude_install_x11phonehome="$aptitude_install_x11phonehome xserver-xorg-core" +# (libxmuu1 is for locally added "xset" binary taken from xbase-clients) +# (killall from psmisc is used within motion launchtool script) +aptitude_install_x11phonehome="$aptitude_install_x11phonehome libxmuu1 launchtool unclutter psmisc" +aptitude_install_x11phonehome="$aptitude_install_x11phonehome motion simpleopal alsa-base" +flashybrid_diskstore_x11phonehome="/usr/X11R6/man" + +# Shorewall firewall +#aptitude_install_shorewall="shorewall wget wipl-daemon dhcp3-server iptstate" +#aptitude_install_shorewall="$aptitude_install_shorewall tcpd shorewall wget dhcp3-server iptstate br2684ctl" diff --git a/host.cfg b/host.cfg new file mode 100644 index 0000000..5a6dc66 --- /dev/null +++ b/host.cfg @@ -0,0 +1,36 @@ +#!/bin/sh + +mountpoint="/mnt/usbstick" + +# This may change each time you switch USB stick on the host +usbdev_host="/dev/sda" + +# These usually do not change +usbdev_target="/dev/sda" +usbdev_grub="hd0" + +# Ordered list of all APT sources (if different from DEFAULT) +#aptsources="base security jones" +aptsources="base security" + +# URI of base APT repository (if different from DEFAULT) +# TODO: Check if cdebootstrap (like debootstrap) can somehow use file:/ URI +aptsource_base_host="http://proxy:9999/debian" + +# cdebootstrap seem to only support http URI (unlike chroot'et aptitude) +aptsource_base_cdebootstrap="http://proxy:9999/debian" + +# Default list of components (if not just "main") +#aptsource_base_components="main contrib non-free" + +# URI and components of additional APT sources (if different from DEFAULT) +#aptsource_security_host="file:/pub/mirrors/debian-security/" +#aptsource_jones_host="http://debian.jones.dk/" +#aptsource_jones_components="kernels misc" + +# Device name (or NFS share) to mount to "/pub" +#pubdev_host="192.168.102.252:/pub" +pubdev_host="" +# Device type for "/pub" +#pubfs="nfs" +pubfs="" diff --git a/target.cfg b/target.cfg new file mode 120000 index 0000000..9bea7d1 --- /dev/null +++ b/target.cfg @@ -0,0 +1 @@ +config-homebase \ No newline at end of file -- cgit v1.2.3