add TODO file, new script 03_grml-live-chroot.sh and grml-all packages listing
authorMichael Prokop <mika@grml.org>
Mon, 12 Feb 2007 23:40:45 +0000 (00:40 +0100)
committerMichael Prokop <mika@grml.org>
Mon, 12 Feb 2007 23:40:45 +0000 (00:40 +0100)
TODO [new file with mode: 0644]
packages/grml-all [new file with mode: 0644]
scripts/01_bootstrap.sh
scripts/02_chroot.sh
scripts/03_grml-live-chroot.sh [new file with mode: 0644]
scripts/grml-live

diff --git a/TODO b/TODO
new file mode 100644 (file)
index 0000000..98dcac2
--- /dev/null
+++ b/TODO
@@ -0,0 +1,17 @@
+Main TODOs
+==========
+
+* install packages:
+  core / minimal
+  grml-small
+  full grml
+  own-selection
+  kernel + modules
+* initrd creation
+* squashfs generation
+* iso generation
+
+Checkout
+========
+
+* initrd creation via genext2fs
diff --git a/packages/grml-all b/packages/grml-all
new file mode 100644 (file)
index 0000000..c078ce7
--- /dev/null
@@ -0,0 +1,35 @@
+grml
+grml-autoconfig
+grml-btnet
+grml-crypt
+grml-ddcxinfo
+grml-debootstrap
+grml-debugtools
+grml-docs
+grml-etc
+grml-etc-core
+grml-files
+grml-firefox
+grml-hwinfo
+grml-laptop
+grml-mercurial-utils
+grml-network
+grml-policyrcd
+grml-rebuildfstab
+grml-reportbug
+grml-saveconfig
+grml-scanpartitions
+grml-scripts
+grml-sectools
+grml-shlib
+grml-sysvinit
+grml-templates
+grml-terminalserver
+grml-terminalserver-data
+grml-tips
+grml-usleep
+grml-vpn
+grml-x
+grml2hd
+grml2hd-utils
+grml2usb
index 027f5bd..4928932 100644 (file)
@@ -14,6 +14,8 @@ bootstrap() {
   if ! [ -d "${TARGET}/grml-live/" ] ; then
      debug "bootstrap: creating ${TARGET}/grml-live/"
      mkdir "${TARGET}/grml-live/"
+     mkdir "${TARGET}/grml-live/scripts/"
+     mkdir "${TARGET}/grml-live/files/"
   fi
 
   # check whether chroot exists already 
index fe2f84a..d22d675 100644 (file)
@@ -3,7 +3,7 @@
 # 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: Tue Feb 13 00:16:27 CET 2007
+# Latest change: Tue Feb 13 00:37:19 CET 2007
 ################################################################################
 
 chroot_shell() {
@@ -58,5 +58,33 @@ EOF
   esac
 }
 
+chroot_live_prepare() {
+  debug "preparing grml-live directory in chroot"
+  if [ -n "$SOURCES_LIST" ] ; then
+     echo $SOURCES_LIST > "${TARGET}"/grml-live/files/sources.list
+  fi
+
+  cat > "${TARGET}"/grml-live/scripts/install_packages.sh << EOF
+#!/bin/sh
+
+if ! [ -f /etc/apt/grml.key ] ; then
+   gpg --keyserver subkeys.pgp.net --recv-keys F61E2E7CECDEA787
+   gpg --export F61E2E7CECDEA787 > /etc/apt/grml.key
+   apt-key add /etc/apt/grml.key
+fi
+
+apt-get update
+apt-get upgrade
+
+EOF
+
+  chmod 755 "${TARGET}"/grml-live/scripts/install_packages.sh
+}
+
+chroot_live_execute() {
+  debug "executing grml-live script in chroot"
+  chroot_exec /grml-live/scripts/install_packages.sh
+}
+
 ## END OF FILE #################################################################
 # vim: ai tw=80 ft=sh expandtab
diff --git a/scripts/03_grml-live-chroot.sh b/scripts/03_grml-live-chroot.sh
new file mode 100644 (file)
index 0000000..522aa0b
--- /dev/null
@@ -0,0 +1,10 @@
+# Filename:      02_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: Tue Feb 13 00:16:27 CET 2007
+################################################################################
+
+## END OF FILE #################################################################
+# vim: ai tw=80 ft=sh expandtab
index d085932..1d693cd 100755 (executable)
@@ -76,6 +76,8 @@ bootstrap
 
 # 02_chroot.sh
 patch_chroot apply
+chroot_live_prepare
+chroot_live_execute
 chroot_shell
 patch_chroot deapply