Move all stuff to old/ and add live-initramfs and initial fai-stuff
[grml-live.git] / old / scripts / 10_finalize_chroot.sh
diff --git a/old/scripts/10_finalize_chroot.sh b/old/scripts/10_finalize_chroot.sh
new file mode 100644 (file)
index 0000000..f367f9e
--- /dev/null
@@ -0,0 +1,21 @@
+# Filename:      10_finalize_chroot.sh
+# Purpose:       build script for creating grml live-cd
+# Authors:       grml-team (grml.org), (c) Michael Prokop <mika@grml.org>
+# Bug-Reports:   see http://grml.org/bugs/
+# License:       This file is licensed under the GPL v2.
+# Latest change: Mon Feb 12 23:24:17 CET 2007
+################################################################################
+
+# main execution
+chroot_finalize() {
+  if [ -f "${TARGET}/etc/apt/sources.list.grml" ] ; then
+     chroot_exec "( cd /etc/apt/ ; ln -s sources.list.grml sources.list )"
+  fi
+}
+
+chroot_cleanup() {
+  rm -rf "${TARGET}"/grml-live
+}
+
+## END OF FILE #################################################################
+# vim: ai tw=80 ft=sh expandtab