To get a small, Debian-stable and grml based live-cd:
- # export LANG=C ; export LC_MESSAGES=C
# TARGET="/grml/chroot/grml_uncompressed"
# CDDIR="/grml/chroot/grml_cd"
- # mkdir -p $TARGET
-
- # fai -v -C /etc/grml/fai -cGRML dirinstall $TARGET
+ # grml-live -c GRML -t $TARGET
# mksquashfs $TARGET/* $CDDIR/live/grml.squashfs -noappend
# cd $CDDIR
# mkisofs -V "my personal grml" -l -r -J -no-emul-boot -boot-load-size 4 \
fai-doc). /usr/share/doc/fai-doc/fai-guide.html/ch-config.html also provides
documentation regarding configuration possibilities.
+ /usr/sbin/grml-live
+
+Script for the main build process (being a wrapper around FAI currently).
+Requires root permissions for execution.
+
/etc/grml/fai/fai.conf
Main configuration file which specifies where all the configuration files and
TODO
----
-* provide a wrapper script which runs all the necessary command in a single run
-(named grml-live plus configuration file /etc/grml/grml-live.conf)
-
-* replace 192.168.... inside the configuration files for the Debian mirro with
-something generic and make it configurable
+* provide a wrapper script which runs all the necessary command in a single run (/usr/sbin/grml-live and
+/etc/grml/grml-live.conf are work in progress)
* provide buildprocess for boot/isolinux stuff
-# These lines should work for many sites
-# A more comprehensive example is at /usr/share/doc/fai-doc/examples/etc
-
-deb http://192.168.1.112/debian etch main contrib non-free
deb http://deb.grml.org/ grml-stable main
deb http://deb.grml.org/ grml-testing main
deb http://ftp.de.debian.org/debian etch main contrib non-free
-
-# deb http://www.informatik.uni-koeln.de/fai/download etch koeln
-# deb http://ftp.debian.org/debian etch-proposed-updates main contrib non-free
-# deb http://security.debian.org/debian-security etch/updates main contrib non-free
# on the clients. This line(s) will be added to $nfsroot/etc/hosts.
#NFSROOT_ETC_HOSTS="192.168.1.250 yourinstallserver"
-FAI_DEBOOTSTRAP="etch http://192.168.1.102/debian"
-#FAI_DEBOOTSTRAP="etch http://ftp.de.debian.org/debian"
+FAI_DEBOOTSTRAP="etch http://ftp.de.debian.org/debian"
# the encrypted (with md5 or crypt) root password on all install clients during
# installation process; used when log in via ssh; default pw is: fai
# do you want to pass any additional arguments to FAI?
FAI_ARGS=""
+# do you want to generate /etc/grml/fai/apt/sources.list via grml-live?
+# otherwise just take what /etc/grml/fai/apt/sources.list provides by default
+# GRML_LIVE_SOURCES="
+#deb http://192.168.1.112/debian etch main contrib non-free
+#deb http://deb.grml.org/ grml-stable main
+#deb http://deb.grml.org/ grml-testing main
+#deb http://ftp.de.debian.org/debian etch main contrib non-free
+#"
+
+# Which Debian flavour and which mirror do you want to use for debootstrapping?
+# Unless specified the default from /etc/grml/fai/make-fai-nfsroot.conf will be
+# taken. If you specify a value then the file
+# /etc/grml/fai/make-fai-nfsroot.conf will be updated by grml-live on the fly.
+# usage: <flavour> <mirror>
+# FAI_DEBOOTSTRAP="etch http://ftp.de.debian.org/debian"
+
+
## END OF FILE #################################################################
VERBOSE=''
FORCE=''
-DEBUG=''
+DEBUG='' # TODO / FIXME - not implemented yet
# source main configuration file:
. /etc/grml/grml-live.conf
fi
# }}}
+if [ -n "$GRML_LIVE_SOURCES" ] ; then
+ echo $GRML_LIVE_SOURCES > /etc/grml/fai/apt/sources.list
+fi
+
+if [ -n "$FAI_DEBOOTSTRAP" ] ; then
+ sed -i "s#^FAI_DEBOOTSTRAP#FAI_DEBOOTSTRAP=$FAI_DEBOOTSTRAP#" /etc/grml/fai/make-fai-nfsroot.conf
+fi
+
# execute FAI {{{
-echo fai -v -C "$FAI_CONFIG" -c"$CLASSES" dirinstall "$TARGET" $FAI_ARGS
+fai -v -C "$FAI_CONFIG" -c"$CLASSES" dirinstall "$TARGET" $FAI_ARGS
# }}}
## END OF FILE #################################################################