From bd1971c6a02fec5a2ff02314c893aa0b3519aa38 Mon Sep 17 00:00:00 2001 From: jonas Date: Sat, 14 Oct 2006 10:57:42 +0000 Subject: Move host and target configs to subdirs. Allow either using a shared config or override with a custom one. Don't exit 0 in common-settings. git-svn-id: svn+ssh://xayide/home/jonas/private_svn/fleshybrid/homebase@37 8f53b18a-e215-0410-8885-9f593d34873e --- common-settings | 33 ++++++++++++++-- config-chr | 101 ------------------------------------------------- config-chr.diff | 104 -------------------------------------------------- config-dgih | 102 ------------------------------------------------- config-dgih.diff | 43 --------------------- config-homebase | 111 ------------------------------------------------------ config-jones | 110 ----------------------------------------------------- config-lasse | 108 ---------------------------------------------------- host | 1 + host.cfg | 36 ------------------ hosts/homebase | 36 ++++++++++++++++++ target | 1 + target.cfg | 1 - targets/chr | 101 +++++++++++++++++++++++++++++++++++++++++++++++++ targets/chr.diff | 104 ++++++++++++++++++++++++++++++++++++++++++++++++++ targets/dgih | 102 +++++++++++++++++++++++++++++++++++++++++++++++++ targets/dgih.diff | 43 +++++++++++++++++++++ targets/homebase | 111 ++++++++++++++++++++++++++++++++++++++++++++++++++++++ targets/jones | 110 +++++++++++++++++++++++++++++++++++++++++++++++++++++ targets/lasse | 108 ++++++++++++++++++++++++++++++++++++++++++++++++++++ 20 files changed, 746 insertions(+), 720 deletions(-) delete mode 100644 config-chr delete mode 100644 config-chr.diff delete mode 100644 config-dgih delete mode 100644 config-dgih.diff delete mode 100644 config-homebase delete mode 100644 config-jones delete mode 100644 config-lasse create mode 100644 host delete mode 100644 host.cfg create mode 100644 hosts/homebase create mode 100644 target delete mode 120000 target.cfg create mode 100644 targets/chr create mode 100644 targets/chr.diff create mode 100644 targets/dgih create mode 100644 targets/dgih.diff create mode 100644 targets/homebase create mode 100644 targets/jones create mode 100644 targets/lasse diff --git a/common-settings b/common-settings index 84d49d1..b39952a 100644 --- a/common-settings +++ b/common-settings @@ -5,8 +5,33 @@ set -e . ./defaults.cfg || exit 1 -. ./host.cfg || exit 1 -. ./target.cfg || exit 1 -. ./defaults-aftermath.cfg || exit 1 -exit 0 +shareddir="hosts" +sharedfile="host" +customfile="host.cfg" +if [ -f "$customfile" ]; then + if [ -f "$sharedfile" ]; then + echo "W: Ignoring shared host config \"$sharedfile\" - using custom \"$customfile\" instead." + fi + . "$customfile" +elif [ -f "$sharedfile" ]; then + . "$shareddir"/`cat "$sharedfile" |head -1` +else + echo "E: No host config found - either mention shared host config in \"$sharedfile\" or write custom file \"$customfile\"." +fi + +shareddir="targets" +sharedfile="target" +customfile="target.cfg" +if [ -f "$customfile" ]; then + if [ -f "$sharedfile" ]; then + echo "W: Ignoring shared target config \"$sharedfile\" - using custom \"$customfile\" instead." + fi + . "$customfile" +elif [ -f "$sharedfile" ]; then + . "$shareddir"/`cat "$sharedfile" |head -1` +else + echo "E: No target config found - either mention shared host config in \"$sharedfile\" or write custom file \"$customfile\"." +fi + +. ./defaults-aftermath.cfg || exit 1 diff --git a/config-chr b/config-chr deleted file mode 100644 index 0d66ca4..0000000 --- a/config-chr +++ /dev/null @@ -1,101 +0,0 @@ -#!/bin/sh - -# Name and (if wanted) default IP address of system -hostname="usbstick" -#domainname="example.tld" -domainname="jones.dk" -#hostdefaultip="192.168.133.133" - -suite="sarge" - -baseworkdir="/home/CHR" - -diskhost="hykrion.jones.dk" -loghost="192.168.102.252" - -targettemp="$baseworkdir/tmproot" -targettemp_fat="$baseworkdir/tmpfatroot" -targettemp_isofs="$baseworkdir/tmpisoroot" -targetoffline="$baseworkdir/flashybrid-off" - -# Set to one or more (space-delimited, max 4) of these: -# SYSLINUX -# ISOLINUX (not yet implemented) -# GRUB (installs, but fails to load 2nd stage - please help! ) -# LILO (not yet implemented) -# First one will be used by default (hit "a" at MBR promt to select) -# FIXME: fdisk code unfinished: leave it as "SYSLINUX GRUB" for now! -#bootloaders="SYSLINUX GRUB" -bootloaders="GRUB" - -# Uncomment one or more of these -# (DFSBUILD, MKINITRD_CD and MKINITRD_NETBOOT not yet implemented) -FLASHYBRID="yes" -#DFSBUILD="yes" -#MKINITRD_CD="yes" -#MKINITRD_NETBOOT="yes" - -# Set to one of the following: -# ext2 (recommended!) -# ext3 -# isofs (not yet supported) -ROOTFS="ext2" - -# Set to prioritized list of filesystems you want used on the stick -# (USB sticks have limited write count: avoid journalling filesystems) -# (SYSLINUX use only 8.3 filenames, so msdos might be better than vfat) -selectable_filesystems="ext2 vfat" - -# If enabled, this will get get attached to /disk (needed by FLASHYBRID) -diskdev_host="${diskhost:+$diskhost:$baseworkdir/flashybrid-off}" -diskdev_target="$diskdev_host" -diskfs="nfs" - -# APT repository for initial setup (and possibly more) -# (use file:/pub/... and enable nfs - sppedy and works in chroot too) -#mirror="http://192.168.102.252/mirrors/debian/" -mirror="file:/pub/mirrors/debian/" - -mirror_addon="http://debian.jones.dk/" -mirror_addon_target="kernels misc" - -# If enabled, this will get attached to /pub -#pubdev_host="${diskhost:+$diskhost:/pub}" -pubdev_host="192.168.102.252:/pub" -pubdev_target="$pubdev_host" -pubfs="nfs" - -# Define this to redirect all log output to another host -loghost="$loghost" - -# Packages to install beyond the bare minimum -aptitude_install="initrd-tools yaird" -#aptitude_kernel_install="kernel-image-2.6.12+debianlogo+squashfs+wrr" -aptitude_kernel_install="kernel-image-2.6.12+debianlogo+squashfs+wrr" -aptitude_install_custom="mc less ssh syslog-ng console-log" - -#This one needs to be installed separately from daemons -#aptitude_install_custom="$aptitude_install_custom file-rc" - -# Boot helper apps -aptitude_install_custom="$aptitude_install_custom memtest86+ udev usbutils ifplugd ifrename resolvconf module-init-tools" - -# Admin helper apps (e.g. for reading gzip'ed files through mc) -aptitude_install_custom="$aptitude_install_custom mime-support file" - -# You probably won't need this (needed for framebuffer-based infoscreen) -#aptitude_install_custom="$aptitude_install ppmtofb netpbm python" - -# You probably won't need this (needed for X11-based infoscreen) -# (libxmuu1 is for locally added "xset" binary taken from xbase-clients) -#aptitude_install_custom="$aptitude_install xfonts-base xserver-xfree86 libxmuu1 launchtool unclutter qiv" -#diskstore="$flashybrid_diskstore /usr/X11R6/man" - -# Shorewall firewall -aptitude_install_custom="$aptitude_install_custom shorewall wget wipl-daemon dhcp3-server" - -# Kernel modules to load at boot time -modules_load="via-rhine" - -# Uncomment this to ease tracing configuration tweaks -trace="yes" diff --git a/config-chr.diff b/config-chr.diff deleted file mode 100644 index 3546565..0000000 --- a/config-chr.diff +++ /dev/null @@ -1,104 +0,0 @@ ---- config-dgih 2005-09-29 11:56:48.000000000 +0200 -+++ config-chr 2005-09-29 10:43:44.000000000 +0200 -@@ -1,19 +1,17 @@ - #!/bin/sh - - # Name and (if wanted) default IP address of system --hostname="vagabonden" --domainname="dgi-huset.dk" -+hostname="usbstick" -+#domainname="example.tld" -+domainname="jones.dk" - #hostdefaultip="192.168.133.133" - - suite="sarge" - --baseworkdir="/home/VAGABONDEN" -+baseworkdir="/home/CHR" - --# Hosts used for several services like syslog and network filesystems --diskhost="lager" --loghost="log" -- --dns_server="192.168.101.2" -+diskhost="hykrion.jones.dk" -+loghost="192.168.102.252" - - targettemp="$baseworkdir/tmproot" - targettemp_fat="$baseworkdir/tmpfatroot" -@@ -37,10 +35,6 @@ - #MKINITRD_CD="yes" - #MKINITRD_NETBOOT="yes" - --# Set this empty to avoid dhcp client altogether --DHCPCLIENT="dhcp3" --#DHCPCLIENT="udhcpc" -- - # Set to one of the following: - # ext2 (recommended!) - # ext3 -@@ -57,32 +51,34 @@ - diskdev_target="$diskdev_host" - diskfs="nfs" - --# Ordered list of all APT sources (if different from DEFAULT and HOST) --#aptsources="base security jones" -- --# URI and components of base APT repository as seen on target (if different from host setup) --# (remember to enable nfs if using "file:/pub/...") --aptsource_base_target="http://ftp.debian.org/debian/" --#aptsource_base_target="file:/pub/mirrors/debian/" -- --aptsource_security_target="http://security.debian.org/" -- --# Device name (or NFS share) to mount to "/pub" (if different from HOST) --pubdev_target="$diskhost:/pub" -+# APT repository for initial setup (and possibly more) -+# (use file:/pub/... and enable nfs - sppedy and works in chroot too) -+#mirror="http://192.168.102.252/mirrors/debian/" -+mirror="file:/pub/mirrors/debian/" -+ -+mirror_addon="http://debian.jones.dk/" -+mirror_addon_target="kernels misc" -+ -+# If enabled, this will get attached to /pub -+#pubdev_host="${diskhost:+$diskhost:/pub}" -+pubdev_host="192.168.102.252:/pub" -+pubdev_target="$pubdev_host" -+pubfs="nfs" - - # Define this to redirect all log output to another host - loghost="$loghost" - - # Packages to install beyond the bare minimum --aptitude_install="initrd-tools" --aptitude_kernel_install="kernel-image-2.4-386" --aptitude_install_custom="mc less ssh syslog-ng" -+aptitude_install="initrd-tools yaird" -+#aptitude_kernel_install="kernel-image-2.6.12+debianlogo+squashfs+wrr" -+aptitude_kernel_install="kernel-image-2.6.12+debianlogo+squashfs+wrr" -+aptitude_install_custom="mc less ssh syslog-ng console-log" - - #This one needs to be installed separately from daemons - #aptitude_install_custom="$aptitude_install_custom file-rc" - - # Boot helper apps --aptitude_install_custom="$aptitude_install_custom memtest86+ udev usbutils resolvconf module-init-tools" -+aptitude_install_custom="$aptitude_install_custom memtest86+ udev usbutils ifplugd ifrename resolvconf module-init-tools" - - # Admin helper apps (e.g. for reading gzip'ed files through mc) - aptitude_install_custom="$aptitude_install_custom mime-support file" -@@ -92,8 +88,11 @@ - - # You probably won't need this (needed for X11-based infoscreen) - # (libxmuu1 is for locally added "xset" binary taken from xbase-clients) --aptitude_install_custom="$aptitude_install_custom xfonts-base xserver-xfree86 libxmuu1 launchtool unclutter qiv" --diskstore="$flashybrid_diskstore /usr/X11R6/man" -+#aptitude_install_custom="$aptitude_install xfonts-base xserver-xfree86 libxmuu1 launchtool unclutter qiv" -+#diskstore="$flashybrid_diskstore /usr/X11R6/man" -+ -+# Shorewall firewall -+aptitude_install_custom="$aptitude_install_custom shorewall wget wipl-daemon dhcp3-server" - - # Kernel modules to load at boot time - modules_load="via-rhine" diff --git a/config-dgih b/config-dgih deleted file mode 100644 index 5daa648..0000000 --- a/config-dgih +++ /dev/null @@ -1,102 +0,0 @@ -#!/bin/sh - -# Name and (if wanted) default IP address of system -hostname="vagabonden" -domainname="dgi-huset.dk" -#hostdefaultip="192.168.133.133" - -suite="sarge" - -baseworkdir="/home/VAGABONDEN" - -# Hosts used for several services like syslog and network filesystems -diskhost="lager" -loghost="log" - -dns_server="192.168.101.2" - -targettemp="$baseworkdir/tmproot" -targettemp_fat="$baseworkdir/tmpfatroot" -targettemp_isofs="$baseworkdir/tmpisoroot" -targetoffline="$baseworkdir/flashybrid-off" - -# Set to one or more (space-delimited, max 4) of these: -# SYSLINUX -# ISOLINUX (not yet implemented) -# GRUB (installs, but fails to load 2nd stage - please help! ) -# LILO (not yet implemented) -# First one will be used by default (hit "a" at MBR promt to select) -# FIXME: fdisk code unfinished: leave it as "SYSLINUX GRUB" for now! -#bootloaders="SYSLINUX GRUB" -bootloaders="GRUB" - -# Uncomment one or more of these -# (DFSBUILD, MKINITRD_CD and MKINITRD_NETBOOT not yet implemented) -FLASHYBRID="yes" -#DFSBUILD="yes" -#MKINITRD_CD="yes" -#MKINITRD_NETBOOT="yes" - -# Set this empty to avoid dhcp client altogether -DHCPCLIENT="dhcp3" -#DHCPCLIENT="udhcpc" - -# Set to one of the following: -# ext2 (recommended!) -# ext3 -# isofs (not yet supported) -ROOTFS="ext2" - -# Set to prioritized list of filesystems you want used on the stick -# (USB sticks have limited write count: avoid journalling filesystems) -# (SYSLINUX use only 8.3 filenames, so msdos might be better than vfat) -selectable_filesystems="ext2 vfat" - -# If enabled, this will get get attached to /disk (needed by FLASHYBRID) -diskdev_host="${diskhost:+$diskhost:$baseworkdir/flashybrid-off}" -diskdev_target="$diskdev_host" -diskfs="nfs" - -# Ordered list of all APT sources (if different from DEFAULT and HOST) -#aptsources="base security jones" - -# URI and components of base APT repository as seen on target (if different from host setup) -# (remember to enable nfs if using "file:/pub/...") -aptsource_base_target="http://ftp.debian.org/debian/" -#aptsource_base_target="file:/pub/mirrors/debian/" - -aptsource_security_target="http://security.debian.org/" - -# Device name (or NFS share) to mount to "/pub" (if different from HOST) -pubdev_target="$diskhost:/pub" - -# Define this to redirect all log output to another host -loghost="$loghost" - -# Packages to install beyond the bare minimum -aptitude_install="initrd-tools" -aptitude_kernel_install="kernel-image-2.4-386" -aptitude_install_custom="mc less ssh syslog-ng" - -#This one needs to be installed separately from daemons -#aptitude_install_custom="$aptitude_install_custom file-rc" - -# Boot helper apps -aptitude_install_custom="$aptitude_install_custom memtest86+ udev usbutils resolvconf module-init-tools" - -# Admin helper apps (e.g. for reading gzip'ed files through mc) -aptitude_install_custom="$aptitude_install_custom mime-support file" - -# You probably won't need this (needed for framebuffer-based infoscreen) -#aptitude_install_custom="$aptitude_install ppmtofb netpbm python" - -# You probably won't need this (needed for X11-based infoscreen) -# (libxmuu1 is for locally added "xset" binary taken from xbase-clients) -aptitude_install_custom="$aptitude_install_custom xfonts-base xserver-xfree86 libxmuu1 launchtool unclutter qiv" -diskstore="$flashybrid_diskstore /usr/X11R6/man" - -# Kernel modules to load at boot time -modules_load="via-rhine" - -# Uncomment this to ease tracing configuration tweaks -trace="yes" diff --git a/config-dgih.diff b/config-dgih.diff deleted file mode 100644 index dc4dd5d..0000000 --- a/config-dgih.diff +++ /dev/null @@ -1,43 +0,0 @@ ---- config-dgih 2005-01-23 13:32:41.000000000 +0100 -+++ config-chr.tmp 2005-08-17 20:47:27.000000000 +0200 -@@ -1,28 +1,23 @@ - targettemp_fat="$baseworkdir/tmpfatroot" - targettemp_isofs="$baseworkdir/tmpisoroot" - targetoffline="$baseworkdir/flashybrid-off" - --# Uncomment these to work on actual drive (instead of dir) --mountpoint="/mnt/usbstick" --# FIXME: Handle device here being different from target system --usbdevice="/dev/sda" --usbdevice_grub="hd0" -- - # Set to one or more (space-delimited, max 4) of these: - # SYSLINUX - # ISOLINUX (not yet implemented) -@@ -57,22 +52,31 @@ - - # APT repository for initial setup (and possibly more) - # (use file:/pub/... and enable nfs - sppedy and works in chroot too) --mirror="http://ftp.debian.org/debian/" -+#mirror="http://192.168.102.252/mirrors/debian/" -+mirror="file:/pub/mirrors/debian/" - - loghost="$loghost" - - # Packages to install beyond the bare minimum --aptitude_install="initrd-tools" --aptitude_kernel_install="kernel-image-2.4-386" --aptitude_install_custom="mc less ssh" -+aptitude_install="initrd-tools yaird" -+#aptitude_kernel_install="kernel-image-2.6.12+debianlogo+squashfs+wrr" -+aptitude_kernel_install="kernel-image-2.6.12+debianlogo+squashfs+wrr" -+aptitude_install_custom="mc less ssh syslog-ng console-log" -+ -+#This one needs to be installed separately from daemons -+#aptitude_install_custom="$aptitude_install_custom file-rc" - - # Boot helper apps --aptitude_install_custom="$aptitude_install_custom discover memtest86+" -+aptitude_install_custom="$aptitude_install_custom memtest86+ udev usbutils ifplugd ifrename resolvconf module-init-tools" - - # Admin helper apps (e.g. for reading gzip'ed files through mc) diff --git a/config-homebase b/config-homebase deleted file mode 100644 index da593c9..0000000 --- a/config-homebase +++ /dev/null @@ -1,111 +0,0 @@ -#!/bin/sh - -# Name and (if wanted) default IP address of system -hostname="tomos" -domainname="homebase.dk" -#hostdefaultip="192.168.133.133" - -suite="etch" -# Suppress non-existing sid security updates -aptsources="base" - -baseworkdir="/home/TOMOS" - -# Hosts used for several services like syslog and network filesystems -diskhost="" -loghost="log" - -dns_server="192.168.1.2" - -targettemp="$baseworkdir/tmproot" -targettemp_fat="$baseworkdir/tmpfatroot" -targettemp_isofs="$baseworkdir/tmpisoroot" -targetoffline="$baseworkdir/flashybrid-off" - -# We have plenty of room, so use flashybrid only for ramstore -#flashybrid_diskstore=" -#" - -# Set to one or more (space-delimited, max 4) of these: -# SYSLINUX -# ISOLINUX (not yet implemented) -# GRUB (installs, but fails to load 2nd stage - please help! ) -# LILO (not yet implemented) -# First one will be used by default (hit "a" at MBR promt to select) -# FIXME: fdisk code unfinished: leave it as "SYSLINUX GRUB" for now! -#bootloaders="SYSLINUX GRUB" -bootloaders="GRUB" -#bootloaders="SYSLINUX" - -# Uncomment one or more of these -# (DFSBUILD, MKINITRD_CD and MKINITRD_NETBOOT not yet implemented) -FLASHYBRID="yes" -#DFSBUILD="yes" -#MKINITRD_CD="yes" -#MKINITRD_NETBOOT="yes" - -# Keep all stored files locally, even when using flashybrid -flashybrid_diskstore="" - -# Set this empty to avoid dhcp client altogether -DHCPCLIENT="dhcp3" -#DHCPCLIENT="udhcpc" - -# Set to one of the following: -# ext2 (recommended!) -# ext3 -# isofs (not yet supported) -ROOTFS="ext2" - -# Set to prioritized list of filesystems you want used on the stick -# (USB sticks have limited write count: avoid journalling filesystems) -# (SYSLINUX use only 8.3 filenames, so msdos might be better than vfat) -selectable_filesystems="ext2 vfat" - -# If enabled, this will get get attached to /disk (needed by FLASHYBRID) -diskdev_host="${diskhost:+$diskhost:$baseworkdir/flashybrid-off}" -diskdev_target="$diskdev_host" -diskfs="nfs" - -# Ordered list of all APT sources (if different from DEFAULT and HOST) -#aptsources="base security jones" - -# URI and components of base APT repository as seen on target (if different from host setup) -# (remember to enable nfs if using "file:/pub/...") -aptsource_base_target="http://proxy:9999/" - -aptsource_security_target="http://proxy:9999/security" - -# Device name (or NFS share) to mount to "/pub" (if different from HOST) -#pubdev_target="$diskhost:/pub" - -# Define this to redirect all log output to another host -loghost="$loghost" - -# Packages to install beyond the bare minimum -aptitude_install="initramfs-tools" -#aptitude_kernel_install="kernel-image-2.4-386" -kernel_majorver="2.6" -kernel_minorver="16" -kernel_abi="2" -kernel_subarch="486" -#FIXME: Resolve name automagically -kernel_name="${kernel_majorver}.${kernel_minorver}-${kernel_abi}-${kernel_subarch}" -aptitude_kernel_install="linux-image-${kernel_majorver}-${kernel_subarch}" - -#This one needs to be installed separately from daemons -#aptitude_install_custom="$aptitude_install_custom file-rc" - -aptsources="$aptsources jones" -aptsource_jones_components="kernels boot voip mediastreaming" - -addons="boot net admin acpi disk" - -# We want from a booted stick to be able to generate a yaird initrd for booting on firewire -aptitude_install_custom="yaird" - -# Kernel modules to load at boot time -modules_load="8139too" - -# Uncomment this to ease tracing configuration tweaks -trace="yes" diff --git a/config-jones b/config-jones deleted file mode 100644 index ff18f24..0000000 --- a/config-jones +++ /dev/null @@ -1,110 +0,0 @@ -#!/bin/sh - -# Name and (if wanted) default IP address of system -hostname="perilin" -domainname="jones.dk" -#hostdefaultip="192.168.133.133" - -suite="sid" -# Suppress non-existing sid security updates -aptsources="base" - -baseworkdir="/home/PERILIN" - -# Hosts used for several services like syslog and network filesystems -diskhost="hykrion" -loghost="hysbald" - -dns_server="192.168.222.252" - -targettemp="$baseworkdir/tmproot" -targettemp_fat="$baseworkdir/tmpfatroot" -targettemp_isofs="$baseworkdir/tmpisoroot" -targetoffline="$baseworkdir/flashybrid-off" - -# Set to one or more (space-delimited, max 4) of these: -# SYSLINUX -# ISOLINUX (not yet implemented) -# GRUB (installs, but fails to load 2nd stage - please help! ) -# LILO (not yet implemented) -# First one will be used by default (hit "a" at MBR promt to select) -# FIXME: fdisk code unfinished: leave it as "SYSLINUX GRUB" for now! -#bootloaders="SYSLINUX GRUB" -bootloaders="GRUB" - -# Uncomment one or more of these -# (DFSBUILD, MKINITRD_CD and MKINITRD_NETBOOT not yet implemented) -FLASHYBRID="yes" -#DFSBUILD="yes" -#MKINITRD_CD="yes" -#MKINITRD_NETBOOT="yes" - -# Set this empty to avoid dhcp client altogether -DHCPCLIENT="dhcp3" -#DHCPCLIENT="udhcpc" - -# Set to one of the following: -# ext2 (recommended!) -# ext3 -# isofs (not yet supported) -ROOTFS="ext2" - -# Set to prioritized list of filesystems you want used on the stick -# (USB sticks have limited write count: avoid journalling filesystems) -# (SYSLINUX use only 8.3 filenames, so msdos might be better than vfat) -selectable_filesystems="ext2 vfat" - -# If enabled, this will get get attached to /disk (needed by FLASHYBRID) -diskdev_host="${diskhost:+$diskhost:$baseworkdir/flashybrid-off}" -diskdev_target="$diskdev_host" -diskfs="nfs" - -# Ordered list of all APT sources (if different from DEFAULT and HOST) -#aptsources="base security jones" - -# URI and components of base APT repository as seen on target (if different from host setup) -# (remember to enable nfs if using "file:/pub/...") -#aptsource_base_target="http://ftp.debian.org/debian/" -aptsource_base_target="file:/pub/mirrors/debian/" - -aptsource_security_target="http://security.debian.org/" - -# Device name (or NFS share) to mount to "/pub" (if different from HOST) -pubdev_target="$diskhost:/pub" - -# Define this to redirect all log output to another host -loghost="$loghost" - -# Packages to install beyond the bare minimum -aptitude_install="initramfs-tools" -#aptitude_kernel_install="kernel-image-2.4-386" -aptitude_kernel_install="kernel-image-2.6-386" -aptitude_install_custom="mc less openssh-client openssh-server syslog-ng ifupdown" - -#This one needs to be installed separately from daemons -#aptitude_install_custom="$aptitude_install_custom file-rc" - -# Boot helper apps -aptitude_install_custom="$aptitude_install_custom memtest86+ udev usbutils resolvconf module-init-tools" - -# Admin helper apps (e.g. for reading gzip'ed files through mc) -#aptitude_install_custom="$aptitude_install_custom mime-support file" -aptitude_install_custom="$aptitude_install_custom mime-support" - -# You probably won't need this (needed for framebuffer-based infoscreen) -#aptitude_install_custom="$aptitude_install ppmtofb netpbm python" - -# You probably won't need this (needed for X11-based infoscreen) -# (libxmuu1 is for locally added "xset" binary taken from xbase-clients) -#aptitude_install_custom="$aptitude_install_custom xfonts-base xserver-xfree86 libxmuu1 launchtool unclutter qiv" -#diskstore="$flashybrid_diskstore /usr/X11R6/man" - -# Shorewall firewall -#aptitude_install_custom="$aptitude_install_custom shorewall wget wipl-daemon dhcp3-server iptstate" -aptitude_install_custom="$aptitude_install_custom tcpd shorewall wget dhcp3-server iptstate br2684ctl" - -# Kernel modules to load at boot time -modules_load="via-rhine" - -# Uncomment this to ease tracing configuration tweaks -trace="yes" diff --git a/config-lasse b/config-lasse deleted file mode 100644 index 9c43d56..0000000 --- a/config-lasse +++ /dev/null @@ -1,108 +0,0 @@ -#!/bin/sh - -# Name and (if wanted) default IP address of system -hostname="georg" -domainname="jones.dk" -#hostdefaultip="192.168.133.133" - -suite="sid" -# Suppress non-existing sid security updates -aptsources="base" - -baseworkdir="/home/GEORG" - -# Hosts used for several services like syslog and network filesystems -diskhost="192.168.102.159" -loghost="hysbald" - -dns_server="192.168.102.252" - -targettemp="$baseworkdir/tmproot" -targettemp_fat="$baseworkdir/tmpfatroot" -targettemp_isofs="$baseworkdir/tmpisoroot" -targetoffline="$baseworkdir/flashybrid-off" - -# We have plenty of room, so use flashybrid only for ramstore -#flashybrid_diskstore=" -#" - -# Set to one or more (space-delimited, max 4) of these: -# SYSLINUX -# ISOLINUX (not yet implemented) -# GRUB (installs, but fails to load 2nd stage - please help! ) -# LILO (not yet implemented) -# First one will be used by default (hit "a" at MBR promt to select) -# FIXME: fdisk code unfinished: leave it as "SYSLINUX GRUB" for now! -#bootloaders="SYSLINUX GRUB" -bootloaders="GRUB" -#bootloaders="SYSLINUX" - -# Uncomment one or more of these -# (DFSBUILD, MKINITRD_CD and MKINITRD_NETBOOT not yet implemented) -FLASHYBRID="yes" -#DFSBUILD="yes" -#MKINITRD_CD="yes" -#MKINITRD_NETBOOT="yes" - -# Set this empty to avoid dhcp client altogether -DHCPCLIENT="dhcp3" -#DHCPCLIENT="udhcpc" - -# Set to one of the following: -# ext2 (recommended!) -# ext3 -# isofs (not yet supported) -ROOTFS="ext2" - -# Set to prioritized list of filesystems you want used on the stick -# (USB sticks have limited write count: avoid journalling filesystems) -# (SYSLINUX use only 8.3 filenames, so msdos might be better than vfat) -selectable_filesystems="ext2 vfat" - -# If enabled, this will get get attached to /disk (needed by FLASHYBRID) -diskdev_host="${diskhost:+$diskhost:$baseworkdir/flashybrid-off}" -diskdev_target="$diskdev_host" -diskfs="nfs" - -# Ordered list of all APT sources (if different from DEFAULT and HOST) -#aptsources="base security jones" - -# URI and components of base APT repository as seen on target (if different from host setup) -# (remember to enable nfs if using "file:/pub/...") -#aptsource_base_target="http://ftp.debian.org/debian/" -aptsource_base_target="file:/pub/mirrors/debian/" - -aptsource_security_target="http://security.debian.org/" - -# Device name (or NFS share) to mount to "/pub" (if different from HOST) -pubdev_target="$diskhost:/pub" - -# Define this to redirect all log output to another host -loghost="$loghost" - -# Packages to install beyond the bare minimum -aptitude_install="initramfs-tools" -#aptitude_kernel_install="kernel-image-2.4-386" -kernel_majorver="2.6" -kernel_minorver="16" -kernel_abi="2" -kernel_subarch="486" -#FIXME: Resolve name automagically -kernel_name="${kernel_majorver}.${kernel_minorver}-${kernel_abi}-${kernel_subarch}" -aptitude_kernel_install="linux-image-${kernel_majorver}-${kernel_subarch}" - -#This one needs to be installed separately from daemons -#aptitude_install_custom="$aptitude_install_custom file-rc" - -aptsources="$aptsources jones" -aptsource_jones_components="kernels boot voip mediastreaming" - -addons="boot net admin x11phonehome" - -aptitude_install_custom="pwc-modules-${kernel_name} spca5xx-modules-${kernel_name}" - -# Kernel modules to load at boot time -modules_load="8139too" - -# Uncomment this to ease tracing configuration tweaks -trace="yes" diff --git a/host b/host new file mode 100644 index 0000000..cb34c14 --- /dev/null +++ b/host @@ -0,0 +1 @@ +homebase diff --git a/host.cfg b/host.cfg deleted file mode 100644 index 5a6dc66..0000000 --- a/host.cfg +++ /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/hosts/homebase b/hosts/homebase new file mode 100644 index 0000000..5a6dc66 --- /dev/null +++ b/hosts/homebase @@ -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 b/target new file mode 100644 index 0000000..cb34c14 --- /dev/null +++ b/target @@ -0,0 +1 @@ +homebase diff --git a/target.cfg b/target.cfg deleted file mode 120000 index 9bea7d1..0000000 --- a/target.cfg +++ /dev/null @@ -1 +0,0 @@ -config-homebase \ No newline at end of file diff --git a/targets/chr b/targets/chr new file mode 100644 index 0000000..0d66ca4 --- /dev/null +++ b/targets/chr @@ -0,0 +1,101 @@ +#!/bin/sh + +# Name and (if wanted) default IP address of system +hostname="usbstick" +#domainname="example.tld" +domainname="jones.dk" +#hostdefaultip="192.168.133.133" + +suite="sarge" + +baseworkdir="/home/CHR" + +diskhost="hykrion.jones.dk" +loghost="192.168.102.252" + +targettemp="$baseworkdir/tmproot" +targettemp_fat="$baseworkdir/tmpfatroot" +targettemp_isofs="$baseworkdir/tmpisoroot" +targetoffline="$baseworkdir/flashybrid-off" + +# Set to one or more (space-delimited, max 4) of these: +# SYSLINUX +# ISOLINUX (not yet implemented) +# GRUB (installs, but fails to load 2nd stage - please help! ) +# LILO (not yet implemented) +# First one will be used by default (hit "a" at MBR promt to select) +# FIXME: fdisk code unfinished: leave it as "SYSLINUX GRUB" for now! +#bootloaders="SYSLINUX GRUB" +bootloaders="GRUB" + +# Uncomment one or more of these +# (DFSBUILD, MKINITRD_CD and MKINITRD_NETBOOT not yet implemented) +FLASHYBRID="yes" +#DFSBUILD="yes" +#MKINITRD_CD="yes" +#MKINITRD_NETBOOT="yes" + +# Set to one of the following: +# ext2 (recommended!) +# ext3 +# isofs (not yet supported) +ROOTFS="ext2" + +# Set to prioritized list of filesystems you want used on the stick +# (USB sticks have limited write count: avoid journalling filesystems) +# (SYSLINUX use only 8.3 filenames, so msdos might be better than vfat) +selectable_filesystems="ext2 vfat" + +# If enabled, this will get get attached to /disk (needed by FLASHYBRID) +diskdev_host="${diskhost:+$diskhost:$baseworkdir/flashybrid-off}" +diskdev_target="$diskdev_host" +diskfs="nfs" + +# APT repository for initial setup (and possibly more) +# (use file:/pub/... and enable nfs - sppedy and works in chroot too) +#mirror="http://192.168.102.252/mirrors/debian/" +mirror="file:/pub/mirrors/debian/" + +mirror_addon="http://debian.jones.dk/" +mirror_addon_target="kernels misc" + +# If enabled, this will get attached to /pub +#pubdev_host="${diskhost:+$diskhost:/pub}" +pubdev_host="192.168.102.252:/pub" +pubdev_target="$pubdev_host" +pubfs="nfs" + +# Define this to redirect all log output to another host +loghost="$loghost" + +# Packages to install beyond the bare minimum +aptitude_install="initrd-tools yaird" +#aptitude_kernel_install="kernel-image-2.6.12+debianlogo+squashfs+wrr" +aptitude_kernel_install="kernel-image-2.6.12+debianlogo+squashfs+wrr" +aptitude_install_custom="mc less ssh syslog-ng console-log" + +#This one needs to be installed separately from daemons +#aptitude_install_custom="$aptitude_install_custom file-rc" + +# Boot helper apps +aptitude_install_custom="$aptitude_install_custom memtest86+ udev usbutils ifplugd ifrename resolvconf module-init-tools" + +# Admin helper apps (e.g. for reading gzip'ed files through mc) +aptitude_install_custom="$aptitude_install_custom mime-support file" + +# You probably won't need this (needed for framebuffer-based infoscreen) +#aptitude_install_custom="$aptitude_install ppmtofb netpbm python" + +# You probably won't need this (needed for X11-based infoscreen) +# (libxmuu1 is for locally added "xset" binary taken from xbase-clients) +#aptitude_install_custom="$aptitude_install xfonts-base xserver-xfree86 libxmuu1 launchtool unclutter qiv" +#diskstore="$flashybrid_diskstore /usr/X11R6/man" + +# Shorewall firewall +aptitude_install_custom="$aptitude_install_custom shorewall wget wipl-daemon dhcp3-server" + +# Kernel modules to load at boot time +modules_load="via-rhine" + +# Uncomment this to ease tracing configuration tweaks +trace="yes" diff --git a/targets/chr.diff b/targets/chr.diff new file mode 100644 index 0000000..3546565 --- /dev/null +++ b/targets/chr.diff @@ -0,0 +1,104 @@ +--- config-dgih 2005-09-29 11:56:48.000000000 +0200 ++++ config-chr 2005-09-29 10:43:44.000000000 +0200 +@@ -1,19 +1,17 @@ + #!/bin/sh + + # Name and (if wanted) default IP address of system +-hostname="vagabonden" +-domainname="dgi-huset.dk" ++hostname="usbstick" ++#domainname="example.tld" ++domainname="jones.dk" + #hostdefaultip="192.168.133.133" + + suite="sarge" + +-baseworkdir="/home/VAGABONDEN" ++baseworkdir="/home/CHR" + +-# Hosts used for several services like syslog and network filesystems +-diskhost="lager" +-loghost="log" +- +-dns_server="192.168.101.2" ++diskhost="hykrion.jones.dk" ++loghost="192.168.102.252" + + targettemp="$baseworkdir/tmproot" + targettemp_fat="$baseworkdir/tmpfatroot" +@@ -37,10 +35,6 @@ + #MKINITRD_CD="yes" + #MKINITRD_NETBOOT="yes" + +-# Set this empty to avoid dhcp client altogether +-DHCPCLIENT="dhcp3" +-#DHCPCLIENT="udhcpc" +- + # Set to one of the following: + # ext2 (recommended!) + # ext3 +@@ -57,32 +51,34 @@ + diskdev_target="$diskdev_host" + diskfs="nfs" + +-# Ordered list of all APT sources (if different from DEFAULT and HOST) +-#aptsources="base security jones" +- +-# URI and components of base APT repository as seen on target (if different from host setup) +-# (remember to enable nfs if using "file:/pub/...") +-aptsource_base_target="http://ftp.debian.org/debian/" +-#aptsource_base_target="file:/pub/mirrors/debian/" +- +-aptsource_security_target="http://security.debian.org/" +- +-# Device name (or NFS share) to mount to "/pub" (if different from HOST) +-pubdev_target="$diskhost:/pub" ++# APT repository for initial setup (and possibly more) ++# (use file:/pub/... and enable nfs - sppedy and works in chroot too) ++#mirror="http://192.168.102.252/mirrors/debian/" ++mirror="file:/pub/mirrors/debian/" ++ ++mirror_addon="http://debian.jones.dk/" ++mirror_addon_target="kernels misc" ++ ++# If enabled, this will get attached to /pub ++#pubdev_host="${diskhost:+$diskhost:/pub}" ++pubdev_host="192.168.102.252:/pub" ++pubdev_target="$pubdev_host" ++pubfs="nfs" + + # Define this to redirect all log output to another host + loghost="$loghost" + + # Packages to install beyond the bare minimum +-aptitude_install="initrd-tools" +-aptitude_kernel_install="kernel-image-2.4-386" +-aptitude_install_custom="mc less ssh syslog-ng" ++aptitude_install="initrd-tools yaird" ++#aptitude_kernel_install="kernel-image-2.6.12+debianlogo+squashfs+wrr" ++aptitude_kernel_install="kernel-image-2.6.12+debianlogo+squashfs+wrr" ++aptitude_install_custom="mc less ssh syslog-ng console-log" + + #This one needs to be installed separately from daemons + #aptitude_install_custom="$aptitude_install_custom file-rc" + + # Boot helper apps +-aptitude_install_custom="$aptitude_install_custom memtest86+ udev usbutils resolvconf module-init-tools" ++aptitude_install_custom="$aptitude_install_custom memtest86+ udev usbutils ifplugd ifrename resolvconf module-init-tools" + + # Admin helper apps (e.g. for reading gzip'ed files through mc) + aptitude_install_custom="$aptitude_install_custom mime-support file" +@@ -92,8 +88,11 @@ + + # You probably won't need this (needed for X11-based infoscreen) + # (libxmuu1 is for locally added "xset" binary taken from xbase-clients) +-aptitude_install_custom="$aptitude_install_custom xfonts-base xserver-xfree86 libxmuu1 launchtool unclutter qiv" +-diskstore="$flashybrid_diskstore /usr/X11R6/man" ++#aptitude_install_custom="$aptitude_install xfonts-base xserver-xfree86 libxmuu1 launchtool unclutter qiv" ++#diskstore="$flashybrid_diskstore /usr/X11R6/man" ++ ++# Shorewall firewall ++aptitude_install_custom="$aptitude_install_custom shorewall wget wipl-daemon dhcp3-server" + + # Kernel modules to load at boot time + modules_load="via-rhine" diff --git a/targets/dgih b/targets/dgih new file mode 100644 index 0000000..5daa648 --- /dev/null +++ b/targets/dgih @@ -0,0 +1,102 @@ +#!/bin/sh + +# Name and (if wanted) default IP address of system +hostname="vagabonden" +domainname="dgi-huset.dk" +#hostdefaultip="192.168.133.133" + +suite="sarge" + +baseworkdir="/home/VAGABONDEN" + +# Hosts used for several services like syslog and network filesystems +diskhost="lager" +loghost="log" + +dns_server="192.168.101.2" + +targettemp="$baseworkdir/tmproot" +targettemp_fat="$baseworkdir/tmpfatroot" +targettemp_isofs="$baseworkdir/tmpisoroot" +targetoffline="$baseworkdir/flashybrid-off" + +# Set to one or more (space-delimited, max 4) of these: +# SYSLINUX +# ISOLINUX (not yet implemented) +# GRUB (installs, but fails to load 2nd stage - please help! ) +# LILO (not yet implemented) +# First one will be used by default (hit "a" at MBR promt to select) +# FIXME: fdisk code unfinished: leave it as "SYSLINUX GRUB" for now! +#bootloaders="SYSLINUX GRUB" +bootloaders="GRUB" + +# Uncomment one or more of these +# (DFSBUILD, MKINITRD_CD and MKINITRD_NETBOOT not yet implemented) +FLASHYBRID="yes" +#DFSBUILD="yes" +#MKINITRD_CD="yes" +#MKINITRD_NETBOOT="yes" + +# Set this empty to avoid dhcp client altogether +DHCPCLIENT="dhcp3" +#DHCPCLIENT="udhcpc" + +# Set to one of the following: +# ext2 (recommended!) +# ext3 +# isofs (not yet supported) +ROOTFS="ext2" + +# Set to prioritized list of filesystems you want used on the stick +# (USB sticks have limited write count: avoid journalling filesystems) +# (SYSLINUX use only 8.3 filenames, so msdos might be better than vfat) +selectable_filesystems="ext2 vfat" + +# If enabled, this will get get attached to /disk (needed by FLASHYBRID) +diskdev_host="${diskhost:+$diskhost:$baseworkdir/flashybrid-off}" +diskdev_target="$diskdev_host" +diskfs="nfs" + +# Ordered list of all APT sources (if different from DEFAULT and HOST) +#aptsources="base security jones" + +# URI and components of base APT repository as seen on target (if different from host setup) +# (remember to enable nfs if using "file:/pub/...") +aptsource_base_target="http://ftp.debian.org/debian/" +#aptsource_base_target="file:/pub/mirrors/debian/" + +aptsource_security_target="http://security.debian.org/" + +# Device name (or NFS share) to mount to "/pub" (if different from HOST) +pubdev_target="$diskhost:/pub" + +# Define this to redirect all log output to another host +loghost="$loghost" + +# Packages to install beyond the bare minimum +aptitude_install="initrd-tools" +aptitude_kernel_install="kernel-image-2.4-386" +aptitude_install_custom="mc less ssh syslog-ng" + +#This one needs to be installed separately from daemons +#aptitude_install_custom="$aptitude_install_custom file-rc" + +# Boot helper apps +aptitude_install_custom="$aptitude_install_custom memtest86+ udev usbutils resolvconf module-init-tools" + +# Admin helper apps (e.g. for reading gzip'ed files through mc) +aptitude_install_custom="$aptitude_install_custom mime-support file" + +# You probably won't need this (needed for framebuffer-based infoscreen) +#aptitude_install_custom="$aptitude_install ppmtofb netpbm python" + +# You probably won't need this (needed for X11-based infoscreen) +# (libxmuu1 is for locally added "xset" binary taken from xbase-clients) +aptitude_install_custom="$aptitude_install_custom xfonts-base xserver-xfree86 libxmuu1 launchtool unclutter qiv" +diskstore="$flashybrid_diskstore /usr/X11R6/man" + +# Kernel modules to load at boot time +modules_load="via-rhine" + +# Uncomment this to ease tracing configuration tweaks +trace="yes" diff --git a/targets/dgih.diff b/targets/dgih.diff new file mode 100644 index 0000000..dc4dd5d --- /dev/null +++ b/targets/dgih.diff @@ -0,0 +1,43 @@ +--- config-dgih 2005-01-23 13:32:41.000000000 +0100 ++++ config-chr.tmp 2005-08-17 20:47:27.000000000 +0200 +@@ -1,28 +1,23 @@ + targettemp_fat="$baseworkdir/tmpfatroot" + targettemp_isofs="$baseworkdir/tmpisoroot" + targetoffline="$baseworkdir/flashybrid-off" + +-# Uncomment these to work on actual drive (instead of dir) +-mountpoint="/mnt/usbstick" +-# FIXME: Handle device here being different from target system +-usbdevice="/dev/sda" +-usbdevice_grub="hd0" +- + # Set to one or more (space-delimited, max 4) of these: + # SYSLINUX + # ISOLINUX (not yet implemented) +@@ -57,22 +52,31 @@ + + # APT repository for initial setup (and possibly more) + # (use file:/pub/... and enable nfs - sppedy and works in chroot too) +-mirror="http://ftp.debian.org/debian/" ++#mirror="http://192.168.102.252/mirrors/debian/" ++mirror="file:/pub/mirrors/debian/" + + loghost="$loghost" + + # Packages to install beyond the bare minimum +-aptitude_install="initrd-tools" +-aptitude_kernel_install="kernel-image-2.4-386" +-aptitude_install_custom="mc less ssh" ++aptitude_install="initrd-tools yaird" ++#aptitude_kernel_install="kernel-image-2.6.12+debianlogo+squashfs+wrr" ++aptitude_kernel_install="kernel-image-2.6.12+debianlogo+squashfs+wrr" ++aptitude_install_custom="mc less ssh syslog-ng console-log" ++ ++#This one needs to be installed separately from daemons ++#aptitude_install_custom="$aptitude_install_custom file-rc" + + # Boot helper apps +-aptitude_install_custom="$aptitude_install_custom discover memtest86+" ++aptitude_install_custom="$aptitude_install_custom memtest86+ udev usbutils ifplugd ifrename resolvconf module-init-tools" + + # Admin helper apps (e.g. for reading gzip'ed files through mc) diff --git a/targets/homebase b/targets/homebase new file mode 100644 index 0000000..da593c9 --- /dev/null +++ b/targets/homebase @@ -0,0 +1,111 @@ +#!/bin/sh + +# Name and (if wanted) default IP address of system +hostname="tomos" +domainname="homebase.dk" +#hostdefaultip="192.168.133.133" + +suite="etch" +# Suppress non-existing sid security updates +aptsources="base" + +baseworkdir="/home/TOMOS" + +# Hosts used for several services like syslog and network filesystems +diskhost="" +loghost="log" + +dns_server="192.168.1.2" + +targettemp="$baseworkdir/tmproot" +targettemp_fat="$baseworkdir/tmpfatroot" +targettemp_isofs="$baseworkdir/tmpisoroot" +targetoffline="$baseworkdir/flashybrid-off" + +# We have plenty of room, so use flashybrid only for ramstore +#flashybrid_diskstore=" +#" + +# Set to one or more (space-delimited, max 4) of these: +# SYSLINUX +# ISOLINUX (not yet implemented) +# GRUB (installs, but fails to load 2nd stage - please help! ) +# LILO (not yet implemented) +# First one will be used by default (hit "a" at MBR promt to select) +# FIXME: fdisk code unfinished: leave it as "SYSLINUX GRUB" for now! +#bootloaders="SYSLINUX GRUB" +bootloaders="GRUB" +#bootloaders="SYSLINUX" + +# Uncomment one or more of these +# (DFSBUILD, MKINITRD_CD and MKINITRD_NETBOOT not yet implemented) +FLASHYBRID="yes" +#DFSBUILD="yes" +#MKINITRD_CD="yes" +#MKINITRD_NETBOOT="yes" + +# Keep all stored files locally, even when using flashybrid +flashybrid_diskstore="" + +# Set this empty to avoid dhcp client altogether +DHCPCLIENT="dhcp3" +#DHCPCLIENT="udhcpc" + +# Set to one of the following: +# ext2 (recommended!) +# ext3 +# isofs (not yet supported) +ROOTFS="ext2" + +# Set to prioritized list of filesystems you want used on the stick +# (USB sticks have limited write count: avoid journalling filesystems) +# (SYSLINUX use only 8.3 filenames, so msdos might be better than vfat) +selectable_filesystems="ext2 vfat" + +# If enabled, this will get get attached to /disk (needed by FLASHYBRID) +diskdev_host="${diskhost:+$diskhost:$baseworkdir/flashybrid-off}" +diskdev_target="$diskdev_host" +diskfs="nfs" + +# Ordered list of all APT sources (if different from DEFAULT and HOST) +#aptsources="base security jones" + +# URI and components of base APT repository as seen on target (if different from host setup) +# (remember to enable nfs if using "file:/pub/...") +aptsource_base_target="http://proxy:9999/" + +aptsource_security_target="http://proxy:9999/security" + +# Device name (or NFS share) to mount to "/pub" (if different from HOST) +#pubdev_target="$diskhost:/pub" + +# Define this to redirect all log output to another host +loghost="$loghost" + +# Packages to install beyond the bare minimum +aptitude_install="initramfs-tools" +#aptitude_kernel_install="kernel-image-2.4-386" +kernel_majorver="2.6" +kernel_minorver="16" +kernel_abi="2" +kernel_subarch="486" +#FIXME: Resolve name automagically +kernel_name="${kernel_majorver}.${kernel_minorver}-${kernel_abi}-${kernel_subarch}" +aptitude_kernel_install="linux-image-${kernel_majorver}-${kernel_subarch}" + +#This one needs to be installed separately from daemons +#aptitude_install_custom="$aptitude_install_custom file-rc" + +aptsources="$aptsources jones" +aptsource_jones_components="kernels boot voip mediastreaming" + +addons="boot net admin acpi disk" + +# We want from a booted stick to be able to generate a yaird initrd for booting on firewire +aptitude_install_custom="yaird" + +# Kernel modules to load at boot time +modules_load="8139too" + +# Uncomment this to ease tracing configuration tweaks +trace="yes" diff --git a/targets/jones b/targets/jones new file mode 100644 index 0000000..ff18f24 --- /dev/null +++ b/targets/jones @@ -0,0 +1,110 @@ +#!/bin/sh + +# Name and (if wanted) default IP address of system +hostname="perilin" +domainname="jones.dk" +#hostdefaultip="192.168.133.133" + +suite="sid" +# Suppress non-existing sid security updates +aptsources="base" + +baseworkdir="/home/PERILIN" + +# Hosts used for several services like syslog and network filesystems +diskhost="hykrion" +loghost="hysbald" + +dns_server="192.168.222.252" + +targettemp="$baseworkdir/tmproot" +targettemp_fat="$baseworkdir/tmpfatroot" +targettemp_isofs="$baseworkdir/tmpisoroot" +targetoffline="$baseworkdir/flashybrid-off" + +# Set to one or more (space-delimited, max 4) of these: +# SYSLINUX +# ISOLINUX (not yet implemented) +# GRUB (installs, but fails to load 2nd stage - please help! ) +# LILO (not yet implemented) +# First one will be used by default (hit "a" at MBR promt to select) +# FIXME: fdisk code unfinished: leave it as "SYSLINUX GRUB" for now! +#bootloaders="SYSLINUX GRUB" +bootloaders="GRUB" + +# Uncomment one or more of these +# (DFSBUILD, MKINITRD_CD and MKINITRD_NETBOOT not yet implemented) +FLASHYBRID="yes" +#DFSBUILD="yes" +#MKINITRD_CD="yes" +#MKINITRD_NETBOOT="yes" + +# Set this empty to avoid dhcp client altogether +DHCPCLIENT="dhcp3" +#DHCPCLIENT="udhcpc" + +# Set to one of the following: +# ext2 (recommended!) +# ext3 +# isofs (not yet supported) +ROOTFS="ext2" + +# Set to prioritized list of filesystems you want used on the stick +# (USB sticks have limited write count: avoid journalling filesystems) +# (SYSLINUX use only 8.3 filenames, so msdos might be better than vfat) +selectable_filesystems="ext2 vfat" + +# If enabled, this will get get attached to /disk (needed by FLASHYBRID) +diskdev_host="${diskhost:+$diskhost:$baseworkdir/flashybrid-off}" +diskdev_target="$diskdev_host" +diskfs="nfs" + +# Ordered list of all APT sources (if different from DEFAULT and HOST) +#aptsources="base security jones" + +# URI and components of base APT repository as seen on target (if different from host setup) +# (remember to enable nfs if using "file:/pub/...") +#aptsource_base_target="http://ftp.debian.org/debian/" +aptsource_base_target="file:/pub/mirrors/debian/" + +aptsource_security_target="http://security.debian.org/" + +# Device name (or NFS share) to mount to "/pub" (if different from HOST) +pubdev_target="$diskhost:/pub" + +# Define this to redirect all log output to another host +loghost="$loghost" + +# Packages to install beyond the bare minimum +aptitude_install="initramfs-tools" +#aptitude_kernel_install="kernel-image-2.4-386" +aptitude_kernel_install="kernel-image-2.6-386" +aptitude_install_custom="mc less openssh-client openssh-server syslog-ng ifupdown" + +#This one needs to be installed separately from daemons +#aptitude_install_custom="$aptitude_install_custom file-rc" + +# Boot helper apps +aptitude_install_custom="$aptitude_install_custom memtest86+ udev usbutils resolvconf module-init-tools" + +# Admin helper apps (e.g. for reading gzip'ed files through mc) +#aptitude_install_custom="$aptitude_install_custom mime-support file" +aptitude_install_custom="$aptitude_install_custom mime-support" + +# You probably won't need this (needed for framebuffer-based infoscreen) +#aptitude_install_custom="$aptitude_install ppmtofb netpbm python" + +# You probably won't need this (needed for X11-based infoscreen) +# (libxmuu1 is for locally added "xset" binary taken from xbase-clients) +#aptitude_install_custom="$aptitude_install_custom xfonts-base xserver-xfree86 libxmuu1 launchtool unclutter qiv" +#diskstore="$flashybrid_diskstore /usr/X11R6/man" + +# Shorewall firewall +#aptitude_install_custom="$aptitude_install_custom shorewall wget wipl-daemon dhcp3-server iptstate" +aptitude_install_custom="$aptitude_install_custom tcpd shorewall wget dhcp3-server iptstate br2684ctl" + +# Kernel modules to load at boot time +modules_load="via-rhine" + +# Uncomment this to ease tracing configuration tweaks +trace="yes" diff --git a/targets/lasse b/targets/lasse new file mode 100644 index 0000000..9c43d56 --- /dev/null +++ b/targets/lasse @@ -0,0 +1,108 @@ +#!/bin/sh + +# Name and (if wanted) default IP address of system +hostname="georg" +domainname="jones.dk" +#hostdefaultip="192.168.133.133" + +suite="sid" +# Suppress non-existing sid security updates +aptsources="base" + +baseworkdir="/home/GEORG" + +# Hosts used for several services like syslog and network filesystems +diskhost="192.168.102.159" +loghost="hysbald" + +dns_server="192.168.102.252" + +targettemp="$baseworkdir/tmproot" +targettemp_fat="$baseworkdir/tmpfatroot" +targettemp_isofs="$baseworkdir/tmpisoroot" +targetoffline="$baseworkdir/flashybrid-off" + +# We have plenty of room, so use flashybrid only for ramstore +#flashybrid_diskstore=" +#" + +# Set to one or more (space-delimited, max 4) of these: +# SYSLINUX +# ISOLINUX (not yet implemented) +# GRUB (installs, but fails to load 2nd stage - please help! ) +# LILO (not yet implemented) +# First one will be used by default (hit "a" at MBR promt to select) +# FIXME: fdisk code unfinished: leave it as "SYSLINUX GRUB" for now! +#bootloaders="SYSLINUX GRUB" +bootloaders="GRUB" +#bootloaders="SYSLINUX" + +# Uncomment one or more of these +# (DFSBUILD, MKINITRD_CD and MKINITRD_NETBOOT not yet implemented) +FLASHYBRID="yes" +#DFSBUILD="yes" +#MKINITRD_CD="yes" +#MKINITRD_NETBOOT="yes" + +# Set this empty to avoid dhcp client altogether +DHCPCLIENT="dhcp3" +#DHCPCLIENT="udhcpc" + +# Set to one of the following: +# ext2 (recommended!) +# ext3 +# isofs (not yet supported) +ROOTFS="ext2" + +# Set to prioritized list of filesystems you want used on the stick +# (USB sticks have limited write count: avoid journalling filesystems) +# (SYSLINUX use only 8.3 filenames, so msdos might be better than vfat) +selectable_filesystems="ext2 vfat" + +# If enabled, this will get get attached to /disk (needed by FLASHYBRID) +diskdev_host="${diskhost:+$diskhost:$baseworkdir/flashybrid-off}" +diskdev_target="$diskdev_host" +diskfs="nfs" + +# Ordered list of all APT sources (if different from DEFAULT and HOST) +#aptsources="base security jones" + +# URI and components of base APT repository as seen on target (if different from host setup) +# (remember to enable nfs if using "file:/pub/...") +#aptsource_base_target="http://ftp.debian.org/debian/" +aptsource_base_target="file:/pub/mirrors/debian/" + +aptsource_security_target="http://security.debian.org/" + +# Device name (or NFS share) to mount to "/pub" (if different from HOST) +pubdev_target="$diskhost:/pub" + +# Define this to redirect all log output to another host +loghost="$loghost" + +# Packages to install beyond the bare minimum +aptitude_install="initramfs-tools" +#aptitude_kernel_install="kernel-image-2.4-386" +kernel_majorver="2.6" +kernel_minorver="16" +kernel_abi="2" +kernel_subarch="486" +#FIXME: Resolve name automagically +kernel_name="${kernel_majorver}.${kernel_minorver}-${kernel_abi}-${kernel_subarch}" +aptitude_kernel_install="linux-image-${kernel_majorver}-${kernel_subarch}" + +#This one needs to be installed separately from daemons +#aptitude_install_custom="$aptitude_install_custom file-rc" + +aptsources="$aptsources jones" +aptsource_jones_components="kernels boot voip mediastreaming" + +addons="boot net admin x11phonehome" + +aptitude_install_custom="pwc-modules-${kernel_name} spca5xx-modules-${kernel_name}" + +# Kernel modules to load at boot time +modules_load="8139too" + +# Uncomment this to ease tracing configuration tweaks +trace="yes" -- cgit v1.2.3