$(install_) -m 644 default_config $(usrshare)
$(install_) -m 644 shared_prog_vars $(usrshare)
$(install_) -m 755 nfs-kernel-server $(usrshare)
+ $(install_) -m 644 terminalserver_netboot_package.conf $(usrshare)
$(install_) -m 755 linuxrc $(usrshare)
$(install_) -m 755 udhcp-config.sh $(usrshare)
$(install_) -m 755 rdir $(usrshare)
--- /dev/null
+#!/bin/sh
+
+. /etc/grml/sh-lib
+SHARED_PROG_VARS_="/usr/share/grml-terminalserver/shared_prog_vars"
+isExistent $SHARED_PROG_VARS_ die
+. $SHARED_PROG_VARS_
+
+function actionPkg
+{
+ local tmp_=`mktemp -td terminalserver_grub.XXXXXX` || die "could not create tmpfile"
+ local version_="`cat /etc/grml_version`"
+ version_=${version_%% *}
+ local path_="$tmp_/grml_netboot_package_$version_"
+ mkdir $path_
+
+ cp $NETBOOT_PACKAGE_CONF_FILE_ $CONFIG_
+ echo "executing grml-terminalserver-config initrd"
+ grml-terminalserver-config initrd
+
+ # tftpd config
+ grml-terminalserver config tftp
+ cp -r $TFTPD_DATA_DIR_ $path_
+
+ # grub
+ awk '/ on$/{print $1}' $GRUB_NIC_CONF_ >$path_/grub_enabled_nics
+ grml-terminalserver-config grubConf $path_/grub_enabled_nics
+ cp $PATH_/grub.img $path_
+
+ pushd $tmp_
+ tar cjf grml_netboot_package_${version_}.tar.bz2 $path_
+ popd
+ mv -b $tmp_/grml_netboot_package_${version_}.tar.bz2 .
+ rm -rf $tmp_
+}
+
+checkRoot die "You have to be root to use this program"
+disableSyslog
+
+actionPkg
* changed default value for NAT_INTERFACE_ from none to ""
* introduced iptables as a seperate configurable service within
grml-terminalserver
+ * adding create_netboot script to examples
- -- Michael Gebetsroither <gebi@grml.org> Mon, 19 Mar 2007 00:21:20 +0100
+ -- Michael Gebetsroither <gebi@grml.org> Mon, 19 Mar 2007 02:45:28 +0100
grml-terminalserver (0.83) unstable; urgency=low
dh_installdocs
dh_installexamples
dh_installman debian/grml-terminalserver.8 debian/grml-terminalserver-config.8
+ dh_installexamples create-netboot
dh_link
dh_compress
mkdir -p debian/grml-terminalserver/usr/share/lintian/overrides/
help This help text
interactive Interactive Configuration of the grml-terminalserver
- grubConf Configure grub and create boot-image (for non-PXE NICs)
+ grubConf <file> Configure grub and create boot-image (for non-PXE NICs)
+ Read modules for grub from file if given.
grubConfWrite Configure grub and write image to floppy disk
grubWrite Write compiled grub-image to floppy disk
grubMultiWrite batchwrite grub-image to floppy disk
local tmp_=`mktemp -td terminalserver_grub.XXXXXX` || warn "could not create tmp file for grubConfig"
if [ -z "$tmp_" ]; then return 1; fi
- grubConfigWork $tmp_
+ grubConfigWork "$tmp_" "$1"
local ret_=$?
execute "rm -rf $tmp_" warn
WARNING: DON't add all NIC's, grub could possibly stop working!!"
local nics_=""
- while read module_ desc_ mode_; do
- nics_="$nics_ $module_ $desc_ $mode_"
- done < $GRUB_NIC_CONF_
-
- echo -n "" >$TMP_
- local cmd_line_=""
- $DIALOG_ --clear --separate-output --backtitle "$BACK_TITLE_" --title "$grub_title_" --checklist \
- "$grub_nic_message_" 10 70 0 $nics_ 2>$TMP_
- local ret_=$?
- if [[ $ret_ -ne 0 || `wc -l <$TMP_` -eq 0 ]]; then
- echo $ret_
- warn "you should give me your specified NICs but didn't => DEFAULT will be used"
- awk '/ on$/{print $1}' $GRUB_NIC_CONF_ >$TMP_
+ if [[ $2 == "" ]]; then
+ while read module_ desc_ mode_; do
+ nics_="$nics_ $module_ $desc_ $mode_"
+ done < $GRUB_NIC_CONF_
+
+ echo -n "" >$TMP_
+ local cmd_line_=""
+ $DIALOG_ --clear --separate-output --backtitle "$BACK_TITLE_" --title "$grub_title_" --checklist \
+ "$grub_nic_message_" 10 70 0 $nics_ 2>$TMP_
+ local ret_=$?
+ if [[ $ret_ -ne 0 || `wc -l <$TMP_` -eq 0 ]]; then
+ echo $ret_
+ warn "you should give me your specified NICs but didn't => DEFAULT will be used"
+ awk '/ on$/{print $1}' $GRUB_NIC_CONF_ >$TMP_
+ fi
+ else
+ cat $2 >$TMP_
fi
while read module_; do
cmd_line_="$cmd_line_ --enable-$module_"
case "$1" in
interactive) actionInteractive ;;
- grubConf) grubConfig ;;
+ grubConf) grubConfig "$2" ;;
grubConfWrite) grubConfig && grubWrite ;;
grubWrite) grubWrite ;;
grubMultiWrite) grubMultiWrite "$2" ;;
# 'data dir' from terminalserver
USR_SHARE_="/usr/share/grml-terminalserver"
+# sample config file for making the netboot package
+NETBOOT_PACKAGE_CONF_FILE_="$USR_SHARE_/terminalserver_netboot_package.conf"
+
# defaults for vars in terminalserver.conf
DEFAULT_CONFIG_="$USR_SHARE_/default_config"
--- /dev/null
+# GRML TERMINAL-SERVER CONFIG
+INTERFACE_="eth0"
+IP_="192.168.0.1"
+NETWORK_="192.168.0.0"
+NETMASK_="255.255.255.0"
+GW_="192.168.0.1"
+NAMESERVERS_=""
+IPRANGE_FROM_="192.168.0.1"
+IPRANGE_TO_="192.168.0.254"
+OPTIONS_=""
+BOOT_ARGS_=""
+NAT_INTERFACE_=""
+