From: Michael Prokop Date: Mon, 12 Feb 2007 23:40:45 +0000 (+0100) Subject: add TODO file, new script 03_grml-live-chroot.sh and grml-all packages listing X-Git-Tag: 0.0.1~91 X-Git-Url: http://git.grml.org/?p=grml-live.git;a=commitdiff_plain;h=5358b1f90c26e12a8492475a2199a5cfa34a8278 add TODO file, new script 03_grml-live-chroot.sh and grml-all packages listing --- diff --git a/TODO b/TODO new file mode 100644 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 index 0000000..c078ce7 --- /dev/null +++ b/packages/grml-all @@ -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 diff --git a/scripts/01_bootstrap.sh b/scripts/01_bootstrap.sh index 027f5bd..4928932 100644 --- a/scripts/01_bootstrap.sh +++ b/scripts/01_bootstrap.sh @@ -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 diff --git a/scripts/02_chroot.sh b/scripts/02_chroot.sh index fe2f84a..d22d675 100644 --- a/scripts/02_chroot.sh +++ b/scripts/02_chroot.sh @@ -3,7 +3,7 @@ # Authors: grml-team (grml.org), (c) Michael Prokop # 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 index 0000000..522aa0b --- /dev/null +++ b/scripts/03_grml-live-chroot.sh @@ -0,0 +1,10 @@ +# Filename: 02_chroot.sh +# Purpose: build script for creating grml live-cd +# Authors: grml-team (grml.org), (c) Michael Prokop +# 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 diff --git a/scripts/grml-live b/scripts/grml-live index d085932..1d693cd 100755 --- a/scripts/grml-live +++ b/scripts/grml-live @@ -76,6 +76,8 @@ bootstrap # 02_chroot.sh patch_chroot apply +chroot_live_prepare +chroot_live_execute chroot_shell patch_chroot deapply