#
# SmartClient netboot-devel configuration
#

# read netboot config file
. /etc/smartclient/netboot

#
# adapt logging settings from netboot
#
Log_Level_Syslog=$LOG_NEVER
# don't write to special console
unset Log_Console_Target
Log_File="/var/log/smartclient/netboot-devel"

NETBOOT_DEVEL_DIR="/var/lib/smartclient/netboot-devel/"

BUILDSYSTEM_DIR="${NETBOOT_DEVEL_DIR}buildsystem_initrd/"
# buildsystem directory (for mklibs.py)
TMP_DIR="${BUILDSYSTEM_DIR}tmp/netboot-devel/"

# path to temporary initrd
INITRD_DIR="${TMP_DIR}initrd/"

TFTP_DIR="/var/lib/smartclient/tftpboot/"

#
# determines if initrd is created 
# as CPIO archive
# and/or
# as filesystem (FS)
#
INITRD_AS_CPIO="yes"
#INITRD_AS_FS="yes"

# size of initrd in KB (only required for INITRD_AS_FS)
#SIZE=4096
#SIZE=8192
#SIZE=9216
SIZE=10240

#
# not existing files (BINARIES and FILES) 
# will be copied into the initrd directory
# required shared libraries will be automatically added
#

#
# required BINARIES:
#
#
# dhcp-clients:
#   dhcpcd:    required for ethernet (eth)           (45k)
#   dhclient:  required for token-ring (tr)         (320k)
#
# dropbear:    SSH-daemon. Used instead of usr/sbin/sshd
#
# dialog:      needed by minilinunx
#
# filesystem tools: sbin/badblocks sbin/mkfs.ext2 sbin/fsck.ext2 sbin/tune2fs sbin/resize2fs:
#               better use the standard tools for this
#
# hwinfo:      hardware detection
#
# kexec:       can be removed, if kexec is not used   (135k)
#
# ldapmodify:  is now used by chroot
#
# rsync:       main program to transfer files
#
# sfdisk:      create partitions
#
# strace:      usefull for debugging           (80k)
#

#
# busybox 1.00.0
#
#   sbin/ifconfig (but doesn't support tokenring. needed?)
#
#   sbin/insmod bin/mount bin/stty
#

#
# busybox 1.13.2
#
# 	bin/umount:
#		BusyBox (1.1.0) doesn't support devices as parameter 
#               (eg. umount /dev/hda2)
#               working with BusyBox 1.13.2
# 	sbin/mkswap:
#		BusyBox (1.6.1) creates invalid swap partitions,
#              	if they are larger than 2 GB.
#		But seems to work with BB 1.13.2
#

#
# busybox 1.17.1
#
# date:         Busybox (1.6.1) date doesn't support nanoseconds (%N)
#               which are useful to compare the speed of rsync server.
#		        Working with Busybox 1.17.1
# expr:         Busybox expr (1.6.1) couldn't cope 
#               with long integers (> 11 digits), as used by timestamp.
#		        Working with Busybox 1.17.1
# halt:         busybox (1.1.0) doesn't support -f.
#		        Working with Busybox 1.17.1
# poweroff:     busybox (1.1.0) doesn't support -f
#		        Working with Busybox 1.17.1

# 20140113, Debian 7 (x86_64)
# sbin/mkfs.ext2 -> sbin/mke2fs
# sbin/fsck.ext2 -> sbin/e2fsck
# usr/local/sbin/getldapurl -> curl
#   curl nearly doubles the size of the initrd,
#   because it uses a lot of libraries.
#   However, getldapurl does not work with x86_64.
# sbin/parted is now included, but currently not used


BINARIES='bin/busybox \
    sbin/badblocks \
    usr/bin/curl \
    sbin/dhcpcd-bin sbin/dhclient \
    sbin/kexec \
    sbin/parted \
    sbin/sfdisk \
    sbin/mke2fs sbin/e2fsck sbin/tune2fs sbin/resize2fs \
    sbin/udevadm /sbin/udevd \
    usr/bin/dialog \
    usr/bin/rsync \
    usr/bin/strace \
    usr/sbin/dropbear \
    usr/sbin/hwinfo \
    lib/x86_64-linux-gnu/libnss_dns-*.so lib/x86_64-linux-gnu/libnss_files-*.so lib/x86_64-linux-gnu/libresolv-*.so'



# files will be copied to initrd
#
# terminfo is required by dialog
# etc/localtime is defines the local timezones.
#       it is copied from eg. usr/share/zoneinfo/Europe/Berlin
# 
#FILES='lib/terminfo/l/linux lib/terminfo/x/xterm etc/localtime'
#FILES='etc/localtime etc/group'
FILES='etc/localtime etc/group /etc/udev/ /lib/udev/ sbin/mkfs.ext* sbin/fsck.ext*'

# device files are now created by Debian MAKEDEV.
# Prior to this, following device files have been copied:
#FILES='usr/lib/kexec-tools/kexec_test dev/console dev/fb* dev/hda* dev/hdb* dev/null dev/ptmx dev/ram dev/ram? dev/random dev/rtc dev/sda* dev/tty dev/tty? dev/urandom dev/zero'


MODULES="\
af_packet.ko \
edd.ko \
ata_generic.ko ahci_platform.ko \
ata_piix.ko pata_acpi.ko pata_sis.ko sata_sis.ko sata_nv.ko BusLogic.ko \
mptbase.ko mptspi.ko mptscsih.ko scsi_transport_spi.ko \
megaraid_sas.ko  vmw_pvscsi.ko \
nls_iso8859-1.ko nls_iso8859-15.ko nls_utf8.ko \
3c59x.ko e100.ko e1000.ko e1000e.ko pcnet32.ko 8139too.ko r8169.ko tg3.ko forcedeth.ko bnx2.ko vmxnet3.ko \
usbcore.ko ehci-hcd.ko ohci-hcd.ko uhci-hcd.ko xhci-hcd.ko usbhid.ko hid-generic.ko"



# kernel 3.11.6: no longer available:
#   libata.ko
#   ahci.ko
#   libahci.ko


# kernel 3.1.10:
# no longer available:
#ide-core.ko
#ide-gd_mod.ko
#piix.ko

# kernel 2.6.31.8:
# no longer available:
#   jbd.ko mbcache.ko ext3.ko
#   ide-disk.ko
#   dock.ko \
#   scsi_mod.ko sd_mod.ko
#   crc-t10dif.ko
#   mii.ko \
#   libphy.ko
#   usbcore.ko (required again for 3.1.10)

# remarks
#   ide_gd_mod.ko: generic ATA/ATAPI disk driver (alias for ide-disk)



# VMware         -> pcnet32,          BusLogic (SCSI)
#                                     mptspi (LSI) (SCSI) depends mptbase, mptscsih, scsi_transport_spi



#
# Debeka
#
#                   netcard,          harddisk
#
# Dell           -> 3c59x,            piix
# S2             -> e100,             piix
# E600           -> e1000,            piix
# Esprimo SiS    -> r8169,            sata_sis pata_sis.ko (und sis5513 für 2. IDE Bus (CD-ROM))
# Esprimo NForce -> forcedeth,        sata_nv  (amd74xx könnte einen der 3 Controller ansteuern, sata_nv aber alle 3)
# HP dc5850      -> libphy.ko tg3.ko, dock.ko scsi_mod.ko libata.ko ahci.ko



#
# LVermGeo
#
# FSC SCENIC L   -> e100          piix
# FSC Esprimo P  -> tg3           ata_piix
# LIFEBOOK C1320 -> tg3,ipw2200   ata_piix (piix)
# Dell T610      -> bnx2 (+ Firmware) megaraid_sas

#bei Dell PC ata_piix.ko Modul wird die Platte als SDA erkannt und bespielt /dev/sda ist aber hda Ma 25.9.07 
# ggf. kann dies im BIOS umgestellt werden

# targets of the tftpboot directory
TARGETS="\
	tftpadmin@tftp01:/var/lib/smartclient/tftpboot/ \
	tftpadmin@tftp02:/var/lib/smartclient/tftpboot/"
