Adding live-helper 1.0~a13-1.

This commit is contained in:
Daniel Baumann 2007-09-23 10:05:11 +02:00
parent d1ee66e44c
commit 85c342c299
101 changed files with 1218 additions and 1222 deletions

View File

@ -88,21 +88,18 @@ uninstall:
done; \ done; \
done done
# Uninstalling logfile
rm -f $(DESTDIR)/var/log/live*
update: update:
set -e; for MANPAGE in manpages/*.de.* manpages/*.en.*; \ set -e; for MANPAGE in manpages/*.de.* manpages/*.en.*; \
do \ do \
sed -i -e 's/2007\\-05\\-21/2007\\-05\\-28/' \ sed -i -e 's/2007\\-06\\-04/2007\\-06\\-11/' \
-e 's/21.05.2007/28.05.2007/' \ -e 's/04.06.2007/11.06.2007/' \
-e 's/1.0~a11/1.0~a12/' \ -e 's/1.0~a13/1.0~a14/' \
$$MANPAGE; \ $$MANPAGE; \
done done
set -e; for SCRIPT in functions/common.sh examples/cron/etch.sh examples/cron/etch+beryl.sh; \ set -e; for SCRIPT in functions/common.sh examples/cron/etch.sh examples/cron/etch+beryl.sh; \
do \ do \
sed -i -e 's/1.0~a11/1.0~a12/' $$SCRIPT; \ sed -i -e 's/1.0~a13/1.0~a14/' $$SCRIPT; \
done done
clean: clean:

6
debian/changelog vendored
View File

@ -1,3 +1,9 @@
live-helper (1.0~a13-1) unstable; urgency=medium
* New upstream release.
-- Daniel Baumann <daniel@debian.org> Mon, 4 Jun 2007 00:00:00 +0200
live-helper (1.0~a12-1) unstable; urgency=medium live-helper (1.0~a12-1) unstable; urgency=medium
* New upstream release. * New upstream release.

12
debian/control vendored
View File

@ -11,7 +11,7 @@ XS-VCS-Browse: http://svn.debian.org/wsvn/debian-live/dists/trunk/live-helper/
Package: live-helper Package: live-helper
Architecture: all Architecture: all
Depends: cdebootstrap (>= 0.3.15) | debootstrap (>= 0.3.3.2) Depends: cdebootstrap (>= 0.3.15) | debootstrap (>= 0.3.3.2)
Conflicts: live-package Conflicts: live-package (<< 1.0)
Replaces: live-package Replaces: live-package
Provides: make-live Provides: make-live
Description: Debian Live helper programs Description: Debian Live helper programs
@ -25,3 +25,13 @@ Description: Debian Live helper programs
of such a program that uses live-helper is make-live (included here). of such a program that uses live-helper is make-live (included here).
. .
Homepage: <http://debian-live.alioth.debian.org/> Homepage: <http://debian-live.alioth.debian.org/>
Package: live-package
Architecture: all
Depends: live-helper
Description: Debian Live helper programs (transitional package)
Package to ease upgrading from older live-package package to the new
live-helper package.
.
This package can be purged at anytime once the live-helper package has been
installed.

1
debian/manpages vendored
View File

@ -1 +0,0 @@
contrib/casper-manpage/*

4
debian/postrm vendored
View File

@ -2,7 +2,7 @@
set -e set -e
case "$1" in case "${1}" in
purge) purge)
rm -f /var/log/live* rm -f /var/log/live*
;; ;;
@ -12,7 +12,7 @@ case "$1" in
;; ;;
*) *)
echo "postrm called with unknown argument \`$1'" >&2 echo "postrm called with unknown argument \`${1}'" >&2
exit 1 exit 1
;; ;;
esac esac

View File

@ -17,6 +17,7 @@ Patches (alphabetical order):
* Richard Nelson <rjent@rjent.pair.com> * Richard Nelson <rjent@rjent.pair.com>
* Scott Edwards <debian@foss.daxal.com> * Scott Edwards <debian@foss.daxal.com>
* Sebastian Raveau <sebastien.raveau@epita.fr> * Sebastian Raveau <sebastien.raveau@epita.fr>
* Trent Buck <trentbuck@gmail.com>
Donations (alphaetical order): Donations (alphaetical order):

View File

@ -1,3 +1,37 @@
2007-06-03 Daniel Baumann <daniel@debian.org>
* Uploaded 1.0~a13-1.
2007-06-02 Otavio Salvador <otavio@debian.org>
* helpers/lh_chroot_preseed:
- Use {Check,Install,Remove}_package to handle debconf dependency.
* Add support to specify the apt/aptitude pipeline depth.
2007-06-02 Daniel Baumann <daniel@debian.org>
* Applied patches from Otavio Salvador <otavio@debian.org>:
- Add support to override helpers base directory
- Use LIVE_BOOTSTRAP_CONFIG instead of LIVE_DISTRIBUTION_CONFIG.
- Add support to specify the keyring to be used while bootstraping.
- Add lh_chroot_preseed helper.
2007-05-28 Daniel Baumann <daniel@debian.org>
* helpers/*:
- Added initial P: messages.
- Removed some bashisms.
- Added some of the proposed cleanups from Trent Buck
<trentbuck@gmail.com>.
* lists/mini, minimal:
- Removed, already pulled in with live-initramfs depends.
2007-05-27 Daniel Baumann <daniel@debian.org>
* helpers/lh_binary_rootfs:
- Added check for config/binary_rootfs/squashfs.sort for passing a
sorting list to mksquashfs.
2007-05-26 Daniel Baumann <daniel@debian.org> 2007-05-26 Daniel Baumann <daniel@debian.org>
* lists/rescue: * lists/rescue:

View File

@ -14,11 +14,11 @@ FIXME
* grub (i386/amd64) boot support on usb* binary images * grub (i386/amd64) boot support on usb* binary images
* grub (i386/amd64) boot support on net binary images * grub (i386/amd64) boot support on net binary images
* multi-{binary,architecture,distribution} builds in one shot * multi-{binary,architecture,distribution} builds in one shot
* vmlinu[xz]
* breakpoints (yes/no/all/type: soft ->interaction to stop/hard ->interaction to continue)
* check unset variables * check unset variables
ADDME ADDME
* vmlinu[xz] [ppc64?]
* breakpoints (yes/no/all/type: soft ->interaction to stop/hard ->interaction to continue)
* vmware binary image flavour * vmware binary image flavour
* usb-zip binary image flavour * usb-zip binary image flavour
* support splitted/partial squashfs images * support splitted/partial squashfs images
@ -26,7 +26,7 @@ ADDME
* introduce package groups * introduce package groups
* multi-arch for amd64/i386/powerpc on one medium * multi-arch for amd64/i386/powerpc on one medium
* logfiles * logfiles
* re-import lh_clone/lh_preseed * re-import lh_clone
* Add win32 loader * Add win32 loader
BETA series: BETA series:
@ -45,3 +45,4 @@ POST 1.0:
* Add loadlin or qemu batch * Add loadlin or qemu batch
* Adding colinux? * Adding colinux?
* exec wrapper for output hiding/handling * exec wrapper for output hiding/handling
* bootchart and squashfs sorting integration

View File

@ -7,7 +7,7 @@ BUILD="etch+beryl"
# Begin custom defaults # Begin custom defaults
AUTOBUILD="enabled" AUTOBUILD="enabled"
DATE="r0_1.0~a12-1" DATE="r0_1.0~a13-1"
DESTDIR="/srv/debian-unofficial/ftp/debian-live" DESTDIR="/srv/debian-unofficial/ftp/debian-live"
TEMPDIR="/srv/tmp/live-helper" TEMPDIR="/srv/tmp/live-helper"
@ -75,8 +75,8 @@ do
mkdir -p debian-live/config/chroot_sources mkdir -p debian-live/config/chroot_sources
wget http://debian.beryl-project.org/root@lupine.me.uk.gpg -O debian-live/config/chroot_sources/beryl.build.gpg wget http://debian.beryl-project.org/root@lupine.me.uk.gpg -O debian-live/config/chroot_sources/beryl.build.gpg
wget http://debian.beryl-project.org/root@lupine.me.uk.gpg -O debian-live/config/chroot_sources/beryl.image.gpg wget http://debian.beryl-project.org/root@lupine.me.uk.gpg -O debian-live/config/chroot_sources/beryl.image.gpg
cp /usr/share/live-helper/examples/sources.list/beryl debian-live/config/chroot_sources/beryl.build cp /usr/share/live-helper/examples/sources/beryl debian-live/config/chroot_sources/beryl.build
cp /usr/share/live-helper/examples/sources.list/beryl debian-live/config/chroot_sources/beryl.image cp /usr/share/live-helper/examples/sources/beryl debian-live/config/chroot_sources/beryl.image
# Generating images # Generating images
make-live -b iso -s generic --distribution ${DISTRIBUTION} --packages-lists ${PACKAGES_LIST} --mirror-bootstrap ${MIRROR_BOOTSTRAP} --mirror-bootstrap-security ${MIRROR_BOOTSTRAP_SECURITY} --mirror-binary ${MIRROR_BINARY} --mirror-binary-security ${MIRROR_BINARY_SECURITY} --source enabled ${OPTIONS} >> "${TEMPDIR}"/debian-live/log.txt 2>&1 make-live -b iso -s generic --distribution ${DISTRIBUTION} --packages-lists ${PACKAGES_LIST} --mirror-bootstrap ${MIRROR_BOOTSTRAP} --mirror-bootstrap-security ${MIRROR_BOOTSTRAP_SECURITY} --mirror-binary ${MIRROR_BINARY} --mirror-binary-security ${MIRROR_BINARY_SECURITY} --source enabled ${OPTIONS} >> "${TEMPDIR}"/debian-live/log.txt 2>&1

View File

@ -7,7 +7,7 @@ BUILD="etch"
# Begin custom defaults # Begin custom defaults
AUTOBUILD="enabled" AUTOBUILD="enabled"
DATE="r0_1.0~a12-1" DATE="r0_1.0~a13-1"
DESTDIR="/srv/debian-unofficial/ftp/debian-live" DESTDIR="/srv/debian-unofficial/ftp/debian-live"
TEMPDIR="/srv/tmp/live-helper" TEMPDIR="/srv/tmp/live-helper"

View File

@ -3,7 +3,7 @@
# Needs: build-essential fakeroot lsb-release svn [...] # Needs: build-essential fakeroot lsb-release svn [...]
# Static variables # Static variables
PACKAGES="live-helper live-initramfs live-webhelper" PACKAGES="live-helper live-initramfs live-sysvinit live-webhelper"
DEBEMAIL="debian-live-devel@lists.alioth.debian.org" DEBEMAIL="debian-live-devel@lists.alioth.debian.org"
EMAIL="debian-live-devel@lists.alioth.debian.org" EMAIL="debian-live-devel@lists.alioth.debian.org"
@ -80,19 +80,23 @@ do
rm -rf "${TEMPDIR}"/${PACKAGE}-${VERSION}~${REVISION} rm -rf "${TEMPDIR}"/${PACKAGE}-${VERSION}~${REVISION}
# Creating directory # Creating directory
if [ ! -d "${SERVER}" ] mkdir -p "${SERVER}"
then
mkdir -p "${SERVER}"
fi
# Removing old packages # Removing old packages
if ls "${SERVER}"/"${PACKAGE}"* &> /dev/null for FILE in `awk {'print $5'} "${SERVER}"/"${PACKAGE}"*.changes | grep -e ".*\.deb$" -e ".*\.diff.gz$" -e ".*\.dsc$" -e ".*\.tar.gz$" -e ".*\.udeb$"`
then do
rm -f "${SERVER}"/"${PACKAGE}"* rm -f "${SERVER}"/"${FILE}"
fi done
# Moving packages rm -f "${SERVER}"/"${PACKAGE}"*.changes
mv "${TEMPDIR}"/${PACKAGE}* "${SERVER}"
# Installing new packages
for FILE in `awk {'print $5'} "${TEMPDIR}"/"${PACKAGE}"*.changes | grep -e ".*\.deb$" -e ".*\.diff.gz$" -e ".*\.dsc$" -e ".*\.tar.gz$" -e ".*\.udeb$"`
do
mv "${TEMPDIR}"/"${FILE}" "${SERVER}"
done
mv "${TEMPDIR}"/"${PACKAGE}"*.changes "${SERVER}"
else else
# Remove sources # Remove sources
rm -rf "${TEMPDIR}"/${PACKAGE} rm -rf "${TEMPDIR}"/${PACKAGE}

View File

@ -32,13 +32,10 @@ Save_cache ()
# Cleaning current cache # Cleaning current cache
Chroot "apt-get autoclean" Chroot "apt-get autoclean"
if ls chroot/var/cache/apt/archives/*.deb &> /dev/null if ls chroot/var/cache/apt/archives/*.deb > /dev/null 2>&1
then then
# Creating cache directory # Creating cache directory
if [ ! -d "${DIRECTORY}" ] mkdir -p "${DIRECTORY}"
then
mkdir -p "${DIRECTORY}"
fi
# Saving new cache # Saving new cache
mv -f chroot/var/cache/apt/archives/*.deb "${DIRECTORY}" mv -f chroot/var/cache/apt/archives/*.deb "${DIRECTORY}"

View File

@ -10,4 +10,4 @@
set -e set -e
PROGRAM="`basename ${0}`" PROGRAM="`basename ${0}`"
VERSION="1.0~a12" VERSION="1.0~a13"

View File

@ -16,7 +16,7 @@ Set_defaults ()
# Setting mode # Setting mode
if [ -z "${LH_MODE}" ] if [ -z "${LH_MODE}" ]
then then
if [ -f /usr/bin/lsb_release ] if [ -x /usr/bin/lsb_release ]
then then
case "`lsb_release --short --id`" in case "`lsb_release --short --id`" in
Debian) Debian)
@ -26,18 +26,35 @@ Set_defaults ()
Ubuntu) Ubuntu)
LH_MODE="ubuntu" LH_MODE="ubuntu"
;; ;;
*)
Echo_verbose "Unexpected output from lsb_release"
Echo_verbose "Setting mode to debian."
LH_MODE="debian"
;;
esac esac
else else
LH_MODE="debian" LH_MODE="debian"
fi fi
fi fi
# Setting package manager # Setting distribution value
if [ -z "${LH_APT}" ] if [ -z "${LIVE_DISTRIBUTION}" ]
then then
LH_APT="aptitude" case "${LH_MODE}" in
debian)
LIVE_DISTRIBUTION="etch"
;;
ubuntu)
LIVE_DISTRIBUTION="feisty"
;;
esac
fi fi
# Setting package manager
LH_APT="${LH_APT:-aptitude}"
# Setting apt ftp proxy # Setting apt ftp proxy
if [ -z "${LH_APT_FTPPROXY}" ] && [ -n "${ftp_proxy}" ] if [ -z "${LH_APT_FTPPROXY}" ] && [ -n "${ftp_proxy}" ]
then then
@ -61,22 +78,16 @@ Set_defaults ()
fi fi
# Setting apt pdiffs # Setting apt pdiffs
if [ -z "${LH_APT_PDIFFS}" ] LH_APT_PDIFFS="${LH_APT_PDIFFS:-enabled}"
then
LH_APT_PDIFFS="enabled" # Setting apt pipeline
fi # LH_APT_PIPELINE
# Setting apt recommends # Setting apt recommends
if [ -z "${LH_APT_RECOMMENDS}" ] LH_APT_RECOMMENDS="${LH_APT_RECOMMENDS:-enabled}"
then
LH_APT_RECOMMENDS="enabled"
fi
# Setting apt secure # Setting apt secure
if [ -z "${LH_APT_SECURE}" ] LH_APT_SECURE="${LH_APT_SECURE:-enabled}"
then
LH_APT_SECURE="enabled"
fi
# Setting bootstrap program # Setting bootstrap program
if [ -z "${LH_BOOTSTRAP}" ] || [ ! -x "${LH_BOOTSTRAP}" ] if [ -z "${LH_BOOTSTRAP}" ] || [ ! -x "${LH_BOOTSTRAP}" ]
@ -111,36 +122,14 @@ Set_defaults ()
fi fi
# Setting cache option # Setting cache option
if [ -z "${LH_CACHE_INDICES}" ] LH_CACHE_INDICES="${LH_CACHE_INDICES:-disabled}"
then LH_CACHE_PACKAGES="${LH_CACHE_PACKAGES:-enabled}"
LH_CACHE_INDICES="disabled" LH_CACHE_STAGES="${LH_CACHE_STAGES:-bootstrap}"
fi
if [ -z "${LH_CACHE_PACKAGES}" ]
then
LH_CACHE_PACKAGES="enabled"
fi
if [ -z "${LH_CACHE_STAGES}" ]
then
LH_CACHE_STAGES="bootstrap"
fi
# Setting debconf frontend # Setting debconf frontend
if [ -z "${LH_DEBCONF_FRONTEND}" ] LH_DEBCONF_FRONTEND="${LH_DEBCONF_FRONTEND:-noninteractive}"
then LH_DEBCONF_NOWARNINGS="${LH_DEBCONF_NOWARNINGS:-yes}"
LH_DEBCONF_FRONTEND="noninteractive" LH_DEBCONF_PRIORITY="${LH_DEBCONF_PRIORITY:-critical}"
fi
if [ -z "${LH_DEBCONF_NOWARNINGS}" ]
then
LH_DEBCONF_NOWARNINGS="yes"
fi
if [ -z "${LH_DEBCONF_PRIORITY}" ]
then
LH_DEBCONF_PRIORITY="critical"
fi
# Setting genisoimage # Setting genisoimage
if [ -z "${LH_GENISOIMAGE}" ] if [ -z "${LH_GENISOIMAGE}" ]
@ -185,15 +174,12 @@ Set_defaults ()
# If we are root, disable root command # If we are root, disable root command
if [ "`id -u`" = "0" ] if [ "`id -u`" = "0" ]
then then
# FIXME: this is disabled until considered save # FIXME: this is disabled until considered safe
LIVE_ROOT_COMMAND="" LIVE_ROOT_COMMAND=""
fi fi
# Setting tasksel # Setting tasksel
if [ -z "${LH_TASKSEL}" ] LH_TASKSEL="${LH_TASKSEL:-aptitude}"
then
LH_TASKSEL="aptitude"
fi
# Setting root directory # Setting root directory
if [ -z "${LIVE_ROOT}" ] if [ -z "${LIVE_ROOT}" ]
@ -212,40 +198,21 @@ Set_defaults ()
# Setting includes # Setting includes
if [ -z "${LIVE_INCLUDES}" ] if [ -z "${LIVE_INCLUDES}" ]
then then
LIVE_INCLUDES="/usr/share/live-helper/includes" LIVE_INCLUDES="${LH_BASE:-/usr/share/live-helper}/includes"
fi fi
# Setting templates # Setting templates
if [ -z "${LIVE_TEMPLATES}" ] if [ -z "${LIVE_TEMPLATES}" ]
then then
LIVE_TEMPLATES="/usr/share/live-helper/templates" LIVE_TEMPLATES="${LH_BASE:-/usr/share/live-helper}/templates"
fi fi
# Setting live helper options # Setting live helper options
if [ -z "${LH_BREAKPOINTS}" ] LH_BREAKPOINTS="${LH_BREAKPOINTS:-disabled}"
then LH_DEBUG="${LH_DEBUG:-disabled}"
LH_BREAKPOINTS="disabled" LH_FORCE="${LH_FORCE:-disabled}"
fi LH_QUIET="${LH_QUIET:-disabled}"
LH_VERBOSE="${LH_VERBOSE:-disabled}"
if [ -z "${LH_DEBUG}" ]
then
LH_DEBUG="disabled"
fi
if [ -z "${LH_FORCE}" ]
then
LH_FORCE="disabled"
fi
if [ -z "${LH_QUIET}" ]
then
LH_QUIET="disabled"
fi
if [ -z "${LH_VERBOSE}" ]
then
LH_VERBOSE="disabled"
fi
## config/bootstrap ## config/bootstrap
@ -261,28 +228,14 @@ Set_defaults ()
fi fi
fi fi
# Setting distribution value
if [ -z "${LIVE_DISTRIBUTION}" ]
then
case "${LH_MODE}" in
debian)
LIVE_DISTRIBUTION="etch"
;;
ubuntu)
LIVE_DISTRIBUTION="feisty"
;;
esac
fi
# Setting distribution configuration value # Setting distribution configuration value
# LIVE_BOOTSTRAP_CONFIG # LIVE_BOOTSTRAP_CONFIG
# Setting flavour value # Setting flavour value
if [ -z "${LIVE_BOOTSTRAP_FLAVOUR}" ] LIVE_BOOTSTRAP_FLAVOUR="${LIVE_BOOTSTRAP_FLAVOUR:-standard}"
then
LIVE_BOOTSTRAP_FLAVOUR="standard" # Setting boostrap keyring
fi # LIVE_BOOTSTRAP_KEYRING
# Setting mirror to fetch packages from # Setting mirror to fetch packages from
if [ -z "${LIVE_MIRROR_BOOTSTRAP}" ] if [ -z "${LIVE_MIRROR_BOOTSTRAP}" ]
@ -357,18 +310,12 @@ Set_defaults ()
## config/chroot ## config/chroot
# Setting chroot filesystem # Setting chroot filesystem
if [ -z "${LIVE_CHROOT_FILESYSTEM}" ] LIVE_CHROOT_FILESYSTEM="${LIVE_CHROOT_FILESYSTEM:-squashfs}"
then
LIVE_CHROOT_FILESYSTEM="squashfs"
fi
# LIVE_HOOKS # LIVE_HOOKS
# Setting interactive shell/X11/Xnest # Setting interactive shell/X11/Xnest
if [ -z "${LIVE_INTERACTIVE}" ] LIVE_INTERACTIVE="${LIVE_INTERACTIVE:-disabled}"
then
LIVE_INTERACTIVE="disabled"
fi
# Setting keyring packages # Setting keyring packages
# LIVE_KEYRING_PACKAGES # LIVE_KEYRING_PACKAGES
@ -476,10 +423,7 @@ Set_defaults ()
# LIVE_PACKAGES # LIVE_PACKAGES
# Setting packages list string # Setting packages list string
if [ -z "${LIVE_PACKAGES_LISTS}" ] LIVE_PACKAGES_LISTS="${LIVE_PACKAGES_LISTS:-standard}"
then
LIVE_PACKAGES_LISTS="standard"
fi
# Setting tasks string # Setting tasks string
for LIST in ${LIVE_PACKAGES_LISTS} for LIST in ${LIVE_PACKAGES_LISTS}
@ -513,36 +457,21 @@ Set_defaults ()
# LIVE_TASKS # LIVE_TASKS
# Setting security updates option # Setting security updates option
if [ -z "${LIVE_SECURITY}" ] LIVE_SECURITY="${LIVE_SECURITY:-enabled}"
then
LIVE_SECURITY="enabled"
fi
# Setting symlink convertion option # Setting symlink convertion option
if [ -z "${LIVE_SYMLINKS}" ] LIVE_SYMLINKS="${LIVE_SYMLINKS:-disabled}"
then
LIVE_SYMLINKS="disabled"
fi
# Setting sysvinit option # Setting sysvinit option
if [ -z "${LIVE_SYSVINIT}" ] LIVE_SYSVINIT="${LIVE_SYSVINIT:-disabled}"
then
LIVE_SYSVINIT="disabled"
fi
## config/binary ## config/binary
# Setting image type # Setting image type
if [ -z "${LIVE_BINARY_IMAGES}" ] LIVE_BINARY_IMAGES="${LIVE_BINARY_IMAGES:-iso}"
then
LIVE_BINARY_IMAGES="iso"
fi
# Setting apt indices # Setting apt indices
if [ -z "${LIVE_BINARY_INDICES}" ] LIVE_BINARY_INDICES="${LIVE_BINARY_INDICES:-enabled}"
then
LIVE_BINARY_INDICES="enabled"
fi
# Setting boot parameters # Setting boot parameters
# LIVE_BOOTAPPEND # LIVE_BOOTAPPEND
@ -562,10 +491,7 @@ Set_defaults ()
fi fi
# Setting debian-installer option # Setting debian-installer option
if [ -z "${LIVE_DEBIAN_INSTALLER}" ] LIVE_DEBIAN_INSTALLER="${LIVE_DEBIAN_INSTALLER:-disabled}"
then
LIVE_DEBIAN_INSTALLER="disabled"
fi
# Setting encryption # Setting encryption
# LIVE_ENCRYPTION # LIVE_ENCRYPTION
@ -602,16 +528,10 @@ Set_defaults ()
fi fi
# Set iso preparer # Set iso preparer
if [ -z "${LIVE_ISO_PREPARER}" ] LIVE_ISO_PREPARER="${LIVE_ISO_PREPARER:-live-helper ${VERSION}; http://packages.qa.debian.org/live-helper}"
then
LIVE_ISO_PREPARER="live-helper \${VERSION}; http://packages.qa.debian.org/live-helper"
fi
# Set iso publisher # Set iso publisher
if [ -z "${LIVE_ISO_PUBLISHER}" ] LIVE_ISO_PUBLISHER="${LIVE_ISO_PUBLISHER:-Debian Live project; http://debian-live.alioth.debian.org/; debian-live-devel@lists.alioth.debian.org}"
then
LIVE_ISO_PUBLISHER="Debian Live project; http://debian-live.alioth.debian.org/; debian-live-devel@lists.alioth.debian.org"
fi
# Setting iso volume # Setting iso volume
if [ -z "${LIVE_ISO_VOLUME}" ] if [ -z "${LIVE_ISO_VOLUME}" ]
@ -628,10 +548,7 @@ Set_defaults ()
fi fi
# Setting memtest option # Setting memtest option
if [ -z "${LIVE_MEMTEST}" ] LIVE_MEMTEST="${LIVE_MEMTEST:-memtest86+}"
then
LIVE_MEMTEST="memtest86+"
fi
# Setting netboot server path # Setting netboot server path
if [ -z "${LIVE_NET_PATH}" ] if [ -z "${LIVE_NET_PATH}" ]
@ -648,31 +565,19 @@ Set_defaults ()
fi fi
# Setting netboot server address # Setting netboot server address
if [ -z "${LIVE_NET_SERVER}" ] LIVE_NET_SERVER="${LIVE_NET_SERVER:-192.168.1.1}"
then
LIVE_NET_SERVER="192.168.1.1"
fi
# Setting syslinux splash # Setting syslinux splash
# LIVE_SYSLINUX_SPLASH # LIVE_SYSLINUX_SPLASH
# Setting username # Setting username
if [ -z "${LIVE_USERNAME}" ] LIVE_USERNAME="${LIVE_USERNAME:-user}"
then
LIVE_USERNAME="user"
fi
## config/source ## config/source
# Setting source option # Setting source option
if [ -z "${LIVE_SOURCE}" ] LIVE_SOURCE="${LIVE_SOURCE:-disabled}"
then
LIVE_SOURCE="disabled"
fi
# Setting image type # Setting image type
if [ -z "${LIVE_SOURCE_IMAGES}" ] LIVE_SOURCE_IMAGES="${LIVE_SOURCE_IMAGES:-generic}"
then
LIVE_SOURCE_IMAGES="generic"
fi
} }

View File

@ -27,10 +27,7 @@ Create_lockfile ()
DIRECTORY="`dirname ${1}`" DIRECTORY="`dirname ${1}`"
# Creating lock directory # Creating lock directory
if [ ! -d "${DIRECTORY}" ] mkdir -p "${DIRECTORY}"
then
mkdir -p "${DIRECTORY}"
fi
# Creating lock trap # Creating lock trap
trap "test -f ${FILE} && rm -f ${FILE}; exit 0" 0 1 2 3 9 15 trap "test -f ${FILE} && rm -f ${FILE}; exit 0" 0 1 2 3 9 15

View File

@ -36,10 +36,7 @@ Create_stagefile ()
DIRECTORY="`dirname ${1}`" DIRECTORY="`dirname ${1}`"
# Creating stage directory # Creating stage directory
if [ ! -d "${DIRECTORY}" ] mkdir -p "${DIRECTORY}"
then
mkdir -p "${DIRECTORY}"
fi
# Creating stage file # Creating stage file
touch "${FILE}" touch "${FILE}"

View File

@ -9,22 +9,21 @@
set -e set -e
# Source common functions # Including common functions
for FUNCTION in /usr/share/live-helper/functions/*.sh LH_BASE="${LH_BASE:-/usr/share/live-helper}"
for FUNCTION in "${LH_BASE}"/functions/*.sh
do do
. ${FUNCTION} . "${FUNCTION}"
done done
# Set static variables # Setting static variables
DESCRIPTION="build binary images" DESCRIPTION="build binary images"
HELP="" HELP=""
USAGE="${PROGRAM} [--force]" USAGE="${PROGRAM} [--force]"
Arguments "${@}" Arguments "${@}"
Echo_debug "Init ${PROGRAM}"
Breakpoint "binary: Init"
# Preparing root filesystem # Preparing root filesystem
lh_binary_chroot ${*} lh_binary_chroot ${*}

View File

@ -9,21 +9,21 @@
set -e set -e
# Source common functions # Including common functions
for FUNCTION in /usr/share/live-helper/functions/*.sh LH_BASE="${LH_BASE:-/usr/share/live-helper}"
for FUNCTION in "${LH_BASE}"/functions/*.sh
do do
. ${FUNCTION} . "${FUNCTION}"
done done
# Set static variables # Setting static variables
DESCRIPTION="copy chroot into chroot" DESCRIPTION="copy chroot into chroot"
HELP="" HELP=""
USAGE="${PROGRAM} [--force]" USAGE="${PROGRAM} [--force]"
Arguments "${@}" Arguments "${@}"
Echo_debug "Init ${PROGRAM}"
# Reading configuration files # Reading configuration files
Read_conffile config/common Read_conffile config/common
Read_conffile config/bootstrap Read_conffile config/bootstrap
@ -32,7 +32,8 @@ Read_conffile config/binary
Read_conffile config/source Read_conffile config/source
Set_defaults Set_defaults
Breakpoint "binary_chroot: Init" Echo_message "Begin copying chroot..."
Echo_message "This may take a while."
# Requiring stage file # Requiring stage file
Require_stagefile .stage/bootstrap Require_stagefile .stage/bootstrap
@ -62,7 +63,6 @@ ${LH_ROOT_COMMAND} rm -rf chroot/chroot
${LH_ROOT_COMMAND} rm -rf chroot.tmp ${LH_ROOT_COMMAND} rm -rf chroot.tmp
# Copying new chroot # Copying new chroot
Echo_message "Copying chroot, this can take a while."
${LH_ROOT_COMMAND} cp -a chroot chroot.tmp ${LH_ROOT_COMMAND} cp -a chroot chroot.tmp
${LH_ROOT_COMMAND} mv chroot.tmp chroot/chroot ${LH_ROOT_COMMAND} mv chroot.tmp chroot/chroot

View File

@ -9,21 +9,21 @@
set -e set -e
# Source common functions # Including common functions
for FUNCTION in /usr/share/live-helper/functions/*.sh LH_BASE="${LH_BASE:-/usr/share/live-helper}"
for FUNCTION in "${LH_BASE}"/functions/*.sh
do do
. ${FUNCTION} . "${FUNCTION}"
done done
# Set static variables # Setting static variables
DESCRIPTION="install debian-installer into binary" DESCRIPTION="install debian-installer into binary"
HELP="" HELP=""
USAGE="${PROGRAM} [--force]" USAGE="${PROGRAM} [--force]"
Arguments "${@}" Arguments "${@}"
Echo_debug "Init ${PROGRAM}"
# Reading configuration files # Reading configuration files
Read_conffile config/common Read_conffile config/common
Read_conffile config/bootstrap Read_conffile config/bootstrap
@ -37,7 +37,7 @@ then
exit 0 exit 0
fi fi
Breakpoint "binary_debian-installer: Init" Echo_message "Begin installing debian-installer..."
# Requiring stage file # Requiring stage file
Require_stagefile .stage/bootstrap Require_stagefile .stage/bootstrap

View File

@ -9,21 +9,21 @@
set -e set -e
# Source common functions # Including common functions
for FUNCTION in /usr/share/live-helper/functions/*.sh LH_BASE="${LH_BASE:-/usr/share/live-helper}"
for FUNCTION in "${LH_BASE}"/functions/*.sh
do do
. ${FUNCTION} . "${FUNCTION}"
done done
# Set static variables # Setting static variables
DESCRIPTION="encrypts rootfs" DESCRIPTION="encrypts rootfs"
HELP="" HELP=""
USAGE="${PROGRAM} [--force]" USAGE="${PROGRAM} [--force]"
Arguments "${@}" Arguments "${@}"
Echo_debug "Init ${PROGRAM}"
# Reading configuration files # Reading configuration files
Read_conffile config/common Read_conffile config/common
Read_conffile config/bootstrap Read_conffile config/bootstrap
@ -37,7 +37,7 @@ then
exit 0 exit 0
fi fi
Breakpoint "binary_encryption: Init" Echo_message "Begin encrypting root filesystem image..."
# Requiring stage file # Requiring stage file
Require_stagefile .stage/bootstrap Require_stagefile .stage/bootstrap

View File

@ -9,21 +9,21 @@
set -e set -e
# Source common functions # Including common functions
for FUNCTION in /usr/share/live-helper/functions/*.sh LH_BASE="${LH_BASE:-/usr/share/live-helper}"
for FUNCTION in "${LH_BASE}"/functions/*.sh
do do
. ${FUNCTION} . "${FUNCTION}"
done done
# Set static variables # Setting static variables
DESCRIPTION="installs grub into binary" DESCRIPTION="installs grub into binary"
HELP="" HELP=""
USAGE="${PROGRAM} [--force]" USAGE="${PROGRAM} [--force]"
Arguments "${@}" Arguments "${@}"
Echo_debug "Init ${PROGRAM}"
# Reading configuration files # Reading configuration files
Read_conffile config/common Read_conffile config/common
Read_conffile config/bootstrap Read_conffile config/bootstrap
@ -37,7 +37,7 @@ then
exit 0 exit 0
fi fi
Breakpoint "binary_grub: Init" Echo_message "Begin installing grub..."
# Requiring stage file # Requiring stage file
Require_stagefile .stage/bootstrap Require_stagefile .stage/bootstrap
@ -125,10 +125,7 @@ then
fi fi
# Creating directory # Creating directory
if [ ! -d "${DESTDIR_LIVE}" ] mkdir -p "${DESTDIR_LIVE}"
then
mkdir -p "${DESTDIR_LIVE}"
fi
# Setting boot parameters # Setting boot parameters
if [ -n "${LIVE_ENCRYPTION}" ] if [ -n "${LIVE_ENCRYPTION}" ]

View File

@ -9,21 +9,21 @@
set -e set -e
# Source common functions # Including common functions
for FUNCTION in /usr/share/live-helper/functions/*.sh LH_BASE="${LH_BASE:-/usr/share/live-helper}"
for FUNCTION in "${LH_BASE}"/functions/*.sh
do do
. ${FUNCTION} . "${FUNCTION}"
done done
# Set static variables # Setting static variables
DESCRIPTION="build harddisk binary image" DESCRIPTION="build harddisk binary image"
HELP="" HELP=""
USAGE="${PROGRAM} [--force]" USAGE="${PROGRAM} [--force]"
Arguments "${@}" Arguments "${@}"
Echo_debug "Init ${PROGRAM}"
# Reading configuration files # Reading configuration files
Read_conffile config/common Read_conffile config/common
Read_conffile config/bootstrap Read_conffile config/bootstrap
@ -32,34 +32,29 @@ Read_conffile config/binary
Read_conffile config/source Read_conffile config/source
Set_defaults Set_defaults
if ! echo "${LIVE_BINARY_IMAGES}" | grep -qs hdd
then
exit 0
fi
for IMAGE in ${LIVE_BINARY_IMAGES} Echo_message "Begin building binary harddisk image..."
do
if [ "${IMAGE}" = "hdd" ]
then
Breakpoint "binary_hdd: Init"
# Requiring stage file # Requiring stage file
Require_stagefile .stage/bootstrap Require_stagefile .stage/bootstrap
# Checking stage file # Checking stage file
Check_stagefile .stage/binary_hdd Check_stagefile .stage/binary_hdd
# Checking lock file # Checking lock file
Check_lockfile .lock Check_lockfile .lock
# Creating lock file # Creating lock file
Create_lockfile .lock Create_lockfile .lock
# Remove old binary # Remove old binary
if [ -f binary-hdd.tar.gz ] rm -f binary-hdd.tar.gz
then
rm -f binary-hdd.tar.gz
fi
tar cfz binary-hdd.tar.gz binary tar cfz binary-hdd.tar.gz binary
# Creating stage file # Creating stage file
Create_stagefile .stage/binary_hdd Create_stagefile .stage/binary_hdd
fi
done

View File

@ -9,21 +9,21 @@
set -e set -e
# Source common functions # Including common functions
for FUNCTION in /usr/share/live-helper/functions/*.sh LH_BASE="${LH_BASE:-/usr/share/live-helper}"
for FUNCTION in "${LH_BASE}"/functions/*.sh
do do
. ${FUNCTION} . "${FUNCTION}"
done done
# Set static variables # Setting static variables
DESCRIPTION="copy files into binary" DESCRIPTION="copy files into binary"
HELP="" HELP=""
USAGE="${PROGRAM} [--force]" USAGE="${PROGRAM} [--force]"
Arguments "${@}" Arguments "${@}"
Echo_debug "Init ${PROGRAM}"
# Reading configuration files # Reading configuration files
Read_conffile config/common Read_conffile config/common
Read_conffile config/bootstrap Read_conffile config/bootstrap
@ -37,7 +37,7 @@ then
exit 0 exit 0
fi fi
Breakpoint "binary_includes: Init" Echo_message "Begin copying binary includes..."
# Requiring stage file # Requiring stage file
Require_stagefile .stage/bootstrap Require_stagefile .stage/bootstrap

View File

@ -9,21 +9,21 @@
set -e set -e
# Source common functions # Including common functions
for FUNCTION in /usr/share/live-helper/functions/*.sh LH_BASE="${LH_BASE:-/usr/share/live-helper}"
for FUNCTION in "${LH_BASE}"/functions/*.sh
do do
. ${FUNCTION} . "${FUNCTION}"
done done
# Set static variables # Setting static variables
DESCRIPTION="build iso binary image" DESCRIPTION="build iso binary image"
HELP="" HELP=""
USAGE="${PROGRAM} [--force]" USAGE="${PROGRAM} [--force]"
Arguments "${@}" Arguments "${@}"
Echo_debug "Init ${PROGRAM}"
# Reading configuration files # Reading configuration files
Read_conffile config/common Read_conffile config/common
Read_conffile config/bootstrap Read_conffile config/bootstrap
@ -32,109 +32,108 @@ Read_conffile config/binary
Read_conffile config/source Read_conffile config/source
Set_defaults Set_defaults
for IMAGE in ${LIVE_BINARY_IMAGES} if ! echo "${LIVE_BINARY_IMAGES}" | grep -qs iso
do then
if [ "${IMAGE}" = "iso" ] exit 0
then fi
Breakpoint "binary_iso: Init"
# Requiring stage file Echo_message "Begin building binary iso image..."
Require_stagefile .stage/bootstrap
# Checking stage file # Requiring stage file
Check_stagefile .stage/binary_iso Require_stagefile .stage/bootstrap
# Checking lock file # Checking stage file
Check_lockfile .lock Check_stagefile .stage/binary_iso
# Creating lock file # Checking lock file
Create_lockfile .lock Check_lockfile .lock
# Checking depends # Creating lock file
Check_package chroot/usr/bin/"${LH_GENISOIMAGE}" ${LH_GENISOIMAGE} Create_lockfile .lock
# Installing depends # Checking depends
Install_package Check_package chroot/usr/bin/"${LH_GENISOIMAGE}" ${LH_GENISOIMAGE}
# Remove old iso image # Installing depends
if [ -f binary.iso ] Install_package
then
rm -f binary.iso
fi
if [ "${LH_VERBOSE}" = "enabled" ] # Remove old iso image
then if [ -f binary.iso ]
GENISOIMAGE_OPTIONS="${GENISOIMAGE_OPTIONS} -v" then
fi rm -f binary.iso
fi
if [ -n "${LIVE_ISO_APPLICATION}" ] && [ "${LIVE_ISO_APPLICATION}" != "none" ] if [ "${LH_VERBOSE}" = "enabled" ]
then then
GENISOIMAGE_OPTIONS="${GENISOIMAGE_OPTIONS} -A \"${LIVE_ISO_APPLICATION}\"" GENISOIMAGE_OPTIONS="${GENISOIMAGE_OPTIONS} -v"
fi fi
if [ -n "${LIVE_ISO_PREPARER}" ] && [ "${LIVE_ISO_PREPARER}" != "none" ] if [ -n "${LIVE_ISO_APPLICATION}" ] && [ "${LIVE_ISO_APPLICATION}" != "none" ]
then then
GENISOIMAGE_OPTIONS="${GENISOIMAGE_OPTIONS} -p \"${LIVE_ISO_PREPARER}\"" GENISOIMAGE_OPTIONS="${GENISOIMAGE_OPTIONS} -A \"${LIVE_ISO_APPLICATION}\""
fi fi
if [ -n "${LIVE_ISO_PUBLISHER}" ] && [ "${LIVE_ISO_PUBLISHER}" != "none" ] if [ -n "${LIVE_ISO_PREPARER}" ] && [ "${LIVE_ISO_PREPARER}" != "none" ]
then then
GENISOIMAGE_OPTIONS="${GENISOIMAGE_OPTIONS} -publisher \"${LIVE_ISO_PUBLISHER}\"" GENISOIMAGE_OPTIONS="${GENISOIMAGE_OPTIONS} -p \"${LIVE_ISO_PREPARER}\""
fi fi
if [ -n "${LIVE_ISO_VOLUME}" ] && [ "${LIVE_ISO_VOLUME}" != "none" ] if [ -n "${LIVE_ISO_PUBLISHER}" ] && [ "${LIVE_ISO_PUBLISHER}" != "none" ]
then then
GENISOIMAGE_OPTIONS="${GENISOIMAGE_OPTIONS} -V \"${LIVE_ISO_VOLUME}\"" GENISOIMAGE_OPTIONS="${GENISOIMAGE_OPTIONS} -publisher \"${LIVE_ISO_PUBLISHER}\""
fi fi
# Moving image if [ -n "${LIVE_ISO_VOLUME}" ] && [ "${LIVE_ISO_VOLUME}" != "none" ]
mv binary chroot then
GENISOIMAGE_OPTIONS="${GENISOIMAGE_OPTIONS} -V \"${LIVE_ISO_VOLUME}\""
fi
# Create image # Moving image
if [ "${LIVE_ARCHITECTURE}" = "amd64" ] || [ "${LIVE_ARCHITECTURE}" = "i386" ] mv binary chroot
then
case "${LIVE_BOOTLOADER}" in
grub)
GENISOIMAGE_OPTIONS="${GENISOIMAGE_OPTIONS} -b boot/grub/stage2_eltorito"
if [ "${LIVE_PACKAGES_LISTS}" = "mini" ] || [ "${LIVE_PACKAGES_LISTS}" = "minimal" ] # Create image
then if [ "${LIVE_ARCHITECTURE}" = "amd64" ] || [ "${LIVE_ARCHITECTURE}" = "i386" ]
GENISOIMAGE_OPTIONS="${GENISOIMAGE_OPTIONS} -m boot/grub/stage2_eltorito" then
fi case "${LIVE_BOOTLOADER}" in
;; grub)
GENISOIMAGE_OPTIONS="${GENISOIMAGE_OPTIONS} -b boot/grub/stage2_eltorito"
syslinux) if [ "${LIVE_PACKAGES_LISTS}" = "mini" ] || [ "${LIVE_PACKAGES_LISTS}" = "minimal" ]
GENISOIMAGE_OPTIONS="${GENISOIMAGE_OPTIONS} -b isolinux/isolinux.bin -c isolinux/boot.cat" then
GENISOIMAGE_OPTIONS="${GENISOIMAGE_OPTIONS} -m boot/grub/stage2_eltorito"
fi
;;
if [ "${LIVE_PACKAGES_LISTS}" = "mini" ] || [ "${LIVE_PACKAGES_LISTS}" = "minimal" ] syslinux)
then GENISOIMAGE_OPTIONS="${GENISOIMAGE_OPTIONS} -b isolinux/isolinux.bin -c isolinux/boot.cat"
GENISOIMAGE_OPTIONS="${GENISOIMAGE_OPTIONS} -m isolinux/isolinux.bin"
fi
;;
*) if [ "${LIVE_PACKAGES_LISTS}" = "mini" ] || [ "${LIVE_PACKAGES_LISTS}" = "minimal" ]
Echo_warning "Bootloader on your architecture not yet supported (Continuing in 5 seconds)." then
sleep 5 GENISOIMAGE_OPTIONS="${GENISOIMAGE_OPTIONS} -m isolinux/isolinux.bin"
;; fi
esac ;;
GENISOIMAGE_OPTIONS="${GENISOIMAGE_OPTIONS} -no-emul-boot -boot-load-size 4 -boot-info-table" *)
fi Echo_warning "Bootloader on your architecture not yet supported (Continuing in 5 seconds)."
sleep 5
;;
esac
GENISOIMAGE_OPTIONS="${GENISOIMAGE_OPTIONS} -no-emul-boot -boot-load-size 4 -boot-info-table"
fi
cat >> chroot/binary.sh << EOF cat >> chroot/binary.sh << EOF
${LH_GENISOIMAGE} ${GENISOIMAGE_OPTIONS} -o binary.iso -r -J -l -cache-inodes binary ${LH_GENISOIMAGE} ${GENISOIMAGE_OPTIONS} -o binary.iso -r -J -l -cache-inodes binary
EOF EOF
Chroot "sh binary.sh" Chroot "sh binary.sh"
# Move image # Move image
mv chroot/binary chroot/binary.iso ./ mv chroot/binary chroot/binary.iso ./
rm -f chroot/binary.sh rm -f chroot/binary.sh
# Removing depends # Removing depends
Remove_package Remove_package
# Creating stage file # Creating stage file
Create_stagefile .stage/binary_iso Create_stagefile .stage/binary_iso
fi
done

View File

@ -9,21 +9,21 @@
set -e set -e
# Source common functions # Including common functions
for FUNCTION in /usr/share/live-helper/functions/*.sh LH_BASE="${LH_BASE:-/usr/share/live-helper}"
for FUNCTION in "${LH_BASE}"/functions/*.sh
do do
. ${FUNCTION} . "${FUNCTION}"
done done
# Set static variables # Setting static variables
DESCRIPTION="install linux-image into binary" DESCRIPTION="install linux-image into binary"
HELP="" HELP=""
USAGE="${PROGRAM} [--force]" USAGE="${PROGRAM} [--force]"
Arguments "${@}" Arguments "${@}"
Echo_debug "Init ${PROGRAM}"
# Reading configuration files # Reading configuration files
Read_conffile config/common Read_conffile config/common
Read_conffile config/bootstrap Read_conffile config/bootstrap
@ -32,7 +32,7 @@ Read_conffile config/binary
Read_conffile config/source Read_conffile config/source
Set_defaults Set_defaults
Breakpoint "binary_linux-image: Init" Echo_message "Begin install linux-image..."
# Requiring stage file # Requiring stage file
Require_stagefile .stage/bootstrap Require_stagefile .stage/bootstrap
@ -98,10 +98,7 @@ then
fi fi
# Creating directory # Creating directory
if [ ! -d "${DESTDIR}" ] mkdir -p "${DESTDIR}"
then
mkdir -p "${DESTDIR}"
fi
# Installing linux-image # Installing linux-image
cp chroot/boot/vmlinuz* "${DESTDIR}" cp chroot/boot/vmlinuz* "${DESTDIR}"

View File

@ -9,21 +9,21 @@
set -e set -e
# Source common functions # Including common functions
for FUNCTION in /usr/share/live-helper/functions/*.sh LH_BASE="${LH_BASE:-/usr/share/live-helper}"
for FUNCTION in "${LH_BASE}"/functions/*.sh
do do
. ${FUNCTION} . "${FUNCTION}"
done done
# Set static variables # Setting static variables
DESCRIPTION="copy files into binary" DESCRIPTION="copy files into binary"
HELP="" HELP=""
USAGE="${PROGRAM} [--force]" USAGE="${PROGRAM} [--force]"
Arguments "${@}" Arguments "${@}"
Echo_debug "Init ${PROGRAM}"
# Reading configuration files # Reading configuration files
Read_conffile config/common Read_conffile config/common
Read_conffile config/bootstrap Read_conffile config/bootstrap
@ -32,7 +32,7 @@ Read_conffile config/binary
Read_conffile config/source Read_conffile config/source
Set_defaults Set_defaults
Breakpoint "binary_local-includes: Init" Echo_message "Begin copying binary local includes..."
# Requiring stage file # Requiring stage file
Require_stagefile .stage/bootstrap Require_stagefile .stage/bootstrap
@ -46,7 +46,7 @@ Check_lockfile .lock
# Creating lock file # Creating lock file
Create_lockfile .lock Create_lockfile .lock
if ls config/binary_local-includes/* &> /dev/null if ls config/binary_local-includes/* > /dev/null 2>&1
then then
# Copying includes # Copying includes
cd config/binary_local-includes cd config/binary_local-includes

View File

@ -9,21 +9,21 @@
set -e set -e
# Source common functions # Including common functions
for FUNCTION in /usr/share/live-helper/functions/*.sh LH_BASE="${LH_BASE:-/usr/share/live-helper}"
for FUNCTION in "${LH_BASE}"/functions/*.sh
do do
. ${FUNCTION} . "${FUNCTION}"
done done
# Set static variables # Setting static variables
DESCRIPTION="create manifest" DESCRIPTION="create manifest"
HELP="" HELP=""
USAGE="${PROGRAM} [--force]" USAGE="${PROGRAM} [--force]"
Arguments "${@}" Arguments "${@}"
Echo_debug "Init ${PROGRAM}"
# Reading configuration files # Reading configuration files
Read_conffile config/common Read_conffile config/common
Read_conffile config/bootstrap Read_conffile config/bootstrap
@ -32,7 +32,7 @@ Read_conffile config/binary
Read_conffile config/source Read_conffile config/source
Set_defaults Set_defaults
Breakpoint "binary_manifest: Init" Echo_message "Begin creating manifest..."
# Requiring stage file # Requiring stage file
Require_stagefile .stage/bootstrap Require_stagefile .stage/bootstrap

View File

@ -9,21 +9,21 @@
set -e set -e
# Source common functions # Including common functions
for FUNCTION in /usr/share/live-helper/functions/*.sh LH_BASE="${LH_BASE:-/usr/share/live-helper}"
for FUNCTION in "${LH_BASE}"/functions/*.sh
do do
. ${FUNCTION} . "${FUNCTION}"
done done
# Set static variables # Setting static variables
DESCRIPTION="create binary md5sums" DESCRIPTION="create binary md5sums"
HELP="" HELP=""
USAGE="${PROGRAM} [--force]" USAGE="${PROGRAM} [--force]"
Arguments "${@}" Arguments "${@}"
Echo_debug "Init ${PROGRAM}"
# Reading configuration files # Reading configuration files
Read_conffile config/common Read_conffile config/common
Read_conffile config/bootstrap Read_conffile config/bootstrap
@ -32,7 +32,7 @@ Read_conffile config/binary
Read_conffile config/source Read_conffile config/source
Set_defaults Set_defaults
Breakpoint "binary_md5sum: Init" Echo_message "Begin creating binary md5sum.txt..."
# Requiring stage file # Requiring stage file
Require_stagefile .stage/bootstrap Require_stagefile .stage/bootstrap

View File

@ -9,21 +9,21 @@
set -e set -e
# Source common functions # Including common functions
for FUNCTION in /usr/share/live-helper/functions/*.sh LH_BASE="${LH_BASE:-/usr/share/live-helper}"
for FUNCTION in "${LH_BASE}"/functions/*.sh
do do
. ${FUNCTION} . "${FUNCTION}"
done done
# Set static variables # Setting static variables
DESCRIPTION="installs a memtest into binary" DESCRIPTION="installs a memtest into binary"
HELP="" HELP=""
USAGE="${PROGRAM} [--force]" USAGE="${PROGRAM} [--force]"
Arguments "${@}" Arguments "${@}"
Echo_debug "Init ${PROGRAM}"
# Reading configuration files # Reading configuration files
Read_conffile config/common Read_conffile config/common
Read_conffile config/bootstrap Read_conffile config/bootstrap
@ -37,7 +37,7 @@ then
exit 0 exit 0
fi fi
Breakpoint "binary_memtest: Init" Echo_message "Begin installing memtest..."
# Requiring stage file # Requiring stage file
Require_stagefile .stage/bootstrap Require_stagefile .stage/bootstrap
@ -116,10 +116,7 @@ then
fi fi
# Creating directory # Creating directory
if [ ! -d "${DESTDIR}" ] mkdir -p "${DESTDIR}"
then
mkdir -p "${DESTDIR}"
fi
# Installing memtest # Installing memtest
case "${LIVE_MEMTEST}" in case "${LIVE_MEMTEST}" in

View File

@ -9,21 +9,21 @@
set -e set -e
# Source common functions # Including common functions
for FUNCTION in /usr/share/live-helper/functions/*.sh LH_BASE="${LH_BASE:-/usr/share/live-helper}"
for FUNCTION in "${LH_BASE}"/functions/*.sh
do do
. ${FUNCTION} . "${FUNCTION}"
done done
# Set static variables # Setting static variables
DESCRIPTION="build netboot binary image" DESCRIPTION="build netboot binary image"
HELP="" HELP=""
USAGE="${PROGRAM} [--force]" USAGE="${PROGRAM} [--force]"
Arguments "${@}" Arguments "${@}"
Echo_debug "Init ${PROGRAM}"
# Reading configuration files # Reading configuration files
Read_conffile config/common Read_conffile config/common
Read_conffile config/bootstrap Read_conffile config/bootstrap
@ -32,51 +32,50 @@ Read_conffile config/binary
Read_conffile config/source Read_conffile config/source
Set_defaults Set_defaults
Breakpoint "binary_net: Init" if ! echo "${LIVE_BINARY_IMAGES}" | grep -qs net
then
exit 0
fi
for IMAGE in ${LIVE_BINARY_IMAGES} Echo_message "Begin building binary netboot image..."
do
if [ "${IMAGE}" = "net" ]
then
# Requiring stage file
Require_stagefile .stage/bootstrap
# Checking stage file # Requiring stage file
Check_stagefile .stage/binary_net Require_stagefile .stage/bootstrap
# Checking lock file # Checking stage file
Check_lockfile .lock Check_stagefile .stage/binary_net
# Creating lock file # Checking lock file
Create_lockfile .lock Check_lockfile .lock
# Remove old binary # Creating lock file
if [ -f binary-net.tar.gz ] Create_lockfile .lock
then
rm -f binary-net.tar.gz
fi
# Creating image file # Remove old binary
if [ "`basename ${LIVE_NET_PATH}`" = "chroot" ] if [ -f binary-net.tar.gz ]
then then
mv chroot chroot.tmp rm -f binary-net.tar.gz
fi fi
mv binary "`basename ${LIVE_NET_PATH}`" # Creating image file
if [ "`basename ${LIVE_NET_PATH}`" = "chroot" ]
then
mv chroot chroot.tmp
fi
cd .. mv binary "`basename ${LIVE_NET_PATH}`"
tar cfz binary-net.tar.gz "`basename ${OLDPWD}`/`basename ${LIVE_NET_PATH}`" "`basename ${OLDPWD}`/tftpboot"
mv binary-net.tar.gz "${OLDPWD}"
cd "${OLDPWD}"
mv "`basename ${LIVE_NET_PATH}`" binary cd ..
tar cfz binary-net.tar.gz "`basename ${OLDPWD}`/`basename ${LIVE_NET_PATH}`" "`basename ${OLDPWD}`/tftpboot"
mv binary-net.tar.gz "${OLDPWD}"
cd "${OLDPWD}"
if [ "`basename ${LIVE_NET_PATH}`" = "chroot" ] mv "`basename ${LIVE_NET_PATH}`" binary
then
mv chroot.tmp chroot
fi
# Creating stage file if [ "`basename ${LIVE_NET_PATH}`" = "chroot" ]
Create_stagefile .stage/binary_net then
fi mv chroot.tmp chroot
done fi
# Creating stage file
Create_stagefile .stage/binary_net

View File

@ -9,21 +9,21 @@
set -e set -e
# Source common functions # Including common functions
for FUNCTION in /usr/share/live-helper/functions/*.sh LH_BASE="${LH_BASE:-/usr/share/live-helper}"
for FUNCTION in "${LH_BASE}"/functions/*.sh
do do
. ${FUNCTION} . "${FUNCTION}"
done done
# Set static variables # Setting static variables
DESCRIPTION="build rootfs image" DESCRIPTION="build rootfs image"
HELP="" HELP=""
USAGE="${PROGRAM} [--force]" USAGE="${PROGRAM} [--force]"
Arguments "${@}" Arguments "${@}"
Echo_debug "Init ${PROGRAM}"
# Reading configuration files # Reading configuration files
Read_conffile config/common Read_conffile config/common
Read_conffile config/bootstrap Read_conffile config/bootstrap
@ -32,7 +32,7 @@ Read_conffile config/binary
Read_conffile config/source Read_conffile config/source
Set_defaults Set_defaults
Breakpoint "binary_rootfs: Init" Echo_message "Begin building root filesystem image..."
# Requiring stage file # Requiring stage file
Require_stagefile .stage/bootstrap Require_stagefile .stage/bootstrap
@ -58,10 +58,7 @@ case "${LH_INITRAMFS}" in
esac esac
# Creating directory # Creating directory
if [ ! -d binary/${INITFS} ] mkdir -p binary/${INITFS}
then
mkdir -p binary/${INITFS}
fi
case "${LIVE_CHROOT_FILESYSTEM}" in case "${LIVE_CHROOT_FILESYSTEM}" in
ext2) ext2)
@ -127,12 +124,18 @@ case "${LIVE_CHROOT_FILESYSTEM}" in
MKSQUASHFS_OPTIONS="${MKSQUASHFS_OPTIONS} -e chroot/boot/vmlinuz* chroot/boot/initrd.img* chroot/vmlinuz* chroot/initrd.img* chroot/boot/config-* chroot/boot/System.map-*" MKSQUASHFS_OPTIONS="${MKSQUASHFS_OPTIONS} -e chroot/boot/vmlinuz* chroot/boot/initrd.img* chroot/vmlinuz* chroot/initrd.img* chroot/boot/config-* chroot/boot/System.map-*"
fi fi
if [ -f config/binary_rootfs/squashfs.sort ]
then
MKSQUASHFS_OPTIONS="${MKSQUASHFS_OPTIONS} -sort squashfs.sort"
cp config/binary_rootfs/squashfs.sort chroot
fi
# Create image # Create image
Chroot "mksquashfs chroot filesystem.squashfs ${MKSQUASHFS_OPTIONS}" Chroot "mksquashfs chroot filesystem.squashfs ${MKSQUASHFS_OPTIONS}"
# Move image # Move image
${LH_ROOT_COMMAND} mv chroot/filesystem.squashfs binary/${INITFS} ${LH_ROOT_COMMAND} mv chroot/filesystem.squashfs binary/${INITFS}
${LH_ROOT_COMMAND} rm -rf chroot/chroot ${LH_ROOT_COMMAND} rm -rf chroot/chroot chroot/squashfs.sort
if [ -n "${LH_ROOT_COMMAND}" ] if [ -n "${LH_ROOT_COMMAND}" ]
then then

View File

@ -9,21 +9,21 @@
set -e set -e
# Source common functions # Including common functions
for FUNCTION in /usr/share/live-helper/functions/*.sh LH_BASE="${LH_BASE:-/usr/share/live-helper}"
for FUNCTION in "${LH_BASE}"/functions/*.sh
do do
. ${FUNCTION} . "${FUNCTION}"
done done
# Set static variables # Setting static variables
DESCRIPTION="installs syslinux into binary" DESCRIPTION="installs syslinux into binary"
HELP="" HELP=""
USAGE="${PROGRAM} [--force]" USAGE="${PROGRAM} [--force]"
Arguments "${@}" Arguments "${@}"
Echo_debug "Init ${PROGRAM}"
# Reading configuration files # Reading configuration files
Read_conffile config/common Read_conffile config/common
Read_conffile config/bootstrap Read_conffile config/bootstrap
@ -37,7 +37,7 @@ then
exit 0 exit 0
fi fi
Breakpoint "binary_syslinux: Init" Echo_message "Begin installing syslinux..."
# Requiring stage file # Requiring stage file
Require_stagefile .stage/bootstrap Require_stagefile .stage/bootstrap
@ -137,10 +137,7 @@ then
fi fi
# Creating directory # Creating directory
if [ ! -d "${DESTDIR_LIVE}" ] mkdir -p "${DESTDIR_LIVE}"
then
mkdir -p "${DESTDIR_LIVE}"
fi
# Setting boot parameters # Setting boot parameters
if [ -n "${LIVE_ENCRYPTION}" ] if [ -n "${LIVE_ENCRYPTION}" ]
@ -174,7 +171,7 @@ then
live-initramfs) live-initramfs)
if [ "${LIVE_HOSTNAME}" != "debian" ] if [ "${LIVE_HOSTNAME}" != "debian" ]
then then
LIVE_BOOTAPPEND="${LIVE_BOOTAPPEND} username=${LIVE_HOSTNAME}" LIVE_BOOTAPPEND="${LIVE_BOOTAPPEND} hostname=${LIVE_HOSTNAME}"
fi fi
;; ;;
esac esac

View File

@ -1,6 +1,6 @@
#!/bin/sh #!/bin/sh
# lh_binary_usb-hdd(1) - build binary image # lh_binary_usb-hdd(1) - build binary usb-hdd image
# Copyright (C) 2006-2007 Daniel Baumann <daniel@debian.org> # Copyright (C) 2006-2007 Daniel Baumann <daniel@debian.org>
# #
# live-helper comes with ABSOLUTELY NO WARRANTY; for details see COPYING. # live-helper comes with ABSOLUTELY NO WARRANTY; for details see COPYING.
@ -9,21 +9,21 @@
set -e set -e
# Source common functions # Including common functions
for FUNCTION in /usr/share/live-helper/functions/*.sh LH_BASE="${LH_BASE:-/usr/share/live-helper}"
for FUNCTION in "${LH_BASE}"/functions/*.sh
do do
. ${FUNCTION} . "${FUNCTION}"
done done
# Set static variables # Setting static variables
DESCRIPTION="build binary image" DESCRIPTION="build binary image"
HELP="" HELP=""
USAGE="${PROGRAM} [--force]" USAGE="${PROGRAM} [--force]"
Arguments "${@}" Arguments "${@}"
Echo_debug "Init ${PROGRAM}"
# Reading configuration files # Reading configuration files
Read_conffile config/common Read_conffile config/common
Read_conffile config/bootstrap Read_conffile config/bootstrap
@ -32,127 +32,126 @@ Read_conffile config/binary
Read_conffile config/source Read_conffile config/source
Set_defaults Set_defaults
Breakpoint "binary_usb-hdd: Init" if ! echo "${LIVE_BINARY_IMAGES}" | grep -qs usb-hdd
then
exit 0
fi
for IMAGE in ${LIVE_BINARY_IMAGES} Echo_message "Begin building binary usb-hdd image..."
do
if [ "${IMAGE}" = "usb-hdd" ]
then
# Requiring stage file
Require_stagefile .stage/bootstrap
Require_stagefile .stage/chroot_proc
# Checking stage file # Requiring stage file
Check_stagefile .stage/binary_usb-hdd Require_stagefile .stage/bootstrap
Require_stagefile .stage/chroot_proc
# Checking lock file # Checking stage file
Check_lockfile .lock Check_stagefile .stage/binary_usb-hdd
# Creating lock file # Checking lock file
Create_lockfile .lock Check_lockfile .lock
# Checking depends # Creating lock file
Check_package chroot/sbin/mkdosfs dosfstools Create_lockfile .lock
Check_package chroot/usr/sbin/mtools mtools
Check_package chroot/sbin/parted parted
case "${LIVE_BOOTLOADER}" in # Checking depends
grub) Check_package chroot/sbin/mkdosfs dosfstools
Check_package chroot/usr/sbin/grub grub Check_package chroot/usr/sbin/mtools mtools
;; Check_package chroot/sbin/parted parted
syslinux) case "${LIVE_BOOTLOADER}" in
Check_package chroot/usr/bin/syslinux syslinux grub)
;; Check_package chroot/usr/sbin/grub grub
esac ;;
# Installing depends syslinux)
Install_package Check_package chroot/usr/bin/syslinux syslinux
;;
esac
# Remove old binary # Installing depends
if [ -f binary.img ] Install_package
then
rm -f binary.img
fi
# Everything which comes here needs to be cleaned up, # Remove old binary
DU_DIM="`du -ms binary | cut -f1`" if [ -f binary.img ]
REAL_DIM="`expr ${DU_DIM} + ${DU_DIM} / 50`" # Just 2% more to be sure, need something more sophistcated here... then
dd if=/dev/zero of=binary.img bs=1024k count=${REAL_DIM} rm -f binary.img
FREELO="`${LH_LOSETUP} -f`" fi
if [ ! -b chroot/${FREELO} ]
then
MAKEDEV="true"
mv chroot/dev chroot/dev.tmp # Everything which comes here needs to be cleaned up,
find /dev | cpio -dmpu chroot DU_DIM="`du -ms binary | cut -f1`"
fi REAL_DIM="`expr ${DU_DIM} + ${DU_DIM} / 50`" # Just 2% more to be sure, need something more sophistcated here...
dd if=/dev/zero of=binary.img bs=1024k count=${REAL_DIM}
FREELO="`${LH_LOSETUP} -f`"
if [ ! -b chroot/${FREELO} ]
then
MAKEDEV="true"
echo "!!! The following error/warning messages can be ignored !!!" mv chroot/dev chroot/dev.tmp
lh_losetup $FREELO binary.img 0 find /dev | cpio -dmpu chroot
Chroot "parted -s ${FREELO} mklabel msdos" || true fi
Chroot "parted -s ${FREELO} mkpartfs primary fat16 0.0 100%" || true
Chroot "parted -s ${FREELO} set 1 boot on" || true
Chroot "parted -s ${FREELO} set 1 lba off" || true
case "${LIVE_BOOTLOADER}" in echo "!!! The following error/warning messages can be ignored !!!"
grub) lh_losetup $FREELO binary.img 0
#echo "(hd0) ${FREELO}" > binary/boot/grub/device.map Chroot "parted -s ${FREELO} mklabel msdos" || true
Chroot "parted -s ${FREELO} mkpartfs primary fat16 0.0 100%" || true
Chroot "parted -s ${FREELO} set 1 boot on" || true
Chroot "parted -s ${FREELO} set 1 lba off" || true
case "${LIVE_BOOTLOADER}" in
grub)
#echo "(hd0) ${FREELO}" > binary/boot/grub/device.map
#grub --batch --no-floppy --device-map=binary/boot/grub/device.map << EOF #grub --batch --no-floppy --device-map=binary/boot/grub/device.map << EOF
#setup --stage1=binary/boot/grub/stage1 --stage2=binary/boot/grub/stage2 --prefix=/boot/grub (hd0) #setup --stage1=binary/boot/grub/stage1 --stage2=binary/boot/grub/stage2 --prefix=/boot/grub (hd0)
# #
#quit #quit
#EOF #EOF
#rm -f binary/boot/grub/device.map #rm -f binary/boot/grub/device.map
#Chroot "grub-install --no-floppy --root-directory=/ (hd0)" #Chroot "grub-install --no-floppy --root-directory=/ (hd0)"
;; ;;
syslinux) syslinux)
cat chroot/usr/lib/syslinux/mbr.bin > ${FREELO} cat chroot/usr/lib/syslinux/mbr.bin > ${FREELO}
;; ;;
esac esac
${LH_LOSETUP} -d ${FREELO} ${LH_LOSETUP} -d ${FREELO}
FREELO="`${LH_LOSETUP} -f`" FREELO="`${LH_LOSETUP} -f`"
lh_losetup $FREELO binary.img 1 lh_losetup $FREELO binary.img 1
Chroot " mkfs.vfat -F 16 -n DEBIAN_LIVE ${FREELO}" Chroot " mkfs.vfat -F 16 -n DEBIAN_LIVE ${FREELO}"
mkdir -p binary.tmp mkdir -p binary.tmp
${LH_ROOT_COMMAND} mount ${FREELO} binary.tmp ${LH_ROOT_COMMAND} mount ${FREELO} binary.tmp
cp -r binary/* binary.tmp cp -r binary/* binary.tmp
${LH_ROOT_COMMAND} umount binary.tmp ${LH_ROOT_COMMAND} umount binary.tmp
rmdir binary.tmp rmdir binary.tmp
if [ "${LIVE_BOOTLOADER}" = "syslinux" ] if [ "${LIVE_BOOTLOADER}" = "syslinux" ]
then then
Chroot "syslinux ${FREELO}" Chroot "syslinux ${FREELO}"
fi fi
${LH_LOSETUP} -d ${FREELO} ${LH_LOSETUP} -d ${FREELO}
#if [ "${LIVE_BOOTLOADER}" = "grub" ] #if [ "${LIVE_BOOTLOADER}" = "grub" ]
#then #then
# FREELO="`${LH_LOSETUP} -f`" # FREELO="`${LH_LOSETUP} -f`"
# lh_losetup $FREELO binary.img 0 # lh_losetup $FREELO binary.img 0
# dd if=binary/boot/grub/stage1 of=${FREELO} bs=512 count=1 # dd if=binary/boot/grub/stage1 of=${FREELO} bs=512 count=1
# dd if=binary/boot/grub/stage2 of=${FREELO} bs=512 seek=1 # dd if=binary/boot/grub/stage2 of=${FREELO} bs=512 seek=1
# ${LH_LOSETUP} -d ${FREELO} # ${LH_LOSETUP} -d ${FREELO}
#fi #fi
echo "!!! The above error/warning messages can be ignored !!!" echo "!!! The above error/warning messages can be ignored !!!"
if [ -n "${MAKEDEV}" ] if [ -n "${MAKEDEV}" ]
then then
rm -f chroot/dev rm -f chroot/dev
mv chroot/dev.tmp chroot/dev mv chroot/dev.tmp chroot/dev
fi fi
# Removing depends # Removing depends
Remove_package Remove_package
# Creating stage file # Creating stage file
Create_stagefile .stage/binary_usb-hdd Create_stagefile .stage/binary_usb-hdd
fi
done

View File

@ -9,21 +9,21 @@
set -e set -e
# Source common functions # Including common functions
for FUNCTION in /usr/share/live-helper/functions/*.sh LH_BASE="${LH_BASE:-/usr/share/live-helper}"
for FUNCTION in "${LH_BASE}"/functions/*.sh
do do
. ${FUNCTION} . "${FUNCTION}"
done done
# Set static variables # Setting static variables
DESCRIPTION="installs yaboot into binary" DESCRIPTION="installs yaboot into binary"
HELP="" HELP=""
USAGE="${PROGRAM} [--force]" USAGE="${PROGRAM} [--force]"
Arguments "${@}" Arguments "${@}"
Echo_debug "Init ${PROGRAM}"
# Reading configuration files # Reading configuration files
Read_conffile config/common Read_conffile config/common
Read_conffile config/bootstrap Read_conffile config/bootstrap
@ -37,7 +37,7 @@ then
exit 0 exit 0
fi fi
Breakpoint "binary_yaboot: Init" Echo_message "Begin installing yaboot..."
# Requiring stage file # Requiring stage file
Require_stagefile .stage/bootstrap Require_stagefile .stage/bootstrap
@ -113,10 +113,7 @@ then
fi fi
# Creating directory # Creating directory
if [ ! -d "${DESTDIR}" ] mkdir -p "${DESTDIR}"
then
mkdir -p "${DESTDIR}"
fi
# Setting boot parameters # Setting boot parameters
if [ -n "${LIVE_ENCRYPTION}" ] if [ -n "${LIVE_ENCRYPTION}" ]

View File

@ -9,26 +9,21 @@
set -e set -e
# Source common functions # Including common functions
for FUNCTION in /usr/share/live-helper/functions/*.sh LH_BASE="${LH_BASE:-/usr/share/live-helper}"
for FUNCTION in "${LH_BASE}"/functions/*.sh
do do
. ${FUNCTION} . "${FUNCTION}"
done done
# Set static variables # Setting static variables
DESCRIPTION="bootstrap a Debian system" DESCRIPTION="bootstrap a Debian system"
HELP="" HELP=""
USAGE="${PROGRAM} [--force]" USAGE="${PROGRAM} [--force]"
Arguments "${@}" Arguments "${@}"
Echo_debug "Init ${PROGRAM}"
# Starting helper
Echo_debug "Init ${PROGRAM}"
Breakpoint "bootstrap: Init"
# Reading configuration files # Reading configuration files
Read_conffile config/common Read_conffile config/common
Read_conffile config/bootstrap Read_conffile config/bootstrap

View File

@ -9,24 +9,21 @@
set -e set -e
# Source common functions # Including common functions
for FUNCTION in /usr/share/live-helper/functions/*.sh LH_BASE="${LH_BASE:-/usr/share/live-helper}"
for FUNCTION in "${LH_BASE}"/functions/*.sh
do do
. ${FUNCTION} . "${FUNCTION}"
done done
# Set static variables # Setting static variables
DESCRIPTION="bootstrap a Debian system with cdebootstrap(1)" DESCRIPTION="bootstrap a Debian system with cdebootstrap(1)"
HELP="" HELP=""
USAGE="${PROGRAM} [--force]" USAGE="${PROGRAM} [--force]"
Arguments "${@}" Arguments "${@}"
# Ensure that a system is built as root
lh_testroot
Echo_debug "Init ${PROGRAM}"
# Reading configuration files # Reading configuration files
Read_conffile config/common Read_conffile config/common
Read_conffile config/bootstrap Read_conffile config/bootstrap
@ -35,13 +32,16 @@ Read_conffile config/binary
Read_conffile config/source Read_conffile config/source
Set_defaults Set_defaults
Breakpoint "bootstrap_cdeboostrap: Init"
if [ "${LH_BOOTSTRAP}" != "cdebootstrap" ] if [ "${LH_BOOTSTRAP}" != "cdebootstrap" ]
then then
exit 0 exit 0
fi fi
Echo_message "Begin bootstrapping system..."
# Ensure that a system is built as root
lh_testroot
# Checking stage file # Checking stage file
Check_stagefile .stage/bootstrap Check_stagefile .stage/bootstrap
@ -52,10 +52,7 @@ Check_lockfile .lock
Create_lockfile .lock Create_lockfile .lock
# Creating chroot directory # Creating chroot directory
if [ ! -d chroot ] mkdir -p chroot
then
mkdir -p chroot
fi
# Setting cdebootstrap options # Setting cdebootstrap options
if [ -n "${LIVE_ARCHITECTURE}" ] if [ -n "${LIVE_ARCHITECTURE}" ]
@ -68,6 +65,11 @@ then
CDEBOOTSTRAP_OPTIONS="${CDEBOOTSTRAP_OPTIONS} --suite-config=${LIVE_BOOTSTRAP_CONFIG}" CDEBOOTSTRAP_OPTIONS="${CDEBOOTSTRAP_OPTIONS} --suite-config=${LIVE_BOOTSTRAP_CONFIG}"
fi fi
if [ -n "${LIVE_BOOTSTRAP_KEYRING}" ]
then
CDEBOOTSTRAP_OPTIONS="${CDEBOOTSTRAP_OPTIONS} --keyring=${LIVE_BOOTSTRAP_KEYRING}"
fi
if [ "${LIVE_PACKAGES_LISTS}" != "minimal" ] && [ "${LIVE_PACKAGES_LISTS}" != "mini" ] if [ "${LIVE_PACKAGES_LISTS}" != "minimal" ] && [ "${LIVE_PACKAGES_LISTS}" != "mini" ]
then then
CDEBOOTSTRAP_OPTIONS="${CDEBOOTSTRAP_OPTIONS} --flavour=standard" CDEBOOTSTRAP_OPTIONS="${CDEBOOTSTRAP_OPTIONS} --flavour=standard"
@ -134,10 +136,7 @@ then
fi fi
# Saving new cache # Saving new cache
if [ ! -d cache/packages_bootstrap ] mkdir -p cache/packages_bootstrap
then
mkdir -p cache/packages_bootstrap
fi
cp chroot/var/cache/bootstrap/*.deb cache/packages_bootstrap cp chroot/var/cache/bootstrap/*.deb cache/packages_bootstrap
fi fi
@ -174,10 +173,7 @@ then
rm -rf cache/stages_bootstrap rm -rf cache/stages_bootstrap
fi fi
if [ ! -d cache ] mkdir -p cache
then
mkdir cache
fi
${LH_ROOT_COMMAND} cp -a chroot cache/stages_bootstrap ${LH_ROOT_COMMAND} cp -a chroot cache/stages_bootstrap

View File

@ -9,24 +9,21 @@
set -e set -e
# Source common functions # Including common functions
for FUNCTION in /usr/share/live-helper/functions/*.sh LH_BASE="${LH_BASE:-/usr/share/live-helper}"
for FUNCTION in "${LH_BASE}"/functions/*.sh
do do
. ${FUNCTION} . "${FUNCTION}"
done done
# Set static variables # Setting static variables
DESCRIPTION="bootstrap a Debian system with debootstrap(8)" DESCRIPTION="bootstrap a Debian system with debootstrap(8)"
HELP="" HELP=""
USAGE="${PROGRAM} [--force]" USAGE="${PROGRAM} [--force]"
Arguments "${@}" Arguments "${@}"
# Ensure that a system is built as root
lh_testroot
Echo_debug "Init ${PROGRAM}"
# Reading configuration files # Reading configuration files
Read_conffile config/common Read_conffile config/common
Read_conffile config/bootstrap Read_conffile config/bootstrap
@ -35,13 +32,16 @@ Read_conffile config/binary
Read_conffile config/source Read_conffile config/source
Set_defaults Set_defaults
Breakpoint "bootstrap_debootstrap: Init"
if [ "${LH_BOOTSTRAP}" != "debootstrap" ] if [ "${LH_BOOTSTRAP}" != "debootstrap" ]
then then
exit 0 exit 0
fi fi
Echo_message "Begin bootstrapping system..."
# Ensure that a system is built as root
lh_testroot
# Checking stage file # Checking stage file
Check_stagefile .stage/bootstrap Check_stagefile .stage/bootstrap
@ -52,10 +52,7 @@ Check_lockfile .lock
Create_lockfile .lock Create_lockfile .lock
# Creating chroot directory # Creating chroot directory
if [ ! -d chroot ] mkdir -p chroot
then
mkdir -p chroot
fi
# Setting debootstrap options # Setting debootstrap options
if [ -n "${LIVE_ARCHITECTURE}" ] if [ -n "${LIVE_ARCHITECTURE}" ]
@ -117,10 +114,7 @@ then
fi fi
# Saving new cache # Saving new cache
if [ ! -d cache/packages_bootstrap ] mkdir -p cache/packages_bootstrap
then
mkdir -p cache/packages_bootstrap
fi
cp chroot/var/cache/apt/archives/*.deb cache/packages_bootstrap cp chroot/var/cache/apt/archives/*.deb cache/packages_bootstrap
fi fi
@ -146,10 +140,7 @@ then
rm -rf cache/stages_bootstrap rm -rf cache/stages_bootstrap
fi fi
if [ ! -d cache ] mkdir -p cache
then
mkdir cache
fi
${LH_ROOT_COMMAND} cp -a chroot cache/stages_bootstrap ${LH_ROOT_COMMAND} cp -a chroot cache/stages_bootstrap

View File

@ -9,30 +9,29 @@
set -e set -e
# Source common functions # Including common functions
for FUNCTION in /usr/share/live-helper/functions/*.sh LH_BASE="${LH_BASE:-/usr/share/live-helper}"
for FUNCTION in "${LH_BASE}"/functions/*.sh
do do
. ${FUNCTION} . "${FUNCTION}"
done done
# Set static variables # Setting static variables
DESCRIPTION="build a Debian Live system" DESCRIPTION="build a Debian Live system"
HELP="" HELP=""
USAGE="${PROGRAM} [--force]" USAGE="${PROGRAM} [--force]"
Arguments "${@}" Arguments "${@}"
Echo_debug "Init ${PROGRAM}"
Breakpoint "build: Init"
# Bootstrapping system # Bootstrapping system
lh_bootstrap ${*} lh_bootstrap ${*}
# Customizing chroot # Customizing chroot
lh_chroot ${*} lh_chroot ${*}
# Building binary image # Building binary images
lh_binary ${*} lh_binary ${*}
# Building source image # Building source images
lh_source ${*} lh_source ${*}

View File

@ -9,21 +9,21 @@
set -e set -e
# Source common functions # Including common functions
for FUNCTION in /usr/share/live-helper/functions/*.sh LH_BASE="${LH_BASE:-/usr/share/live-helper}"
for FUNCTION in "${LH_BASE}"/functions/*.sh
do do
. ${FUNCTION} . "${FUNCTION}"
done done
# Set static variables # Setting static variables
DESCRIPTION="customize the Debian system" DESCRIPTION="customize the Debian system"
HELP="" HELP=""
USAGE="${PROGRAM} [--force]" USAGE="${PROGRAM} [--force]"
Arguments "${@}" Arguments "${@}"
Echo_debug "Init ${PROGRAM}"
# Reading configuration files # Reading configuration files
Read_conffile config/common Read_conffile config/common
Read_conffile config/bootstrap Read_conffile config/bootstrap
@ -32,8 +32,6 @@ Read_conffile config/binary
Read_conffile config/source Read_conffile config/source
Set_defaults Set_defaults
Breakpoint "chroot: Init"
# Configuring chroot # Configuring chroot
lh_chroot_proc install ${*} lh_chroot_proc install ${*}
lh_chroot_sysfs install ${*} lh_chroot_sysfs install ${*}
@ -46,6 +44,7 @@ lh_chroot_sources install ${*}
lh_chroot_linux-image install ${*} lh_chroot_linux-image install ${*}
# Customizing chroot # Customizing chroot
lh_chroot_preseed ${*}
lh_chroot_tasks ${*} lh_chroot_tasks ${*}
lh_chroot_packageslists ${*} lh_chroot_packageslists ${*}
lh_chroot_packages ${*} lh_chroot_packages ${*}

View File

@ -9,21 +9,21 @@
set -e set -e
# Source common functions # Including common functions
for FUNCTION in /usr/share/live-helper/functions/*.sh LH_BASE="${LH_BASE:-/usr/share/live-helper}"
for FUNCTION in "${LH_BASE}"/functions/*.sh
do do
. ${FUNCTION} . "${FUNCTION}"
done done
# Set static variables # Setting static variables
DESCRIPTION="manage /etc/apt/apt.conf" DESCRIPTION="manage /etc/apt/apt.conf"
HELP="" HELP=""
USAGE="${PROGRAM} {install|remove} [--force]" USAGE="${PROGRAM} {install|remove} [--force]"
Arguments "${@}" Arguments "${@}"
Echo_debug "Init ${PROGRAM}"
# Reading configuration files # Reading configuration files
Read_conffile config/common Read_conffile config/common
Read_conffile config/bootstrap Read_conffile config/bootstrap
@ -32,7 +32,7 @@ Read_conffile config/binary
Read_conffile config/source Read_conffile config/source
Set_defaults Set_defaults
Breakpoint "chroot_apt: Init" Echo_message "Configuring file /etc/apt/apt.conf"
# Requiring stage file # Requiring stage file
Require_stagefile .stage/bootstrap Require_stagefile .stage/bootstrap
@ -48,10 +48,7 @@ case "${1}" in
# Creating lock file # Creating lock file
Create_lockfile .lock Create_lockfile .lock
if [ ! -d chroot/etc/apt/apt.conf.d ] mkdir -p chroot/etc/apt/apt.conf.d
then
mkdir -p chroot/etc/apt/apt.conf.d
fi
# Configuring apt ftp proxy # Configuring apt ftp proxy
if [ -n "${LH_APT_FTPPROXY}" ] if [ -n "${LH_APT_FTPPROXY}" ]
@ -76,6 +73,12 @@ case "${1}" in
;; ;;
esac esac
# Configuring apt pipeline
if [ -n "${LH_APT_PIPELINE}" ]
then
echo "Acquire::http::Pipeline-Depth \"${LH_APT_PIPELINE}\";" > chroot/etc/apt/apt.conf.d/00pipeline
fi
# Configuring apt recommends # Configuring apt recommends
if [ "${LH_APT}" = "aptitude" ] if [ "${LH_APT}" = "aptitude" ]
then then
@ -123,6 +126,9 @@ case "${1}" in
# Deconfiguring aptitude pdiffs # Deconfiguring aptitude pdiffs
rm -f chroot/etc/apt/apt.conf.d/00pdiffs rm -f chroot/etc/apt/apt.conf.d/00pdiffs
# Deconfiguring aptitude pipeline
rm -f chroot/etc/apt/apt.conf.d/00pipeline
# Deconfiguring aptitude recommends # Deconfiguring aptitude recommends
rm -f chroot/etc/apt/apt.conf.d/00recommends rm -f chroot/etc/apt/apt.conf.d/00recommends

View File

@ -9,21 +9,21 @@
set -e set -e
# Source common functions # Including common functions
for FUNCTION in /usr/share/live-helper/functions/*.sh LH_BASE="${LH_BASE:-/usr/share/live-helper}"
for FUNCTION in "${LH_BASE}"/functions/*.sh
do do
. ${FUNCTION} . "${FUNCTION}"
done done
# Set static variables # Setting static variables
DESCRIPTION="manage /etc/debian_chroot" DESCRIPTION="manage /etc/debian_chroot"
HELP="" HELP=""
USAGE="${PROGRAM} {install|remove} [--force]" USAGE="${PROGRAM} {install|remove} [--force]"
Arguments "${@}" Arguments "${@}"
Echo_debug "Init ${PROGRAM}"
# Reading configuration files # Reading configuration files
Read_conffile config/common Read_conffile config/common
Read_conffile config/bootstrap Read_conffile config/bootstrap
@ -32,7 +32,7 @@ Read_conffile config/binary
Read_conffile config/source Read_conffile config/source
Set_defaults Set_defaults
Breakpoint "chroot_debianchroot: Init" Echo_message "Configuring file /etc/debian_chroot"
# Requiring stage file # Requiring stage file
Require_stagefile .stage/bootstrap Require_stagefile .stage/bootstrap

View File

@ -9,21 +9,21 @@
set -e set -e
# Source common functions # Including common functions
for FUNCTION in /usr/share/live-helper/functions/*.sh LH_BASE="${LH_BASE:-/usr/share/live-helper}"
for FUNCTION in "${LH_BASE}"/functions/*.sh
do do
. ${FUNCTION} . "${FUNCTION}"
done done
# Set static variables # Setting static variables
DESCRIPTION="execute hacks in chroot" DESCRIPTION="execute hacks in chroot"
HELP="" HELP=""
USAGE="${PROGRAM} [--force]" USAGE="${PROGRAM} [--force]"
Arguments "${@}" Arguments "${@}"
Echo_debug "Init ${PROGRAM}"
# Reading configuration files # Reading configuration files
Read_conffile config/common Read_conffile config/common
Read_conffile config/bootstrap Read_conffile config/bootstrap
@ -32,7 +32,7 @@ Read_conffile config/binary
Read_conffile config/source Read_conffile config/source
Set_defaults Set_defaults
Breakpoint "chroot_hacks: Init" Echo_message "Begin executing hacks..."
# Requiring stage file # Requiring stage file
Require_stagefile .stage/bootstrap Require_stagefile .stage/bootstrap

View File

@ -9,21 +9,21 @@
set -e set -e
# Source common functions # Including common functions
for FUNCTION in /usr/share/live-helper/functions/*.sh LH_BASE="${LH_BASE:-/usr/share/live-helper}"
for FUNCTION in "${LH_BASE}"/functions/*.sh
do do
. ${FUNCTION} . "${FUNCTION}"
done done
# Set static variables # Setting static variables
DESCRIPTION="execute hooks in chroot" DESCRIPTION="execute hooks in chroot"
HELP="" HELP=""
USAGE="${PROGRAM} [--force]" USAGE="${PROGRAM} [--force]"
Arguments "${@}" Arguments "${@}"
Echo_debug "Init ${PROGRAM}"
# Reading configuration files # Reading configuration files
Read_conffile config/common Read_conffile config/common
Read_conffile config/bootstrap Read_conffile config/bootstrap
@ -32,7 +32,7 @@ Read_conffile config/binary
Read_conffile config/source Read_conffile config/source
Set_defaults Set_defaults
Breakpoint "chroot_hooks: Init" Echo_message "Begin executing hooks..."
# Requiring stage file # Requiring stage file
Require_stagefile .stage/bootstrap Require_stagefile .stage/bootstrap
@ -49,10 +49,10 @@ Create_lockfile .lock
# Processing hooks # Processing hooks
for HOOK in ${LIVE_PACKAGES_LISTS} ${LIVE_TASKS} for HOOK in ${LIVE_PACKAGES_LISTS} ${LIVE_TASKS}
do do
if [ -f /usr/share/live-helper/hooks/"${HOOK}" ] if [ -f ${LH_BASE:-/usr/share/live-helper}/hooks/"${HOOK}" ]
then then
# Copying hook # Copying hook
cp /usr/share/live-helper/hooks/"${HOOK}" chroot/root cp ${LH_BASE:-/usr/share/live-helper}/hooks/"${HOOK}" chroot/root
# Making hook executable # Making hook executable
if [ ! -x chroot/root/"${HOOK}" ] if [ ! -x chroot/root/"${HOOK}" ]

View File

@ -9,21 +9,21 @@
set -e set -e
# Source common functions # Including common functions
for FUNCTION in /usr/share/live-helper/functions/*.sh LH_BASE="${LH_BASE:-/usr/share/live-helper}"
for FUNCTION in "${LH_BASE}"/functions/*.sh
do do
. ${FUNCTION} . "${FUNCTION}"
done done
# Set static variables # Setting static variables
DESCRIPTION="manage /etc/hosts" DESCRIPTION="manage /etc/hosts"
HELP="" HELP=""
USAGE="${PROGRAM} {install|remove} [--force]" USAGE="${PROGRAM} {install|remove} [--force]"
Arguments "${@}" Arguments "${@}"
Echo_debug "Init ${PROGRAM}"
# Reading configuration files # Reading configuration files
Read_conffile config/common Read_conffile config/common
Read_conffile config/bootstrap Read_conffile config/bootstrap
@ -32,7 +32,7 @@ Read_conffile config/binary
Read_conffile config/source Read_conffile config/source
Set_defaults Set_defaults
Breakpoint "chroot_hosts: Init" Echo_message "Configuring file /etc/hosts"
# Requiring stage file # Requiring stage file
Require_stagefile .stage/bootstrap Require_stagefile .stage/bootstrap

View File

@ -9,21 +9,21 @@
set -e set -e
# Source common functions # Including common functions
for FUNCTION in /usr/share/live-helper/functions/*.sh LH_BASE="${LH_BASE:-/usr/share/live-helper}"
for FUNCTION in "${LH_BASE}"/functions/*.sh
do do
. ${FUNCTION} . "${FUNCTION}"
done done
# Set static variables # Setting static variables
DESCRIPTION="make build interactive" DESCRIPTION="make build interactive"
HELP="" HELP=""
USAGE="${PROGRAM} [--force]" USAGE="${PROGRAM} [--force]"
Arguments "${@}" Arguments "${@}"
Echo_debug "Init ${PROGRAM}"
# Reading configuration files # Reading configuration files
Read_conffile config/common Read_conffile config/common
Read_conffile config/bootstrap Read_conffile config/bootstrap
@ -32,13 +32,13 @@ Read_conffile config/binary
Read_conffile config/source Read_conffile config/source
Set_defaults Set_defaults
Breakpoint "chroot_interactive: Init"
if [ "${LIVE_INTERACTIVE}" = "disabled" ] if [ "${LIVE_INTERACTIVE}" = "disabled" ]
then then
exit 0 exit 0
fi fi
Echo_message "Begin interactive build..."
# Requiring stage file # Requiring stage file
Require_stagefile .stage/bootstrap Require_stagefile .stage/bootstrap

View File

@ -9,21 +9,21 @@
set -e set -e
# Source common functions # Including common functions
for FUNCTION in /usr/share/live-helper/functions/*.sh LH_BASE="${LH_BASE:-/usr/share/live-helper}"
for FUNCTION in "${LH_BASE}"/functions/*.sh
do do
. ${FUNCTION} . "${FUNCTION}"
done done
# Set static variables # Setting static variables
DESCRIPTION="manage /etc/kernel-img.conf" DESCRIPTION="manage /etc/kernel-img.conf"
HELP="" HELP=""
USAGE="${PROGRAM} {install|remove} [--force]" USAGE="${PROGRAM} {install|remove} [--force]"
Arguments "${@}" Arguments "${@}"
Echo_debug "Init ${PROGRAM}"
# Reading configuration files # Reading configuration files
Read_conffile config/common Read_conffile config/common
Read_conffile config/bootstrap Read_conffile config/bootstrap
@ -32,7 +32,7 @@ Read_conffile config/binary
Read_conffile config/source Read_conffile config/source
Set_defaults Set_defaults
Breakpoint "chroot_linux-image: Init" Echo_message "Configuring file /etc/kernel-img.conf"
# Requiring stage file # Requiring stage file
Require_stagefile .stage/bootstrap Require_stagefile .stage/bootstrap

View File

@ -9,21 +9,21 @@
set -e set -e
# Source common functions # Including common functions
for FUNCTION in /usr/share/live-helper/functions/*.sh LH_BASE="${LH_BASE:-/usr/share/live-helper}"
for FUNCTION in "${LH_BASE}"/functions/*.sh
do do
. ${FUNCTION} . "${FUNCTION}"
done done
# Set static variables # Setting static variables
DESCRIPTION="execute local hooks in chroot" DESCRIPTION="execute local hooks in chroot"
HELP="" HELP=""
USAGE="${PROGRAM} [--force]" USAGE="${PROGRAM} [--force]"
Arguments "${@}" Arguments "${@}"
Echo_debug "Init ${PROGRAM}"
# Reading configuration files # Reading configuration files
Read_conffile config/common Read_conffile config/common
Read_conffile config/bootstrap Read_conffile config/bootstrap
@ -32,7 +32,7 @@ Read_conffile config/binary
Read_conffile config/source Read_conffile config/source
Set_defaults Set_defaults
Breakpoint "chroot_local-hooks: Init" Echo_message "Begin executing local hooks..."
# Requiring stage file # Requiring stage file
Require_stagefile .stage/bootstrap Require_stagefile .stage/bootstrap
@ -47,7 +47,7 @@ Check_lockfile .lock
Create_lockfile .lock Create_lockfile .lock
# Processing local-hooks # Processing local-hooks
if ls config/chroot_local-hooks/* &> /dev/null if ls config/chroot_local-hooks/* > /dev/null 2>&1
then then
for HOOK in config/chroot_local-hooks/* for HOOK in config/chroot_local-hooks/*
do do

View File

@ -9,21 +9,21 @@
set -e set -e
# Source common functions # Including common functions
for FUNCTION in /usr/share/live-helper/functions/*.sh LH_BASE="${LH_BASE:-/usr/share/live-helper}"
for FUNCTION in "${LH_BASE}"/functions/*.sh
do do
. ${FUNCTION} . "${FUNCTION}"
done done
# Set static variables # Setting static variables
DESCRIPTION="copy local files into chroot" DESCRIPTION="copy local files into chroot"
HELP="" HELP=""
USAGE="${PROGRAM} [--force]" USAGE="${PROGRAM} [--force]"
Arguments "${@}" Arguments "${@}"
Echo_debug "Init ${PROGRAM}"
# Reading configuration files # Reading configuration files
Read_conffile config/common Read_conffile config/common
Read_conffile config/bootstrap Read_conffile config/bootstrap
@ -32,7 +32,7 @@ Read_conffile config/binary
Read_conffile config/source Read_conffile config/source
Set_defaults Set_defaults
Breakpoint "chroot_local-includes: Init" Echo_message "Begin copying chroot local includes..."
# Requiring stage file # Requiring stage file
Require_stagefile .stage/bootstrap Require_stagefile .stage/bootstrap
@ -46,7 +46,7 @@ Check_lockfile .lock
# Creating lock file # Creating lock file
Create_lockfile .lock Create_lockfile .lock
if ls config/chroot_local-includes/* &> /dev/null if ls config/chroot_local-includes/* > /dev/null 2>&1
then then
# Copying includes # Copying includes
cd config/chroot_local-includes cd config/chroot_local-includes

View File

@ -9,21 +9,21 @@
set -e set -e
# Source common functions # Including common functions
for FUNCTION in /usr/share/live-helper/functions/*.sh LH_BASE="${LH_BASE:-/usr/share/live-helper}"
for FUNCTION in "${LH_BASE}"/functions/*.sh
do do
. ${FUNCTION} . "${FUNCTION}"
done done
# Set static variables # Setting static variables
DESCRIPTION="install local packages into chroot" DESCRIPTION="install local packages into chroot"
HELP="" HELP=""
USAGE="${PROGRAM} [--force]" USAGE="${PROGRAM} [--force]"
Arguments "${@}" Arguments "${@}"
Echo_debug "Init ${PROGRAM}"
# Reading configuration files # Reading configuration files
Read_conffile config/common Read_conffile config/common
Read_conffile config/bootstrap Read_conffile config/bootstrap
@ -32,7 +32,7 @@ Read_conffile config/binary
Read_conffile config/source Read_conffile config/source
Set_defaults Set_defaults
Breakpoint "chroot_local-packages: Init" Echo_message "Begin installing local packages..."
# Requiring stage file # Requiring stage file
Require_stagefile .stage/bootstrap Require_stagefile .stage/bootstrap
@ -46,7 +46,7 @@ Check_lockfile .lock
# Creating lock file # Creating lock file
Create_lockfile .lock Create_lockfile .lock
if ls config/chroot_local-packages/*.deb &> /dev/null if ls config/chroot_local-packages/*.deb > /dev/null 2>&1
then then
# Restoring cache # Restoring cache
Restore_cache cache/packages_local-packages Restore_cache cache/packages_local-packages

View File

@ -9,21 +9,21 @@
set -e set -e
# Source common functions # Including common functions
for FUNCTION in /usr/share/live-helper/functions/*.sh LH_BASE="${LH_BASE:-/usr/share/live-helper}"
for FUNCTION in "${LH_BASE}"/functions/*.sh
do do
. ${FUNCTION} . "${FUNCTION}"
done done
# Set static variables # Setting static variables
DESCRIPTION="install local packages into chroot" DESCRIPTION="install local packages into chroot"
HELP="" HELP=""
USAGE="${PROGRAM} [--force]" USAGE="${PROGRAM} [--force]"
Arguments "${@}" Arguments "${@}"
Echo_debug "Init ${PROGRAM}"
# Reading configuration files # Reading configuration files
Read_conffile config/common Read_conffile config/common
Read_conffile config/bootstrap Read_conffile config/bootstrap
@ -32,7 +32,7 @@ Read_conffile config/binary
Read_conffile config/source Read_conffile config/source
Set_defaults Set_defaults
Breakpoint "chroot_local-packageslists: Init" Echo_message "Begin installing local packages lists..."
# Requiring stage file # Requiring stage file
Require_stagefile .stage/bootstrap Require_stagefile .stage/bootstrap
@ -46,7 +46,7 @@ Check_lockfile .lock
# Creating lock file # Creating lock file
Create_lockfile .lock Create_lockfile .lock
if ls config/chroot_local-packageslists/* &> /dev/null if ls config/chroot_local-packageslists/* > /dev/null 2>&1
then then
# Restoring cache # Restoring cache
Restore_cache cache/packages_local-packageslists Restore_cache cache/packages_local-packageslists

View File

@ -9,21 +9,21 @@
set -e set -e
# Source common functions # Including common functions
for FUNCTION in /usr/share/live-helper/functions/*.sh LH_BASE="${LH_BASE:-/usr/share/live-helper}"
for FUNCTION in "${LH_BASE}"/functions/*.sh
do do
. ${FUNCTION} . "${FUNCTION}"
done done
# Set static variables # Setting static variables
DESCRIPTION="install localization packages into chroot" DESCRIPTION="install localization packages into chroot"
HELP="" HELP=""
USAGE="${PROGRAM} [--force]" USAGE="${PROGRAM} [--force]"
Arguments "${@}" Arguments "${@}"
Echo_debug "Init ${PROGRAM}"
# Reading configuration files # Reading configuration files
Read_conffile config/common Read_conffile config/common
Read_conffile config/bootstrap Read_conffile config/bootstrap
@ -32,7 +32,7 @@ Read_conffile config/binary
Read_conffile config/source Read_conffile config/source
Set_defaults Set_defaults
Breakpoint "chroot_localization: Init" Echo_message "Begin installing localization packages..."
# Requiring stage file # Requiring stage file
Require_stagefile .stage/bootstrap Require_stagefile .stage/bootstrap
@ -601,35 +601,12 @@ then
esac esac
# Setting languages # Setting languages
if [ -z "${ICEAPE}" ] ICEAPE="${ICEAPE:-$LIVE_LANGUAGE}"
then ICEDOVE="${ICEDOVE:-$LIVE_LANGUAGE}"
ICEAPE="${LIVE_LANGUAGE}" ICEWEASEL="${ICEWEASEL:-$LIVE_LANGUAGE}"
fi KDE="${KDE:-$LIVE_LANGUAGE}"
KOFFICE="${KOFFICE:-$LIVE_LANGUAGE}"
if [ -z "${ICEDOCE}" ] OPENOFFICE="${OPENOFFICE:-$LIVE_LANGUAGE}"
then
ICEDOVE="${LIVE_LANGUAGE}"
fi
if [ -z "${ICEWEASEL}" ]
then
ICEWEASEL="${LIVE_LANGUAGE}"
fi
if [ -z "${KDE}" ]
then
KDE="${LIVE_LANGUAGE}"
fi
if [ -z "${KOFFICE}" ]
then
KOFFICE="${LIVE_LANGUAGE}"
fi
if [ -z "${OPENOFFICE}" ]
then
OPENOFFICE="${LIVE_LANGUAGE}"
fi
# Setting packages # Setting packages
for LOCALIZATION in ${LOCALIZATIONS} for LOCALIZATION in ${LOCALIZATIONS}

View File

@ -9,21 +9,21 @@
set -e set -e
# Source common functions # Including common functions
for FUNCTION in /usr/share/live-helper/functions/*.sh LH_BASE="${LH_BASE:-/usr/share/live-helper}"
for FUNCTION in "${LH_BASE}"/functions/*.sh
do do
. ${FUNCTION} . "${FUNCTION}"
done done
# Set static variables # Setting static variables
DESCRIPTION="install packages into chroot" DESCRIPTION="install packages into chroot"
HELP="" HELP=""
USAGE="${PROGRAM} [--force]" USAGE="${PROGRAM} [--force]"
Arguments "${@}" Arguments "${@}"
Echo_debug "Init ${PROGRAM}"
# Reading configuration files # Reading configuration files
Read_conffile config/common Read_conffile config/common
Read_conffile config/bootstrap Read_conffile config/bootstrap
@ -32,7 +32,7 @@ Read_conffile config/binary
Read_conffile config/source Read_conffile config/source
Set_defaults Set_defaults
Breakpoint "chroot_packages: Init" Echo_message "Begin installing packages..."
# Requiring stage file # Requiring stage file
Require_stagefile .stage/bootstrap Require_stagefile .stage/bootstrap

View File

@ -9,21 +9,21 @@
set -e set -e
# Source common functions # Including common functions
for FUNCTION in /usr/share/live-helper/functions/*.sh LH_BASE="${LH_BASE:-/usr/share/live-helper}"
for FUNCTION in "${LH_BASE}"/functions/*.sh
do do
. ${FUNCTION} . "${FUNCTION}"
done done
# Set static variables # Setting static variables
DESCRIPTION="install packages lists into chroot" DESCRIPTION="install packages lists into chroot"
HELP="" HELP=""
USAGE="${PROGRAM} [--force]" USAGE="${PROGRAM} [--force]"
Arguments "${@}" Arguments "${@}"
Echo_debug "Init ${PROGRAM}"
# Reading configuration files # Reading configuration files
Read_conffile config/common Read_conffile config/common
Read_conffile config/bootstrap Read_conffile config/bootstrap
@ -32,7 +32,7 @@ Read_conffile config/binary
Read_conffile config/source Read_conffile config/source
Set_defaults Set_defaults
Breakpoint "chroot_packageslists: Init" Echo_message "Begin installing packages lists..."
# Requiring stage file # Requiring stage file
Require_stagefile .stage/bootstrap Require_stagefile .stage/bootstrap
@ -53,10 +53,10 @@ then
for LIST in ${LIVE_PACKAGES_LISTS} for LIST in ${LIVE_PACKAGES_LISTS}
do do
if [ -f /usr/share/live-helper/lists/"${LIST}" ] if [ -f ${LH_BASE:-/usr/share/live-helper}/lists/"${LIST}" ]
then then
# Copying package list # Copying package list
grep -v "^#" /usr/share/live-helper/lists/"${LIST}" > chroot/root/"${LIST}" grep -v "^#" ${LH_BASE:-/usr/share/live-helper}/lists/"${LIST}" > chroot/root/"${LIST}"
# Installing package list # Installing package list
case "${LH_APT}" in case "${LH_APT}" in

76
helpers/lh_chroot_preseed Executable file
View File

@ -0,0 +1,76 @@
#!/bin/sh
# lh_chroot_preseed(1) - mount /proc
# Copyright (C) 2006-2007 Daniel Baumann <daniel@debian.org>
#
# live-helper comes with ABSOLUTELY NO WARRANTY; for details see COPYING.
# This is free software, and you are welcome to redistribute it
# under certain conditions; see COPYING for details.
set -e
# Including common functions
LH_BASE="${LH_BASE:-/usr/share/live-helper}"
for FUNCTION in "${LH_BASE}"/functions/*.sh
do
. "${FUNCTION}"
done
# Setting static variables
DESCRIPTION="execute preseed in chroot"
HELP=""
USAGE="${PROGRAM} [--force]"
Arguments "${@}"
# Reading configuration files
Read_conffile config/common
Read_conffile config/bootstrap
Read_conffile config/chroot
Read_conffile config/binary
Read_conffile config/source
Set_defaults
Echo_message "Begin executing preseed..."
# Requiring stage file
Require_stagefile .stage/bootstrap
# Checking stage file
Check_stagefile .stage/chroot_preseed
# Checking lock file
Check_lockfile .lock
# Creating lock file
Create_lockfile .lock
if [ -n "${LIVE_PRESEED}" ]
then
if [ -f "${LIVE_PRESEED}" ]
then
# Check dependency
Check_package chroot/usr/bin/debconf-set-selections debconf
# Install dependency
Install_package
# Copying preseed
cp "${LIVE_PRESEED}" chroot/root/preseed
Chroot "debconf-set-selections /root/preseed"
# Removing preseed file
rm -f chroot/root/preseed
# Remove dependency
Remove_package
# Creating stage file
Create_stagefile .stage/chroot_preseed
fi
else
Echo_error "'${LIVE_PRESEED}' file doesn't exists."
exit 1
fi

View File

@ -9,13 +9,15 @@
set -e set -e
# Source common functions # Including common functions
for FUNCTION in /usr/share/live-helper/functions/*.sh LH_BASE="${LH_BASE:-/usr/share/live-helper}"
for FUNCTION in "${LH_BASE}"/functions/*.sh
do do
. ${FUNCTION} . "${FUNCTION}"
done done
# Set static variables # Setting static variables
DESCRIPTION="mount /proc" DESCRIPTION="mount /proc"
HELP="" HELP=""
USAGE="${PROGRAM} {install|remove} [--force]" USAGE="${PROGRAM} {install|remove} [--force]"
@ -25,8 +27,6 @@ Arguments "${@}"
# Ensure that a system is built as root # Ensure that a system is built as root
lh_testroot lh_testroot
Echo_debug "Init ${PROGRAM}"
# Reading configuration files # Reading configuration files
Read_conffile config/common Read_conffile config/common
Read_conffile config/bootstrap Read_conffile config/bootstrap
@ -35,7 +35,7 @@ Read_conffile config/binary
Read_conffile config/source Read_conffile config/source
Set_defaults Set_defaults
Breakpoint "chroot_proc: Init" Echo_message "Begin mounting /proc..."
# Requiring stage file # Requiring stage file
Require_stagefile .stage/bootstrap Require_stagefile .stage/bootstrap
@ -51,11 +51,8 @@ case "${1}" in
# Creating lock file # Creating lock file
Create_lockfile .lock Create_lockfile .lock
if [ ! -d chroot/proc ] # Creating mountpoint
then mkdir -p chroot/proc
# Creating mountpoint
mkdir -p chroot/proc
fi
# Mounting /proc # Mounting /proc
${LH_ROOT_COMMAND} mount proc-live -t proc chroot/proc ${LH_ROOT_COMMAND} mount proc-live -t proc chroot/proc

View File

@ -9,21 +9,21 @@
set -e set -e
# Source common functions # Including common functions
for FUNCTION in /usr/share/live-helper/functions/*.sh LH_BASE="${LH_BASE:-/usr/share/live-helper}"
for FUNCTION in "${LH_BASE}"/functions/*.sh
do do
. ${FUNCTION} . "${FUNCTION}"
done done
# Set static variables # Setting static variables
DESCRIPTION="manage /etc/resolv.conf" DESCRIPTION="manage /etc/resolv.conf"
HELP="" HELP=""
USAGE="${PROGRAM} {install|remove} [--force]" USAGE="${PROGRAM} {install|remove} [--force]"
Arguments "${@}" Arguments "${@}"
Echo_debug "Init ${PROGRAM}"
# Reading configuration files # Reading configuration files
Read_conffile config/common Read_conffile config/common
Read_conffile config/bootstrap Read_conffile config/bootstrap
@ -32,7 +32,7 @@ Read_conffile config/binary
Read_conffile config/source Read_conffile config/source
Set_defaults Set_defaults
Breakpoint "chroot_resolv: Init" Echo_message "Configuring file /etc/resolv.conf"
# Requiring stage file # Requiring stage file
Require_stagefile .stage/bootstrap Require_stagefile .stage/bootstrap

View File

@ -9,21 +9,21 @@
set -e set -e
# Source common functions # Including common functions
for FUNCTION in /usr/share/live-helper/functions/*.sh LH_BASE="${LH_BASE:-/usr/share/live-helper}"
for FUNCTION in "${LH_BASE}"/functions/*.sh
do do
. ${FUNCTION} . "${FUNCTION}"
done done
# Set static variables # Setting static variables
DESCRIPTION="manage /etc/apt/sources.list" DESCRIPTION="manage /etc/apt/sources.list"
HELP="" HELP=""
USAGE="${PROGRAM} {install|remove} [--force]" USAGE="${PROGRAM} {install|remove} [--force]"
Arguments "${@}" Arguments "${@}"
Echo_debug "Init ${PROGRAM}"
# Reading configuration files # Reading configuration files
Read_conffile config/common Read_conffile config/common
Read_conffile config/bootstrap Read_conffile config/bootstrap
@ -32,7 +32,7 @@ Read_conffile config/binary
Read_conffile config/source Read_conffile config/source
Set_defaults Set_defaults
Breakpoint "chroot_sources: Init" Echo_message "Configuring file /etc/apt/sources.list"
# Requiring stage file # Requiring stage file
Require_stagefile .stage/bootstrap Require_stagefile .stage/bootstrap
@ -83,7 +83,7 @@ case "${1}" in
fi fi
# Check local sources.list # Check local sources.list
if ls config/chroot_sources/*.bootstrap &> /dev/null if ls config/chroot_sources/*.bootstrap > /dev/null 2>&1
then then
echo "" >> chroot/etc/apt/sources.list echo "" >> chroot/etc/apt/sources.list
echo "# Custom repositories" >> chroot/etc/apt/sources.list echo "# Custom repositories" >> chroot/etc/apt/sources.list
@ -97,12 +97,12 @@ case "${1}" in
# Update indices from cache # Update indices from cache
if [ "${LH_CACHE_INDICES}" = "enabled" ] && [ -d cache/indices_bootstrap ] if [ "${LH_CACHE_INDICES}" = "enabled" ] && [ -d cache/indices_bootstrap ]
then then
if ls cache/indices_bootstrap/secring.gpg* &> /dev/null if ls cache/indices_bootstrap/secring.gpg* > /dev/null 2>&1
then then
cp -f cache/indices_bootstrap/secring.gpg* chroot/etc/apt cp -f cache/indices_bootstrap/secring.gpg* chroot/etc/apt
fi fi
if ls cache/indices_bootstrap/trusted.gpg* &> /dev/null if ls cache/indices_bootstrap/trusted.gpg* > /dev/null 2>&1
then then
cp -f cache/indices_bootstrap/trusted.gpg* chroot/etc/apt cp -f cache/indices_bootstrap/trusted.gpg* chroot/etc/apt
fi fi
@ -117,17 +117,17 @@ case "${1}" in
cp -f cache/indices_bootstrap/srcpkgcache.bin chroot/var/cache/apt cp -f cache/indices_bootstrap/srcpkgcache.bin chroot/var/cache/apt
fi fi
if ls cache/indices_bootstrap/*_Packages &> /dev/null if ls cache/indices_bootstrap/*_Packages > /dev/null 2>&1
then then
cp -f cache/indices_bootstrap/*_Packages chroot/var/lib/apt/lists cp -f cache/indices_bootstrap/*_Packages chroot/var/lib/apt/lists
fi fi
if ls cache/indices_bootstrap/*_Sources &> /dev/null if ls cache/indices_bootstrap/*_Sources > /dev/null 2>&1
then then
cp -f cache/indices_bootstrap/*_Sources chroot/var/lib/apt/lists cp -f cache/indices_bootstrap/*_Sources chroot/var/lib/apt/lists
fi fi
if ls cache/indices_bootstrap/*_Release* &> /dev/null if ls cache/indices_bootstrap/*_Release* > /dev/null 2>&1
then then
cp -f cache/indices_bootstrap/*_Release* chroot/var/lib/apt/lists cp -f cache/indices_bootstrap/*_Release* chroot/var/lib/apt/lists
fi fi
@ -138,7 +138,7 @@ case "${1}" in
fi fi
else # Get fresh indices else # Get fresh indices
# Check local gpg keys # Check local gpg keys
if ls config/chroot_sources/*.bootstrap.gpg &> /dev/null if ls config/chroot_sources/*.bootstrap.gpg > /dev/null 2>&1
then then
for FILE in config/chroot_sources/*.bootstrap.gpg for FILE in config/chroot_sources/*.bootstrap.gpg
do do
@ -149,7 +149,7 @@ case "${1}" in
fi fi
# Check local keyring packages # Check local keyring packages
if ls config/chroot_sources/*.deb &> /dev/null if ls config/chroot_sources/*.deb > /dev/null 2>&1
then then
for PACKAGE in config/chroot_sources/*.deb for PACKAGE in config/chroot_sources/*.deb
do do
@ -183,10 +183,7 @@ case "${1}" in
if [ "${LH_CACHE_INDICES}" = "enabled" ] if [ "${LH_CACHE_INDICES}" = "enabled" ]
then then
if [ ! -d cache/indices_bootstrap ] mkdir -p cache/indices_bootstrap
then
mkdir -p cache/indices_bootstrap
fi
cp -f chroot/etc/apt/secring.gpg* cache/indices_bootstrap cp -f chroot/etc/apt/secring.gpg* cache/indices_bootstrap
cp -f chroot/etc/apt/trusted.gpg* cache/indices_bootstrap cp -f chroot/etc/apt/trusted.gpg* cache/indices_bootstrap
@ -259,7 +256,7 @@ case "${1}" in
fi fi
# Check local sources.list # Check local sources.list
if ls config/chroot_sources/*.binary &> /dev/null if ls config/chroot_sources/*.binary > /dev/null 2>&1
then then
echo "" >> chroot/etc/apt/sources.list echo "" >> chroot/etc/apt/sources.list
echo "# Custom repositories" >> chroot/etc/apt/sources.list echo "# Custom repositories" >> chroot/etc/apt/sources.list
@ -271,7 +268,7 @@ case "${1}" in
fi fi
# Check local gpg keys # Check local gpg keys
if ls config/chroot_sources/*.binary.gpg &> /dev/null if ls config/chroot_sources/*.binary.gpg > /dev/null 2>&1
then then
for FILE in config/chroot_sources/*.binary.gpg for FILE in config/chroot_sources/*.binary.gpg
do do

View File

@ -9,21 +9,21 @@
set -e set -e
# Source common functions # Including common functions
for FUNCTION in /usr/share/live-helper/functions/*.sh LH_BASE="${LH_BASE:-/usr/share/live-helper}"
for FUNCTION in "${LH_BASE}"/functions/*.sh
do do
. ${FUNCTION} . "${FUNCTION}"
done done
# Set static variables # Setting static variables
DESCRIPTION="convert symlinks" DESCRIPTION="convert symlinks"
HELP="" HELP=""
USAGE="${PROGRAM} [--force]" USAGE="${PROGRAM} [--force]"
Arguments "${@}" Arguments "${@}"
Echo_debug "Init ${PROGRAM}"
# Reading configuration files # Reading configuration files
Read_conffile config/common Read_conffile config/common
Read_conffile config/bootstrap Read_conffile config/bootstrap
@ -32,7 +32,12 @@ Read_conffile config/binary
Read_conffile config/source Read_conffile config/source
Set_defaults Set_defaults
Breakpoint "chroot_symlinks: Init" if [ "${LIVE_SYMLINKS}" != "enabled" ]
then
exit 0
fi
Echo_message "Begin converting symlinks..."
# Requiring stage file # Requiring stage file
Require_stagefile .stage/bootstrap Require_stagefile .stage/bootstrap
@ -46,20 +51,17 @@ Check_lockfile .lock
# Creating lock file # Creating lock file
Create_lockfile .lock Create_lockfile .lock
if [ "${LIVE_SYMLINKS}" = "enabled" ] # Checking depends
then Check_package chroot/usr/bin/symlinks symlinks
# Checking depends
Check_package chroot/usr/bin/symlinks symlinks
# Installing depends # Installing depends
Install_package Install_package
# Converting symlinks # Converting symlinks
Chroot "symlinks -c -r -s /" Chroot "symlinks -c -r -s /"
# Removing depends # Removing depends
Remove_package Remove_package
# Creating stage file # Creating stage file
Create_stagefile .stage/chroot_symlinks Create_stagefile .stage/chroot_symlinks
fi

View File

@ -9,13 +9,15 @@
set -e set -e
# Source common functions # Including common functions
for FUNCTION in /usr/share/live-helper/functions/*.sh LH_BASE="${LH_BASE:-/usr/share/live-helper}"
for FUNCTION in "${LH_BASE}"/functions/*.sh
do do
. ${FUNCTION} . "${FUNCTION}"
done done
# Set static variables # Setting static variables
DESCRIPTION="mount /sys" DESCRIPTION="mount /sys"
HELP="" HELP=""
USAGE="${PROGRAM} {install|remove} [--force]" USAGE="${PROGRAM} {install|remove} [--force]"
@ -25,8 +27,6 @@ Arguments "${@}"
# Ensure that a system is built as root # Ensure that a system is built as root
lh_testroot lh_testroot
Echo_debug "Init ${PROGRAM}"
# Reading configuration files # Reading configuration files
Read_conffile config/common Read_conffile config/common
Read_conffile config/bootstrap Read_conffile config/bootstrap
@ -35,7 +35,7 @@ Read_conffile config/binary
Read_conffile config/source Read_conffile config/source
Set_defaults Set_defaults
Breakpoint "chroot_sysfs: Init" Echo_message "Begin mounting /sys..."
# Requiring stage file # Requiring stage file
Require_stagefile .stage/bootstrap Require_stagefile .stage/bootstrap
@ -51,11 +51,8 @@ case "${1}" in
# Creating lock file # Creating lock file
Create_lockfile .lock Create_lockfile .lock
if [ ! -d chroot/sys ] # Create mountpoint
then mkdir -p chroot/sys
# Create mountpoint
mkdir -p chroot/sys
fi
# Mounting /sys # Mounting /sys
${LH_ROOT_COMMAND} mount sysfs-live -t sysfs chroot/sys ${LH_ROOT_COMMAND} mount sysfs-live -t sysfs chroot/sys

View File

@ -9,21 +9,21 @@
set -e set -e
# Source common functions # Including common functions
for FUNCTION in /usr/share/live-helper/functions/*.sh LH_BASE="${LH_BASE:-/usr/share/live-helper}"
for FUNCTION in "${LH_BASE}"/functions/*.sh
do do
. ${FUNCTION} . "${FUNCTION}"
done done
# Set static variables # Setting static variables
DESCRIPTION="configure sysvinit" DESCRIPTION="configure sysvinit"
HELP="" HELP=""
USAGE="${PROGRAM} [--force]" USAGE="${PROGRAM} [--force]"
Arguments "${@}" Arguments "${@}"
Echo_debug "Init ${PROGRAM}"
# Reading configuration files # Reading configuration files
Read_conffile config/common Read_conffile config/common
Read_conffile config/bootstrap Read_conffile config/bootstrap
@ -32,7 +32,7 @@ Read_conffile config/binary
Read_conffile config/source Read_conffile config/source
Set_defaults Set_defaults
Breakpoint "chroot_sysvinit: Init" Echo_message "Configuring package sysvinit"
# Requiring stage file # Requiring stage file
Require_stagefile .stage/bootstrap Require_stagefile .stage/bootstrap

View File

@ -9,21 +9,21 @@
set -e set -e
# Source common functions # Including common functions
for FUNCTION in /usr/share/live-helper/functions/*.sh LH_BASE="${LH_BASE:-/usr/share/live-helper}"
for FUNCTION in "${LH_BASE}"/functions/*.sh
do do
. ${FUNCTION} . "${FUNCTION}"
done done
# Set static variables # Setting static variables
DESCRIPTION="manage /usr/sbin/policy-rc.d" DESCRIPTION="manage /usr/sbin/policy-rc.d"
HELP="" HELP=""
USAGE="${PROGRAM} {install|remove} [--force]" USAGE="${PROGRAM} {install|remove} [--force]"
Arguments "${@}" Arguments "${@}"
Echo_debug "Init ${PROGRAM}"
# Reading configuration files # Reading configuration files
Read_conffile config/common Read_conffile config/common
Read_conffile config/bootstrap Read_conffile config/bootstrap
@ -32,7 +32,7 @@ Read_conffile config/binary
Read_conffile config/source Read_conffile config/source
Set_defaults Set_defaults
Breakpoint "chroot_sysvrc: Init" Echo_message "Configuring file /usr/sbin/policy-rc.d"
# Requiring stage file # Requiring stage file
Require_stagefile .stage/bootstrap Require_stagefile .stage/bootstrap

View File

@ -9,21 +9,21 @@
set -e set -e
# Source common functions # Including common functions
for FUNCTION in /usr/share/live-helper/functions/*.sh LH_BASE="${LH_BASE:-/usr/share/live-helper}"
for FUNCTION in "${LH_BASE}"/functions/*.sh
do do
. ${FUNCTION} . "${FUNCTION}"
done done
# Set static variables # Setting static variables
DESCRIPTION="install tasks into chroot" DESCRIPTION="install tasks into chroot"
HELP="" HELP=""
USAGE="${PROGRAM} [--force]" USAGE="${PROGRAM} [--force]"
Arguments "${@}" Arguments "${@}"
Echo_debug "Init ${PROGRAM}"
# Reading configuration files # Reading configuration files
Read_conffile config/common Read_conffile config/common
Read_conffile config/bootstrap Read_conffile config/bootstrap
@ -32,7 +32,7 @@ Read_conffile config/binary
Read_conffile config/source Read_conffile config/source
Set_defaults Set_defaults
Breakpoint "chroot_tasks: Init" Echo_message "Begin installing tasks..."
# Requiring stage file # Requiring stage file
Require_stagefile .stage/bootstrap Require_stagefile .stage/bootstrap

View File

@ -9,21 +9,21 @@
set -e set -e
# Source common functions # Including common functions
for FUNCTION in /usr/share/live-helper/functions/*.sh LH_BASE="${LH_BASE:-/usr/share/live-helper}"
for FUNCTION in "${LH_BASE}"/functions/*.sh
do do
. ${FUNCTION} . "${FUNCTION}"
done done
# Set static variables # Setting static variables
DESCRIPTION="clean up system build directories" DESCRIPTION="clean up system build directories"
HELP="" HELP=""
USAGE="${PROGRAM} [all|cache|chroot|binary|lock|purge|stage|source]" USAGE="${PROGRAM} [all|cache|chroot|binary|lock|purge|stage|source]"
Arguments "${@}" Arguments "${@}"
Echo_debug "Init ${PROGRAM}"
# Reading configuration files # Reading configuration files
Read_conffile config/common Read_conffile config/common
Read_conffile config/bootstrap Read_conffile config/bootstrap

View File

@ -9,13 +9,15 @@
set -e set -e
# Source common functions # Including common functions
for FUNCTION in /usr/share/live-helper/functions/*.sh LH_BASE="${LH_BASE:-/usr/share/live-helper}"
for FUNCTION in "${LH_BASE}"/functions/*.sh
do do
. ${FUNCTION} . "${FUNCTION}"
done done
# Set static variables # Setting static variables
DESCRIPTION="create configuration for live-helper(7)" DESCRIPTION="create configuration for live-helper(7)"
HELP="" HELP=""
USAGE="${PROGRAM} [--force]" USAGE="${PROGRAM} [--force]"
@ -24,19 +26,17 @@ Arguments "${@}"
CONFIG="${1}" CONFIG="${1}"
Echo_debug "Init ${PROGRAM}"
if [ -n "${LH_CONFIG}" ] if [ -n "${LH_CONFIG}" ]
then then
if [ -d /usr/share/live-helper/configs/"${LH_CONFIG}" ] if [ -d ${LH_BASE:-/usr/share/live-helper}/configs/"${LH_CONFIG}" ]
then then
mkdir "${LH_CONFIG}" mkdir "${LH_CONFIG}"
cp -r /usr/share/live-helper/configs/"${LH_CONFIG}" "${LH_CONFIG}"/config cp -r ${LH_BASE:-/usr/share/live-helper}/configs/"${LH_CONFIG}" "${LH_CONFIG}"/config
LIVE_ROOT="${LH_CONFIG}" LIVE_ROOT="${LH_CONFIG}"
CONFIG="" CONFIG=""
else else
Echo_error "Couldn't find config ${LH_CONFIG} in /usr/share/live-helper/configs/." Echo_error "Couldn't find config ${LH_CONFIG} in ${LH_BASE:-/usr/share/live-helper}/configs/."
fi fi
fi fi
@ -53,8 +53,6 @@ fi
# Setting defaults # Setting defaults
Set_defaults Set_defaults
Breakpoint "config: Init"
# Creating bootstrap configuration # Creating bootstrap configuration
mkdir -p "${LIVE_ROOT}"/config mkdir -p "${LIVE_ROOT}"/config
mkdir -p "${LIVE_ROOT}"/config/includes mkdir -p "${LIVE_ROOT}"/config/includes
@ -80,6 +78,10 @@ LH_APT_HTTPPROXY="${LH_APT_HTTPPROXY}"
# (Default: ${LH_APT_PDIFFS}) # (Default: ${LH_APT_PDIFFS})
LH_APT_PDIFFS="${LH_APT_PDIFFS}" LH_APT_PDIFFS="${LH_APT_PDIFFS}"
# \$LH_APT_PIPELINE: set apt/aptitude pipeline depth
# (Default: ${LH_APT_PIPELINE})
LH_APT_PIPELINE="${LH_APT_PIPELINE}"
# \$LH_APT_RECOMMENDS: set apt/aptitude recommends # \$LH_APT_RECOMMENDS: set apt/aptitude recommends
# (Default: ${LH_APT_RECOMMENDS}) # (Default: ${LH_APT_RECOMMENDS})
LH_APT_RECOMMENDS="${LH_APT_RECOMMENDS}" LH_APT_RECOMMENDS="${LH_APT_RECOMMENDS}"
@ -183,18 +185,22 @@ cat > "${LIVE_ROOT}"/config/bootstrap << EOF
# (Default: autodetected) # (Default: autodetected)
LIVE_ARCHITECTURE="${LIVE_ARCHITECTURE}" LIVE_ARCHITECTURE="${LIVE_ARCHITECTURE}"
# \$LIVE_DISTRIBUTION: select distribution to use # \$LIVE_BOOTSTRAP_CONFIG: set distribution config directory
# (Default: ${LIVE_DISTRIBUTION})
LIVE_DISTRIBUTION="${LIVE_DISTRIBUTION}"
# \$LIVE_DISTRIBUTION_CONFIG: set distribution config directory
# (Default: empty) # (Default: empty)
LIVE_DISTRIBUTION_CONFIG="${LIVE_DISTRIBUTION_CONFIG}" LIVE_BOOTSTRAP_CONFIG="${LIVE_BOOTSTRAP_CONFIG}"
# \$LIVE_BOOTSTRAP_FLAVOUR: select flavour to use # \$LIVE_BOOTSTRAP_FLAVOUR: select flavour to use
# (Default: ${LIVE_BOOTSTRAP_FLAVOUR}) # (Default: ${LIVE_BOOTSTRAP_FLAVOUR})
LIVE_BOOTSTRAP_FLAVOUR="${LIVE_BOOTSTRAP_FLAVOUR}" LIVE_BOOTSTRAP_FLAVOUR="${LIVE_BOOTSTRAP_FLAVOUR}"
# \$LIVE_BOOTSTRAP_KEYRING: set distribution keyring
# (Default: empty)
LIVE_BOOTSTRAP_KEYRING="${LIVE_BOOTSTRAP_KEYRING}"
# \$LIVE_DISTRIBUTION: select distribution to use
# (Default: ${LIVE_DISTRIBUTION})
LIVE_DISTRIBUTION="${LIVE_DISTRIBUTION}"
# \$LIVE_MIRROR_BOOTSTRAP: set mirror to fetch packages from # \$LIVE_MIRROR_BOOTSTRAP: set mirror to fetch packages from
# (Default: ${LIVE_MIRROR_BOOTSTRAP}) # (Default: ${LIVE_MIRROR_BOOTSTRAP})
LIVE_MIRROR_BOOTSTRAP="${LIVE_MIRROR_BOOTSTRAP}" LIVE_MIRROR_BOOTSTRAP="${LIVE_MIRROR_BOOTSTRAP}"
@ -282,6 +288,7 @@ EOF
# Creating lh_binary_* configuration # Creating lh_binary_* configuration
mkdir -p "${LIVE_ROOT}"/config/binary_grub mkdir -p "${LIVE_ROOT}"/config/binary_grub
mkdir -p "${LIVE_ROOT}"/config/binary_local-includes mkdir -p "${LIVE_ROOT}"/config/binary_local-includes
mkdir -p "${LIVE_ROOT}"/config/binary_rootfs
mkdir -p "${LIVE_ROOT}"/config/binary_syslinux mkdir -p "${LIVE_ROOT}"/config/binary_syslinux
cat > "${LIVE_ROOT}"/config/binary << EOF cat > "${LIVE_ROOT}"/config/binary << EOF

View File

@ -9,21 +9,21 @@
set -e set -e
# Source common functions # Including common functions
for FUNCTION in /usr/share/live-helper/functions/*.sh LH_BASE="${LH_BASE:-/usr/share/live-helper}"
for FUNCTION in "${LH_BASE}"/functions/*.sh
do do
. ${FUNCTION} . "${FUNCTION}"
done done
# Set static variables # Setting static variables
DESCRIPTION="wrapper around losetup" DESCRIPTION="wrapper around losetup"
HELP="" HELP=""
USAGE="${PROGRAM} <device> <file> <partition>" USAGE="${PROGRAM} <device> <file> <partition>"
Arguments "${@}" Arguments "${@}"
Echo_debug "Init ${PROGRAM}"
# Reading configuration files # Reading configuration files
Read_conffile config/common Read_conffile config/common
Read_conffile config/bootstrap Read_conffile config/bootstrap
@ -32,8 +32,6 @@ Read_conffile config/binary
Read_conffile config/source Read_conffile config/source
Set_defaults Set_defaults
Breakpoint "losetup: Init"
if [ -z "${1}" ] if [ -z "${1}" ]
then then
DEVICE="`${LH_ROOT_COMMAND} ${LH_LOSETUP} -f`" DEVICE="`${LH_ROOT_COMMAND} ${LH_LOSETUP} -f`"

View File

@ -9,21 +9,21 @@
set -e set -e
# Source common functions # Including common functions
for FUNCTION in /usr/share/live-helper/functions/*.sh LH_BASE="${LH_BASE:-/usr/share/live-helper}"
for FUNCTION in "${LH_BASE}"/functions/*.sh
do do
. ${FUNCTION} . "${FUNCTION}"
done done
# Set static variables # Setting static variables
DESCRIPTION="build source images" DESCRIPTION="build source images"
HELP="" HELP=""
USAGE="${PROGRAM} [--force]" USAGE="${PROGRAM} [--force]"
Arguments "${@}" Arguments "${@}"
Echo_debug "Init ${PROGRAM}"
# Reading configuration files # Reading configuration files
Read_conffile config/common Read_conffile config/common
Read_conffile config/bootstrap Read_conffile config/bootstrap
@ -32,8 +32,6 @@ Read_conffile config/binary
Read_conffile config/source Read_conffile config/source
Set_defaults Set_defaults
Breakpoint "source: Init"
# Enabling network in chroot # Enabling network in chroot
lh_chroot_hosts install ${*} lh_chroot_hosts install ${*}
lh_chroot_resolv install ${*} lh_chroot_resolv install ${*}

View File

@ -9,21 +9,21 @@
set -e set -e
# Source common functions # Including common functions
for FUNCTION in /usr/share/live-helper/functions/*.sh LH_BASE="${LH_BASE:-/usr/share/live-helper}"
for FUNCTION in "${LH_BASE}"/functions/*.sh
do do
. ${FUNCTION} . "${FUNCTION}"
done done
# Set static variables # Setting static variables
DESCRIPTION="debian sources" DESCRIPTION="debian sources"
HELP="" HELP=""
USAGE="${PROGRAM} [--force]" USAGE="${PROGRAM} [--force]"
Arguments "${@}" Arguments "${@}"
Echo_debug "Init ${PROGRAM}"
# Reading configuration files # Reading configuration files
Read_conffile config/common Read_conffile config/common
Read_conffile config/bootstrap Read_conffile config/bootstrap
@ -32,13 +32,13 @@ Read_conffile config/binary
Read_conffile config/source Read_conffile config/source
Set_defaults Set_defaults
Breakpoint "source_debian: Init"
if [ "${LIVE_SOURCE}" != "enabled" ] if [ "${LIVE_SOURCE}" != "enabled" ]
then then
exit 0 exit 0
fi fi
Echo_message "Begin downloading sources..."
# Requiring stage file # Requiring stage file
Require_stagefile .stage/bootstrap Require_stagefile .stage/bootstrap

View File

@ -9,21 +9,21 @@
set -e set -e
# Source common functions # Including common functions
for FUNCTION in /usr/share/live-helper/functions/*.sh LH_BASE="${LH_BASE:-/usr/share/live-helper}"
for FUNCTION in "${LH_BASE}"/functions/*.sh
do do
. ${FUNCTION} . "${FUNCTION}"
done done
# Set static variables # Setting static variables
DESCRIPTION="copy debian-live config into source" DESCRIPTION="copy debian-live config into source"
HELP="" HELP=""
USAGE="${PROGRAM} [--force]" USAGE="${PROGRAM} [--force]"
Arguments "${@}" Arguments "${@}"
Echo_debug "Init ${PROGRAM}"
# Reading configuration files # Reading configuration files
Read_conffile config/common Read_conffile config/common
Read_conffile config/bootstrap Read_conffile config/bootstrap
@ -32,13 +32,13 @@ Read_conffile config/binary
Read_conffile config/source Read_conffile config/source
Set_defaults Set_defaults
Breakpoint "source_debian-live: Init"
if [ "${LIVE_SOURCE}" != "enabled" ] if [ "${LIVE_SOURCE}" != "enabled" ]
then then
exit 0 exit 0
fi fi
Echo_message "Begin copying live-helper configuration..."
# Requiring stage file # Requiring stage file
Require_stagefile .stage/bootstrap Require_stagefile .stage/bootstrap

View File

@ -9,21 +9,21 @@
set -e set -e
# Source common functions # Including common functions
for FUNCTION in /usr/share/live-helper/functions/*.sh LH_BASE="${LH_BASE:-/usr/share/live-helper}"
for FUNCTION in "${LH_BASE}"/functions/*.sh
do do
. ${FUNCTION} . "${FUNCTION}"
done done
# Set static variables # Setting static variables
DESCRIPTION="build source generic image" DESCRIPTION="build source generic image"
HELP="" HELP=""
USAGE="${PROGRAM} [--force]" USAGE="${PROGRAM} [--force]"
Arguments "${@}" Arguments "${@}"
Echo_debug "Init ${PROGRAM}"
# Reading configuration files # Reading configuration files
Read_conffile config/common Read_conffile config/common
Read_conffile config/bootstrap Read_conffile config/bootstrap
@ -32,40 +32,39 @@ Read_conffile config/binary
Read_conffile config/source Read_conffile config/source
Set_defaults Set_defaults
Breakpoint "source_generic: Init"
if [ "${LIVE_SOURCE}" != "enabled" ] if [ "${LIVE_SOURCE}" != "enabled" ]
then then
exit 0 exit 0
fi fi
for IMAGE in ${LIVE_SOURCE_IMAGES} if ! echo "${LIVE_SOURCE_IMAGES}" | grep -qs generic
do then
if [ "${IMAGE}" = "generic" ] exit 0
then fi
# Requiring stage file
Require_stagefile .stage/source_debian
# Checking stage file Echo_message "Begin building source generic image..."
Check_stagefile .stage/source_generic Echo_message "This may take a while."
# Checking lock file # Requiring stage file
Check_lockfile .lock Require_stagefile .stage/source_debian
# Creating lock file # Checking stage file
Create_lockfile .lock Check_stagefile .stage/source_generic
# Remove old source # Checking lock file
if [ -f source.tar ] Check_lockfile .lock
then
rm -f source.tar
fi
# Create tarball # Creating lock file
Echo_message "Creating tarball, this can take a while." Create_lockfile .lock
tar cf source.tar source
# Creating stage file # Remove old source
Create_stagefile .stage/source_generic if [ -f source.tar ]
fi then
done rm -f source.tar
fi
# Create tarball
tar cf source.tar source
# Creating stage file
Create_stagefile .stage/source_generic

View File

@ -9,21 +9,21 @@
set -e set -e
# Source common functions # Including common functions
for FUNCTION in /usr/share/live-helper/functions/*.sh LH_BASE="${LH_BASE:-/usr/share/live-helper}"
for FUNCTION in "${LH_BASE}"/functions/*.sh
do do
. ${FUNCTION} . "${FUNCTION}"
done done
# Set static variables # Setting static variables
DESCRIPTION="build source harddisk image" DESCRIPTION="build source harddisk image"
HELP="" HELP=""
USAGE="${PROGRAM} [--force]" USAGE="${PROGRAM} [--force]"
Arguments "${@}" Arguments "${@}"
Echo_debug "Init ${PROGRAM}"
# Reading configuration files # Reading configuration files
Read_conffile config/common Read_conffile config/common
Read_conffile config/bootstrap Read_conffile config/bootstrap
@ -32,40 +32,39 @@ Read_conffile config/binary
Read_conffile config/source Read_conffile config/source
Set_defaults Set_defaults
Breakpoint "source_hdd: Init"
if [ "${LIVE_SOURCE}" != "enabled" ] if [ "${LIVE_SOURCE}" != "enabled" ]
then then
exit 0 exit 0
fi fi
for IMAGE in ${LIVE_SOURCE_IMAGES} if ! echo "${LIVE_SOURCE_IMAGES}" | grep -qs hdd
do then
if [ "${IMAGE}" = "hdd" ] exit 0
then fi
# Requiring stage file
Require_stagefile .stage/source_debian
# Checking stage file Echo_message "Begin building source harddisk image..."
Check_stagefile .stage/source_hdd Echo_message "This may take a while."
# Checking lock file # Requiring stage file
Check_lockfile .lock Require_stagefile .stage/source_debian
# Creating lock file # Checking stage file
Create_lockfile .lock Check_stagefile .stage/source_hdd
# Remove old source # Checking lock file
if [ -f source-hdd.tar.gz ] Check_lockfile .lock
then
rm -f source-hdd.tar.gz
fi
# Create tarball # Creating lock file
Echo_message "Creating tarball, this can take a while." Create_lockfile .lock
tar cfz source-hdd.tar.gz source
# Creating stage file # Remove old source
Create_stagefile .stage/source_hdd if [ -f source-hdd.tar.gz ]
fi then
done rm -f source-hdd.tar.gz
fi
# Create tarball
tar cfz source-hdd.tar.gz source
# Creating stage file
Create_stagefile .stage/source_hdd

View File

@ -9,21 +9,21 @@
set -e set -e
# Source common functions # Including common functions
for FUNCTION in /usr/share/live-helper/functions/*.sh LH_BASE="${LH_BASE:-/usr/share/live-helper}"
for FUNCTION in "${LH_BASE}"/functions/*.sh
do do
. ${FUNCTION} . "${FUNCTION}"
done done
# Set static variables # Setting static variables
DESCRIPTION="build iso source image" DESCRIPTION="build iso source image"
HELP="" HELP=""
USAGE="${PROGRAM} [--force]" USAGE="${PROGRAM} [--force]"
Arguments "${@}" Arguments "${@}"
Echo_debug "Init ${PROGRAM}"
# Reading configuration files # Reading configuration files
Read_conffile config/common Read_conffile config/common
Read_conffile config/bootstrap Read_conffile config/bootstrap
@ -37,78 +37,77 @@ then
exit 0 exit 0
fi fi
for IMAGE in ${LIVE_SOURCE_IMAGES} if ! echo "${LIVE_SOURCE_IMAGES}" | grep -qs iso
do then
if [ "${IMAGE}" = "iso" ] exit 0
then fi
Breakpoint "source_iso: Init"
# Requiring stage file Echo_message "Begin building source iso image..."
Require_stagefile .stage/source_debian
# Checking stage file # Requiring stage file
Check_stagefile .stage/source_iso Require_stagefile .stage/source_debian
# Checking lock file # Checking stage file
Check_lockfile .lock Check_stagefile .stage/source_iso
# Creating lock file # Checking lock file
Create_lockfile .lock Check_lockfile .lock
# Checking depends # Creating lock file
Check_package chroot/usr/bin/"${LH_GENISOIMAGE}" ${LH_GENISOIMAGE} Create_lockfile .lock
# Installing depends # Checking depends
Install_package Check_package chroot/usr/bin/"${LH_GENISOIMAGE}" ${LH_GENISOIMAGE}
# Remove old iso image # Installing depends
if [ -f source.iso ] Install_package
then
rm -f source.iso
fi
if [ "${LH_VERBOSE}" = "enabled" ] # Remove old iso image
then if [ -f source.iso ]
GENISOIMAGE_OPTIONS="${GENISOIMAGE_OPTIONS} -v" then
fi rm -f source.iso
fi
if [ -n "${LIVE_ISO_APPLICATION}" ] && [ "${LIVE_ISO_APPLICATION}" != "none" ] if [ "${LH_VERBOSE}" = "enabled" ]
then then
GENISOIMAGE_OPTIONS="${GENISOIMAGE_OPTIONS} -A \"${LIVE_ISO_APPLICATION}\"" GENISOIMAGE_OPTIONS="${GENISOIMAGE_OPTIONS} -v"
fi fi
if [ -n "${LIVE_ISO_PREPARER}" ] && [ "${LIVE_ISO_PREPARER}" != "none" ] if [ -n "${LIVE_ISO_APPLICATION}" ] && [ "${LIVE_ISO_APPLICATION}" != "none" ]
then then
GENISOIMAGE_OPTIONS="${GENISOIMAGE_OPTIONS} -p \"${LIVE_ISO_PREPARER}\"" GENISOIMAGE_OPTIONS="${GENISOIMAGE_OPTIONS} -A \"${LIVE_ISO_APPLICATION}\""
fi fi
if [ -n "${LIVE_ISO_PUBLISHER}" ] && [ "${LIVE_ISO_PUBLISHER}" != "none" ] if [ -n "${LIVE_ISO_PREPARER}" ] && [ "${LIVE_ISO_PREPARER}" != "none" ]
then then
GENISOIMAGE_OPTIONS="${GENISOIMAGE_OPTIONS} -publisher \"${LIVE_ISO_PUBLISHER}\"" GENISOIMAGE_OPTIONS="${GENISOIMAGE_OPTIONS} -p \"${LIVE_ISO_PREPARER}\""
fi fi
if [ -n "${LIVE_ISO_VOLUME}" ] && [ "${LIVE_ISO_VOLUME}" != "none" ] if [ -n "${LIVE_ISO_PUBLISHER}" ] && [ "${LIVE_ISO_PUBLISHER}" != "none" ]
then then
GENISOIMAGE_OPTIONS="${GENISOIMAGE_OPTIONS} -V \"${LIVE_ISO_VOLUME}\"" GENISOIMAGE_OPTIONS="${GENISOIMAGE_OPTIONS} -publisher \"${LIVE_ISO_PUBLISHER}\""
fi fi
# Moving image if [ -n "${LIVE_ISO_VOLUME}" ] && [ "${LIVE_ISO_VOLUME}" != "none" ]
mv source chroot then
GENISOIMAGE_OPTIONS="${GENISOIMAGE_OPTIONS} -V \"${LIVE_ISO_VOLUME}\""
fi
# Moving image
mv source chroot
cat >> chroot/source.sh << EOF cat >> chroot/source.sh << EOF
${LH_GENISOIMAGE} ${GENISOIMAGE_OPTIONS} -o source.iso -r -J -l -cache-inodes source ${LH_GENISOIMAGE} ${GENISOIMAGE_OPTIONS} -o source.iso -r -J -l -cache-inodes source
EOF EOF
Chroot "sh source.sh" Chroot "sh source.sh"
# Move image # Move image
mv chroot/source chroot/source.iso ./ mv chroot/source chroot/source.iso ./
rm -f chroot/source.sh rm -f chroot/source.sh
# Removing depends # Removing depends
Remove_package Remove_package
# Creating stage file # Creating stage file
Create_stagefile .stage/source_iso Create_stagefile .stage/source_iso
fi
done

View File

@ -9,21 +9,21 @@
set -e set -e
# Source common functions # Including common functions
for FUNCTION in /usr/share/live-helper/functions/*.sh LH_BASE="${LH_BASE:-/usr/share/live-helper}"
for FUNCTION in "${LH_BASE}"/functions/*.sh
do do
. ${FUNCTION} . "${FUNCTION}"
done done
# Set static variables # Setting static variables
DESCRIPTION="create source md5sums" DESCRIPTION="create source md5sums"
HELP="" HELP=""
USAGE="${PROGRAM} [--force]" USAGE="${PROGRAM} [--force]"
Arguments "${@}" Arguments "${@}"
Echo_debug "Init ${PROGRAM}"
# Reading configuration files # Reading configuration files
Read_conffile config/common Read_conffile config/common
Read_conffile config/bootstrap Read_conffile config/bootstrap
@ -32,13 +32,13 @@ Read_conffile config/binary
Read_conffile config/source Read_conffile config/source
Set_defaults Set_defaults
Breakpoint "source_md5sum: Init"
if [ "${LIVE_SOURCE}" != "enabled" ] if [ "${LIVE_SOURCE}" != "enabled" ]
then then
exit 0 exit 0
fi fi
Echo_message "Begin creating source md5sum.txt..."
# Requiring stage file # Requiring stage file
Require_stagefile .stage/source_debian Require_stagefile .stage/source_debian

View File

@ -9,21 +9,21 @@
set -e set -e
# Source common functions # Including common functions
for FUNCTION in /usr/share/live-helper/functions/*.sh LH_BASE="${LH_BASE:-/usr/share/live-helper}"
for FUNCTION in "${LH_BASE}"/functions/*.sh
do do
. ${FUNCTION} . "${FUNCTION}"
done done
# Set static variables # Setting static variables
DESCRIPTION="build source net image" DESCRIPTION="build source net image"
HELP="" HELP=""
USAGE="${PROGRAM} [--force]" USAGE="${PROGRAM} [--force]"
Arguments "${@}" Arguments "${@}"
Echo_debug "Init ${PROGRAM}"
# Reading configuration files # Reading configuration files
Read_conffile config/common Read_conffile config/common
Read_conffile config/bootstrap Read_conffile config/bootstrap
@ -32,39 +32,38 @@ Read_conffile config/binary
Read_conffile config/source Read_conffile config/source
Set_defaults Set_defaults
Breakpoint "source_net: Init"
if [ "${LIVE_SOURCE}" != "enabled" ] if [ "${LIVE_SOURCE}" != "enabled" ]
then then
exit 0 exit 0
fi fi
for IMAGE in ${LIVE_SOURCE_IMAGES} if ! echo "${LIVE_SOURCE_IMAGES}" | grep -qs net
do then
if [ "${IMAGE}" = "net" ] exit 0
then fi
# Requiring stage file
Require_stagefile .stage/source_debian
# Checking stage file Echo_message "Begin building source netboot image..."
Check_stagefile .stage/source_net
# Checking lock file # Requiring stage file
Check_lockfile .lock Require_stagefile .stage/source_debian
# Creating lock file # Checking stage file
Create_lockfile .lock Check_stagefile .stage/source_net
# Remove old source # Checking lock file
if [ -f source-net.tar.gz ] Check_lockfile .lock
then
rm -f source-net.tar.gz
fi
# Create tarball # Creating lock file
tar cfz source-net.tar.gz source Create_lockfile .lock
# Creating stage file # Remove old source
Create_stagefile .stage/source_net if [ -f source-net.tar.gz ]
fi then
done rm -f source-net.tar.gz
fi
# Create tarball
tar cfz source-net.tar.gz source
# Creating stage file
Create_stagefile .stage/source_net

View File

@ -1,6 +1,6 @@
#!/bin/sh #!/bin/sh
# lh_source_usb-hdd(1) - build source image # lh_source_usb-hdd(1) - build source usb-hdd image
# Copyright (C) 2006-2007 Daniel Baumann <daniel@debian.org> # Copyright (C) 2006-2007 Daniel Baumann <daniel@debian.org>
# #
# live-helper comes with ABSOLUTELY NO WARRANTY; for details see COPYING. # live-helper comes with ABSOLUTELY NO WARRANTY; for details see COPYING.
@ -9,21 +9,21 @@
set -e set -e
# Source common functions # Including common functions
for FUNCTION in /usr/share/live-helper/functions/*.sh LH_BASE="${LH_BASE:-/usr/share/live-helper}"
for FUNCTION in "${LH_BASE}"/functions/*.sh
do do
. ${FUNCTION} . "${FUNCTION}"
done done
# Set static variables # Setting static variables
DESCRIPTION="build source image" DESCRIPTION="build source image"
HELP="" HELP=""
USAGE="${PROGRAM} [--force]" USAGE="${PROGRAM} [--force]"
Arguments "${@}" Arguments "${@}"
Echo_debug "Init ${PROGRAM}"
# Reading configuration files # Reading configuration files
Read_conffile config/common Read_conffile config/common
Read_conffile config/bootstrap Read_conffile config/bootstrap
@ -32,82 +32,81 @@ Read_conffile config/binary
Read_conffile config/source Read_conffile config/source
Set_defaults Set_defaults
Breakpoint "source_usb-hdd: Init"
if [ "${LIVE_SOURCE}" != "enabled" ] if [ "${LIVE_SOURCE}" != "enabled" ]
then then
exit 0 exit 0
fi fi
for IMAGE in ${LIVE_SOURCE_IMAGES} if ! echo "${LIVE_SOURCE_IMAGES}" | grep -qs usb-hdd
do then
if [ "${IMAGE}" = "usb-hdd" ] exit 0
then fi
# Requiring stage file
Require_stagefile .stage/source_debian
# Checking stage file Echo_message "Begin building source usb-hdd image..."
Check_stagefile .stage/source_usb-hdd
# Checking lock file # Requiring stage file
Check_lockfile .lock Require_stagefile .stage/source_debian
# Creating lock file # Checking stage file
Create_lockfile .lock Check_stagefile .stage/source_usb-hdd
# Checking depends # Checking lock file
Check_package chroot/sbin/mkdosfs dosfstools Check_lockfile .lock
Check_package chroot/sbin/parted parted
# Installing depends # Creating lock file
Install_package Create_lockfile .lock
# Remove old source # Checking depends
if [ -f source.img ] Check_package chroot/sbin/mkdosfs dosfstools
then Check_package chroot/sbin/parted parted
rm -f source.img
fi
# Everything which comes here needs to be cleaned up, # Installing depends
DU_DIM="`du -ms source | cut -f1`" Install_package
REAL_DIM="`expr ${DU_DIM} + ${DU_DIM} / 50`" # Just 2% more to be sure, need something more sophistcated here...
dd if=/dev/zero of=source.img bs=1024k count=${REAL_DIM}
FREELO="`${LH_LOSETUP} -f`"
if [ ! -b chroot/${FREELO} ]
then
MAKEDEV="true"
mv chroot/dev chroot/dev.tmp # Remove old source
find /dev | cpio -dmpu chroot if [ -f source.img ]
fi then
rm -f source.img
fi
echo "!!! The following error/warning messages can be ignored !!!" # Everything which comes here needs to be cleaned up,
lh_losetup $FREELO source.img 0 DU_DIM="`du -ms source | cut -f1`"
Chroot "parted -s ${FREELO} mklabel msdos" || true REAL_DIM="`expr ${DU_DIM} + ${DU_DIM} / 50`" # Just 2% more to be sure, need something more sophistcated here...
Chroot "parted -s ${FREELO} mkpartfs primary fat16 0.0 100%" || true dd if=/dev/zero of=source.img bs=1024k count=${REAL_DIM}
Chroot "parted -s ${FREELO} set 1 lba off" || true FREELO="`${LH_LOSETUP} -f`"
${LH_LOSETUP} -d ${FREELO} if [ ! -b chroot/${FREELO} ]
then
MAKEDEV="true"
lh_losetup $FREELO source.img 1 mv chroot/dev chroot/dev.tmp
Chroot " mkfs.vfat -F 16 -n DEBIAN_LIVE ${FREELO}" find /dev | cpio -dmpu chroot
mkdir -p source.tmp fi
${LH_ROOT_COMMAND} mount ${FREELO} source.tmp
cp -r source/* source.tmp
${LH_ROOT_COMMAND} umount source.tmp
rmdir source.tmp
${LH_LOSETUP} -d ${FREELO}
echo "!!! The above error/warning messages can be ignored !!!"
if [ -n "${MAKEDEV}" ] echo "!!! The following error/warning messages can be ignored !!!"
then lh_losetup $FREELO source.img 0
rm -f chroot/dev Chroot "parted -s ${FREELO} mklabel msdos" || true
mv chroot/dev.tmp chroot/dev Chroot "parted -s ${FREELO} mkpartfs primary fat16 0.0 100%" || true
fi Chroot "parted -s ${FREELO} set 1 lba off" || true
${LH_LOSETUP} -d ${FREELO}
# Removing depends lh_losetup $FREELO source.img 1
Remove_package Chroot " mkfs.vfat -F 16 -n DEBIAN_LIVE ${FREELO}"
mkdir -p source.tmp
${LH_ROOT_COMMAND} mount ${FREELO} source.tmp
cp -r source/* source.tmp
${LH_ROOT_COMMAND} umount source.tmp
rmdir source.tmp
${LH_LOSETUP} -d ${FREELO}
echo "!!! The above error/warning messages can be ignored !!!"
# Creating stage file if [ -n "${MAKEDEV}" ]
Create_stagefile .stage/source_usb-hdd then
fi rm -f chroot/dev
done mv chroot/dev.tmp chroot/dev
fi
# Removing depends
Remove_package
# Creating stage file
Create_stagefile .stage/source_usb-hdd

View File

@ -9,13 +9,15 @@
set -e set -e
# Source common functions # Including common functions
for FUNCTION in /usr/share/live-helper/functions/*.sh LH_BASE="${LH_BASE:-/usr/share/live-helper}"
for FUNCTION in "${LH_BASE}"/functions/*.sh
do do
. ${FUNCTION} . "${FUNCTION}"
done done
# Set static variables # Setting static variables
DESCRIPTION="ensure that a system is built as root" DESCRIPTION="ensure that a system is built as root"
HELP="" HELP=""
USAGE="${PROGRAM} [--force]" USAGE="${PROGRAM} [--force]"
@ -30,8 +32,6 @@ Read_conffile config/binary
Read_conffile config/source Read_conffile config/source
Set_defaults Set_defaults
Echo_debug "Init ${PROGRAM}"
# Checking user account # Checking user account
if [ "`${LH_ROOT_COMMAND} id -u`" -ne "0" ] if [ "`${LH_ROOT_COMMAND} id -u`" -ne "0" ]
then then

View File

@ -22,13 +22,15 @@
set -e set -e
# Source common functions # Including common functions
for FUNCTION in /usr/share/live-helper/functions/*.sh LH_BASE="${LH_BASE:-/usr/share/live-helper}"
for FUNCTION in "${LH_BASE}"/functions/*.sh
do do
. ${FUNCTION} . "${FUNCTION}"
done done
# Set static variables # Setting static variables
PROGRAM="`basename ${0}`" PROGRAM="`basename ${0}`"
DESCRIPTION="utility to build Debian Live systems" DESCRIPTION="utility to build Debian Live systems"
USAGE="${PROGRAM} [config] [--mode MODE] [--config CONFIG] [--apt apt|aptitude] [--apt-ftpproxy URL] [--apt-httpproxy URL] [--binary-indices enabled|disabled] [--apt-pdiffs enabled|disabled] [--apt-recommends enabled|disabled] [--apt-secure enabled|disabled] [--bootstrap cdebootstrap|deboostrap] [--cache enabled|disabled] [--debconf-frontend dialog|readline|noninteractive] [--debconf-priority low|medium|high|critical] [--debconf-nowarnings yes|no] [--genisoimage genisoimage|mkisofs] [--losetup losetup|losetup.org] [--tasksel aptitude|tasksel] [-r|--root DIRECTORY] [-a|--architecture ARCHITECTURE] [-d|--distribution stable|testing|unstable|etch|lenny|sid] [--distribution-config DIRECTORY] [-f|--bootstrap-flavour minimal|standard] [-m|--mirror-bootstrap URL] [--mirror-bootstrap-security URL] [--mirror-binary URL] [--mirror-binary-security URL] [--sections SECTION|\"SECTIONS\"] [--interactive shell|x11|xnest] [-k|--linux-flavour FLAVOUR] [--linux-packages PACKAGE|\"PACKAGES\"] [--keyring-packages PACKAGE|\"PACKAGES\"] [--hooks \"COMMAND\"|\"COMMANDS\"] [-l|--language LANGUAGE] [--packages PACKAGE|\"PACKAGES\"] [-p|--packages-lists LIST|\"LISTS\"] [--tasks TASK|\"TASKS\"] [--security enabled|disabled] [--symlinks enabled|disabled] [--sysvinit enabled|disabled] [--bootappend BOOT_PARAMETER|\"BOOT_PARAMETERS\"] [-e|--encryption ALGORITHM] [--username NAME] [--hostname NAME] [--chroot-filesystem ext2|plain|squashfs] [--memtest memtest86|memtest86+] [--iso-volume STRING] [--net-server HOSTNAME|IP] [--net-path DIRECTORY] [--source enabled|disabled] [--bootloader grub|syslinux] [--grub-splash FILE] [--syslinux-splash FILE] [-b|--binary-images hdd|iso|usb-hdd|net] [-s|--source-images generic|hdd|iso|usb-hdd|net] [--includes PATH] [--templates PATH] [--breakpoints] [--debug] [--force] [--quiet] [--verbose] [--root-command sudo]" USAGE="${PROGRAM} [config] [--mode MODE] [--config CONFIG] [--apt apt|aptitude] [--apt-ftpproxy URL] [--apt-httpproxy URL] [--binary-indices enabled|disabled] [--apt-pdiffs enabled|disabled] [--apt-recommends enabled|disabled] [--apt-secure enabled|disabled] [--bootstrap cdebootstrap|deboostrap] [--cache enabled|disabled] [--debconf-frontend dialog|readline|noninteractive] [--debconf-priority low|medium|high|critical] [--debconf-nowarnings yes|no] [--genisoimage genisoimage|mkisofs] [--losetup losetup|losetup.org] [--tasksel aptitude|tasksel] [-r|--root DIRECTORY] [-a|--architecture ARCHITECTURE] [-d|--distribution stable|testing|unstable|etch|lenny|sid] [--distribution-config DIRECTORY] [-f|--bootstrap-flavour minimal|standard] [-m|--mirror-bootstrap URL] [--mirror-bootstrap-security URL] [--mirror-binary URL] [--mirror-binary-security URL] [--sections SECTION|\"SECTIONS\"] [--interactive shell|x11|xnest] [-k|--linux-flavour FLAVOUR] [--linux-packages PACKAGE|\"PACKAGES\"] [--keyring-packages PACKAGE|\"PACKAGES\"] [--hooks \"COMMAND\"|\"COMMANDS\"] [-l|--language LANGUAGE] [--packages PACKAGE|\"PACKAGES\"] [-p|--packages-lists LIST|\"LISTS\"] [--tasks TASK|\"TASKS\"] [--security enabled|disabled] [--symlinks enabled|disabled] [--sysvinit enabled|disabled] [--bootappend BOOT_PARAMETER|\"BOOT_PARAMETERS\"] [-e|--encryption ALGORITHM] [--username NAME] [--hostname NAME] [--chroot-filesystem ext2|plain|squashfs] [--memtest memtest86|memtest86+] [--iso-volume STRING] [--net-server HOSTNAME|IP] [--net-path DIRECTORY] [--source enabled|disabled] [--bootloader grub|syslinux] [--grub-splash FILE] [--syslinux-splash FILE] [-b|--binary-images hdd|iso|usb-hdd|net] [-s|--source-images generic|hdd|iso|usb-hdd|net] [--includes PATH] [--templates PATH] [--breakpoints] [--debug] [--force] [--quiet] [--verbose] [--root-command sudo]"
@ -39,7 +41,7 @@ Local_arguments ()
{ {
ARGUMENTS="`getopt --longoptions mode:,config:,apt:,apt-ftpproxy:,apt-httpproxy:,binary-indices:,apt-pdiffs:,apt-recommends:,apt-secure:,bootstrap:,cache:,debconf-frontend:,debconf-priority:,debconf-nowarnings:,genisoimage:,losetup:,tasksel:,root:,architecture:,distribution:,distribution-config:,flavour:,mirror-bootstrap:,mirror-bootstrap-security:,mirror-binary:,mirror-binary-security:,sections:,interactive:,kernel:,kernel-packages:,keyring-packages:,hooks:,language:,packages:,packages-lists:,tasks:,security:,symlinks:,sysvinit:,bootappend:,encryption:,username:,hostname:,chroot-filesystem:,memtest:,iso-application:,iso-preparer:,iso-publisher:,iso-volume:,server-address:,server-path:,source:,bootloader:,grub-splash:,syslinux-splash:,binary-images:,binary-source:,includes:,templates:,help,usage,version,force,breakpoints,debug,quiet,verbose,root-command:,initramfs: --name=${PROGRAM} --options r:a:d:f:m:k:l:p:e:b:s:huv --shell sh -- "${@}"`" ARGUMENTS="`getopt --longoptions mode:,config:,apt:,apt-ftpproxy:,apt-httpproxy:,binary-indices:,apt-pdiffs:,apt-recommends:,apt-secure:,bootstrap:,cache:,debconf-frontend:,debconf-priority:,debconf-nowarnings:,genisoimage:,losetup:,tasksel:,root:,architecture:,distribution:,distribution-config:,flavour:,mirror-bootstrap:,mirror-bootstrap-security:,mirror-binary:,mirror-binary-security:,sections:,interactive:,kernel:,kernel-packages:,keyring-packages:,hooks:,language:,packages:,packages-lists:,tasks:,security:,symlinks:,sysvinit:,bootappend:,encryption:,username:,hostname:,chroot-filesystem:,memtest:,iso-application:,iso-preparer:,iso-publisher:,iso-volume:,server-address:,server-path:,source:,bootloader:,grub-splash:,syslinux-splash:,binary-images:,binary-source:,includes:,templates:,help,usage,version,force,breakpoints,debug,quiet,verbose,root-command:,initramfs: --name=${PROGRAM} --options r:a:d:f:m:k:l:p:e:b:s:huv --shell sh -- "${@}"`"
if [ "${?}" != "0" ] if [ "${?}" -ne "0" ]
then then
echo "Terminating." >&2 echo "Terminating." >&2
exit 1 exit 1
@ -355,10 +357,7 @@ Main ()
Set_defaults Set_defaults
if [ -z "${ROOT}" ] ROOT="${ROOT:-$LIVE_ROOT}"
then
ROOT="${LIVE_ROOT}"
fi
# Source existing configuration # Source existing configuration
Read_conffile "${ROOT}"/config/common Read_conffile "${ROOT}"/config/common

View File

@ -0,0 +1,40 @@
Boot Parameters for Debian Live
-------------------------------
Updated for live-initramfs 1.87.6-1 on 2007-06-03.
These options (can be combined) work from the ISOLINUX bootprompt:
live access=v1|v2|v3|m1|m2 specify accessibility level
live console=TTY,SPEED setting default console for live-getty
live hostname=HOSTNAME override hostname value
live integrity-check check media data integrity and md5sums
live ip=IFACE,ADDRESS,NETMASK,GATEWAY specify network interface(s)
live ip[=frommedia] skips dhcp/static, uses preconfiguration
live keyb|kbd-chooser/method=KEYBOARD
live klayout|console-setup/layoutcode=LAYOUT
live kvariant|console-setup/variantcode=VARIANT
live kmodel|console-setup/modelcode=CODE
live koptions=OPTIONS
live live-getty
live live-media|bootfrom=DEVICE
live live-media-encryption|encryption=TYPE
live live-media-offset=BYTES
live live-media-timeout=SECONDS
live locale|debian-installer/local=LOCALE
live module=NAME
live netboot[=nfs|cifs]
live noautologin
live noxautologin
live nopersistent
live nosudo
live noswap
live persistent
live quickreboot
live showmounts
live todisk=DEVICE
live toram copy media to RAM and run from there
live preseed/file|file=FILE
live package/question=VALUE
live xdebconf
live xvideomode=RESOLUTION

View File

@ -1,4 +0,0 @@
# /usr/share/live-helper/lists/mini - package list for live-helper(7)
# Minimal
eject file sudo vim-tiny

View File

@ -1,4 +0,0 @@
# /usr/share/live-helper/lists/minimal - package list for live-helper(7)
# Minimal
eject file sudo vim-tiny

View File

@ -1,4 +1,4 @@
.TH LH_BINARY 1 "28.05.2007" "1.0~a12" "live\-helper" .TH LH_BINARY 1 "04.06.2007" "1.0~a13" "live\-helper"
.SH NAME .SH NAME
lh_binary \- Meta\-Helper f\[:u]r lh_binary_* lh_binary \- Meta\-Helper f\[:u]r lh_binary_*

View File

@ -1,4 +1,4 @@
.TH LH_BINARY 1 "2007\-05\-28" "1.0~a12" "live\-helper" .TH LH_BINARY 1 "2007\-06\-04" "1.0~a13" "live\-helper"
.SH NAME .SH NAME
lh_binary \- meta\-helper for lh_binary_* lh_binary \- meta\-helper for lh_binary_*

View File

@ -1,4 +1,4 @@
.TH LH_BOOTSTRAP 1 "28.05.2007" "1.0~a12" "live\-helper" .TH LH_BOOTSTRAP 1 "04.06.2007" "1.0~a13" "live\-helper"
.SH NAME .SH NAME
lh_bootstrap \- Meta\-Helper f\[:u]r lh_bootstrap_* lh_bootstrap \- Meta\-Helper f\[:u]r lh_bootstrap_*

View File

@ -1,4 +1,4 @@
.TH LH_BOOTSTRAP 1 "2007\-05\-28" "1.0~a12" "live\-helper" .TH LH_BOOTSTRAP 1 "2007\-06\-04" "1.0~a13" "live\-helper"
.SH NAME .SH NAME
lh_bootstrap \- meta\-helper for lh_bootstrap_* lh_bootstrap \- meta\-helper for lh_bootstrap_*

View File

@ -1,4 +1,4 @@
.TH LH_BOOTSTRAP_CDEBOOTSTRAP 1 "28.05.2007" "1.0~a12" "live\-helper" .TH LH_BOOTSTRAP_CDEBOOTSTRAP 1 "04.06.2007" "1.0~a13" "live\-helper"
.SH NAME .SH NAME
lh_bootstrap_cdebootstrap \- erstellt ein Debian-System mit \fIcdebootstrap\fR(1) lh_bootstrap_cdebootstrap \- erstellt ein Debian-System mit \fIcdebootstrap\fR(1)

View File

@ -1,4 +1,4 @@
.TH LH_BOOTSTRAP_CDEBOOTSTRAP 1 "2007\-05\-28" "1.0~a12" "live\-helper" .TH LH_BOOTSTRAP_CDEBOOTSTRAP 1 "2007\-06\-04" "1.0~a13" "live\-helper"
.SH NAME .SH NAME
lh_bootstrap_cdebootstrap \- bootstrap a Debian system with \fIcdebootstrap\fR(1) lh_bootstrap_cdebootstrap \- bootstrap a Debian system with \fIcdebootstrap\fR(1)

View File

@ -1,4 +1,4 @@
.TH LH_BOOTSTRAP_DEBOOTSTRAP 1 "28.05.2007" "1.0~a12" "live\-helper" .TH LH_BOOTSTRAP_DEBOOTSTRAP 1 "04.06.2007" "1.0~a13" "live\-helper"
.SH NAME .SH NAME
lh_bootstrap_debootstrap \- erstellt ein Debian-System mit \fIdebootstrap\fR(8) lh_bootstrap_debootstrap \- erstellt ein Debian-System mit \fIdebootstrap\fR(8)

View File

@ -1,4 +1,4 @@
.TH LH_BOOTSTRAP_DEBOOTSTRAP 1 "2007\-05\-28" "1.0~a12" "live\-helper" .TH LH_BOOTSTRAP_DEBOOTSTRAP 1 "2007\-06\-04" "1.0~a13" "live\-helper"
.SH NAME .SH NAME
lh_bootstrap_debootstrap \- bootstrap a Debian system with \fIdebootstrap\fR(8) lh_bootstrap_debootstrap \- bootstrap a Debian system with \fIdebootstrap\fR(8)

View File

@ -1,4 +1,4 @@
.TH LH_BUILD 1 "28.05.2007" "1.0~a12" "live\-helper" .TH LH_BUILD 1 "04.06.2007" "1.0~a13" "live\-helper"
.SH NAME .SH NAME
lh_build \- erstellen eines Live-Systemes lh_build \- erstellen eines Live-Systemes

View File

@ -1,4 +1,4 @@
.TH LH_BUILD 1 "2007\-05\-28" "1.0~a12" "live\-helper" .TH LH_BUILD 1 "2007\-06\-04" "1.0~a13" "live\-helper"
.SH NAME .SH NAME
lh_build \- building a live system lh_build \- building a live system

View File

@ -1,4 +1,4 @@
.TH LH_CHROOT 1 "28.05.2007" "1.0~a12" "live\-helper" .TH LH_CHROOT 1 "04.06.2007" "1.0~a13" "live\-helper"
.SH NAME .SH NAME
lh_chroot \- Meta\-Helper f\[:u]r lh_chroot_* lh_chroot \- Meta\-Helper f\[:u]r lh_chroot_*

View File

@ -1,4 +1,4 @@
.TH LH_CHROOT 1 "2007\-05\-28" "1.0~a12" "live\-helper" .TH LH_CHROOT 1 "2007\-06\-04" "1.0~a13" "live\-helper"
.SH NAME .SH NAME
lh_chroot \- meta\-helper for lh_chroot_* lh_chroot \- meta\-helper for lh_chroot_*

View File

@ -1,4 +1,4 @@
.TH LH_CLEAN 1 "28.05.2007" "1.0~a12" "live\-helper" .TH LH_CLEAN 1 "04.06.2007" "1.0~a13" "live\-helper"
.SH NAME .SH NAME
lh_clean \- r\[:a]umt das Build-Verzeichnis auf lh_clean \- r\[:a]umt das Build-Verzeichnis auf

View File

@ -1,4 +1,4 @@
.TH LH_CLEAN 1 "2007\-05\-28" "1.0~a12" "live\-helper" .TH LH_CLEAN 1 "2007\-06\-04" "1.0~a13" "live\-helper"
.SH NAME .SH NAME
lh_clean \- clean up system build directories lh_clean \- clean up system build directories

View File

@ -1,4 +1,4 @@
.TH LH_SOURCE 1 "28.05.2007" "1.0~a12" "live\-helper" .TH LH_SOURCE 1 "04.06.2007" "1.0~a13" "live\-helper"
.SH NAME .SH NAME
lh_source \- Meta\-Helper f\[:u]r lh_source_* lh_source \- Meta\-Helper f\[:u]r lh_source_*

View File

@ -1,4 +1,4 @@
.TH LH_SOURCE 1 "2007\-05\-28" "1.0~a12" "live\-helper" .TH LH_SOURCE 1 "2007\-06\-04" "1.0~a13" "live\-helper"
.SH NAME .SH NAME
lh_source \- meta\-helper for lh_source_* lh_source \- meta\-helper for lh_source_*

View File

@ -1,4 +1,4 @@
.TH LH_TESTROOT 1 "28.05.2007" "1.0~a12" "live\-helper" .TH LH_TESTROOT 1 "04.06.2007" "1.0~a13" "live\-helper"
.SH NAME .SH NAME
lh_testroot \- stellt sicher dass das System als root gebaut wird lh_testroot \- stellt sicher dass das System als root gebaut wird

View File

@ -1,4 +1,4 @@
.TH LH_TESTROOT 1 "2007\-05\-28" "1.0~a12" "live\-helper" .TH LH_TESTROOT 1 "2007\-06\-04" "1.0~a13" "live\-helper"
.SH NAME .SH NAME
lh_testroot \- ensure that a system is built as root lh_testroot \- ensure that a system is built as root

View File

@ -1,4 +1,4 @@
.TH LIVE\-HELPER 7 "28.05.2007" "1.0~a12" "live\-helper" .TH LIVE\-HELPER 7 "04.06.2007" "1.0~a13" "live\-helper"
.SH NAME .SH NAME
live\-helper \- Debian Live Helper-Programme live\-helper \- Debian Live Helper-Programme
@ -167,6 +167,10 @@ gibt Versionsinformationen aus und stoppt.
.SH SIEHE AUCH .SH SIEHE AUCH
\fIlive\-initramfs\fR(7) \fIlive\-initramfs\fR(7)
.PP
\fIlive\-sysvinit\fR(7)
.PP
\fIlive\-webhelper\fR(7)
.SH FEHLER .SH FEHLER
Fehler k\[:o]nnen gegen live\-helper <\fIhttp://packages.qa.debian.org/live\-helper/\fR> gemeldet werden. Fehler k\[:o]nnen gegen live\-helper <\fIhttp://packages.qa.debian.org/live\-helper/\fR> gemeldet werden.

View File

@ -1,4 +1,4 @@
.TH LIVE\-HELPER 7 "2007\-05\-28" "1.0~a12" "live\-helper" .TH LIVE\-HELPER 7 "2007\-06\-04" "1.0~a13" "live\-helper"
.SH NAME .SH NAME
live\-helper \- Debian Live helper programs live\-helper \- Debian Live helper programs
@ -165,6 +165,10 @@ output version information and exit
.SH SEE ALSO .SH SEE ALSO
\fIlive\-initramfs\fR(7) \fIlive\-initramfs\fR(7)
.PP
\fIlive\-sysvinit\fR(7)
.PP
\fIlive\-webhelper\fR(7)
.SH BUGS .SH BUGS
Report bugs against live\-helper <\fIhttp://packages.qa.debian.org/live\-helper/\fR>. Report bugs against live\-helper <\fIhttp://packages.qa.debian.org/live\-helper/\fR>.

View File

@ -1,4 +1,4 @@
.TH MAKE\-LIVE 1 "28.05.2007" "1.0~a12" "live\-helper" .TH MAKE\-LIVE 1 "04.06.2007" "1.0~a13" "live\-helper"
.SH NAME .SH NAME
make\-live \- erstellt ein Debian Live-System make\-live \- erstellt ein Debian Live-System

Some files were not shown because too many files have changed in this diff Show More