ORIG_IMG="/mnt/grml/live/grml64-full/grml64-full.squashfs"
TARGET_DIR="/var/tmp/grml"
-#LOCAL_NAMESERVERS="192.168.178.30 192.168.178.89"
-#LOCAL_SEARCH_DOMAINS="pb.local dc1.de.profitbricks.net dc2.us.profitbricks.net"
PACKAGES="infiniband-diags opensm bc git libpcre3 mbuffer lsscsi bind9-host bind9utils"
This script creates a GRML squashfs usable for netboot.
Options:
+ -S|--source IMG original source GRML squashfs image (Default: ${ORIG_IMG})
+ Note: it must exists and may not lay inside the target directory
+ -T|--target DIR target working directory (Default: ${TARGET_DIR})
+ Note: if existing before, it will be erased completely
+ on starting this script.
-d|--debug debug output (sh -x)
-v|--verbose more verbose output
-t|--test test/simulation mode, nothing is really done
# Reading command line stuff
do_getopt() {
- local TEMP=$( getopt -o dvthyV \
- --long debug,verbose,test,help,yes,version \
+ local TEMP=$( getopt -o S:T:dvthyV \
+ --long source:,target:,debug,verbose,test,help,yes,version \
-n "${MY_BASE}" -- "$@" )
if [[ $? != 0 ]] ; then
error "Terminating because of wrong arguments ..." >&2
while true; do
case "$1" in
+ -S|--source)
+ ORIG_IMG="$2"
+ shift
+ shift
+ ;;
+ -T|--target)
+ TARGET_DIR="$2"
+ shift
+ shift
+ ;;
-d|--debug)
debug="y"
shift