Adding live-helper 1.0~a5-1.
This commit is contained in:
parent
da353a5231
commit
1863ed8874
|
@ -13,7 +13,7 @@ Casper is a hook for initramfs-tools used to generate an initramfs capable to bo
|
|||
.SH RECOGNIZED BOOT OPTIONS
|
||||
.TP
|
||||
.BI "access=" ACCESS
|
||||
Set the accessibility level for physically or visually impared users.
|
||||
Set the accessibility level for physically or visually impared users.
|
||||
ACCESS must be one of v1, v2, v3, m1, or m2. v1=lesser visual impairment, v2=moderate visual impairment, v3=blindness, m1=minor motor difficulties, m2=moderate motor difficulties.
|
||||
.TP
|
||||
.B casper-getty
|
||||
|
@ -72,7 +72,7 @@ This option causes casper to reboot without attempting to eject the media and wi
|
|||
.B "showmounts"
|
||||
This parameter will make casper to show on "/" the ro filesystems (mostly compressed) on /casper. This is not enabled by default because could lead to problems by applications like "mono" which store binary paths on installation.
|
||||
.TP
|
||||
.BI "todisk=" DEVICE
|
||||
.BI "todisk=" DEVICE
|
||||
Adding this parameter, casper will try to copy the entire read-only media to the specified device before mounting the root filesystem. It probably needs a lot of free space. Subsequent boots should then skip this step and just specify the "live-media=DEVICE" boot parameter with the same DEVICE used this time.
|
||||
.TP
|
||||
.B toram
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
The derivated splash for Debian Live was done by Daniel Baumann
|
||||
<daniel@debian.org> from the original of Mark Riedesel. Daniels own contribution
|
||||
to the derivated splash is hereby placed in the public domain.
|
||||
The splash for Debian Live was done by Daniel Baumann <daniel@debian.org> based
|
||||
on the original work of Mark Riedesel. The contribution of Daniel is hereby
|
||||
placed in the public domain (no rights reserved).
|
||||
|
||||
---------------
|
||||
http://dugnet.com/klown/pics/klowner_debboot.png
|
||||
|
|
|
@ -1,14 +1,20 @@
|
|||
live-helper (1.0~a5-1) unstable; urgency=low
|
||||
|
||||
* New upstream release.
|
||||
|
||||
-- Daniel Baumann <daniel@debian.org> Mon, 9 Apr 2007 00:00:00 +0200
|
||||
|
||||
live-helper (1.0~a4-1) unstable; urgency=low
|
||||
|
||||
* New upstream release.
|
||||
|
||||
-- Daniel Baumann <daniel@debian.org> Mon, 2 Apr 2007 00:00:00 +0100
|
||||
-- Daniel Baumann <daniel@debian.org> Mon, 2 Apr 2007 00:00:00 +0200
|
||||
|
||||
live-helper (1.0~a3-2) unstable; urgency=low
|
||||
|
||||
* Fixed typo in maintainer scripts.
|
||||
|
||||
-- Daniel Baumann <daniel@debian.org> Mon, 26 Mar 2007 17:00:00 +0100
|
||||
-- Daniel Baumann <daniel@debian.org> Mon, 26 Mar 2007 17:00:00 +0200
|
||||
|
||||
live-helper (1.0~a3-1) unstable; urgency=low
|
||||
|
||||
|
|
|
@ -3,7 +3,7 @@ Mon, 12 Mar 2007 00:00:00 +0100.
|
|||
|
||||
It was downloaded from <http://debian-live.alioth.debian.org/>.
|
||||
|
||||
Upstream Author: Debian Live <debian-live-devel@lists.alioth.debian.org>
|
||||
Upstream contact: Debian Live <debian-live-devel@lists.alioth.debian.org>
|
||||
|
||||
License:
|
||||
|
||||
|
@ -28,10 +28,10 @@ can be found in /usr/share/common-licenses/GPL file.
|
|||
|
||||
License (contrib/syslinux-splash/*, templates/syslinux/splash.rle):
|
||||
|
||||
The derivated splash for Debian Live was done by Daniel Baumann
|
||||
<daniel@debian.org> from the original of Mark Riedesel. Daniels own
|
||||
contribution to the derivated splash is hereby placed in the public
|
||||
domain.
|
||||
The splash for Debian Live was done by Daniel Baumann
|
||||
<daniel@debian.org> based on the original work of Mark Riedesel. The
|
||||
contribution of Daniel is hereby placed in the public domain (no rights
|
||||
reserved).
|
||||
|
||||
---------------
|
||||
http://dugnet.com/klown/pics/klowner_debboot.png
|
||||
|
|
|
@ -5,8 +5,8 @@
|
|||
|
||||
upstream:
|
||||
# Needs: subversion
|
||||
cd .. && svn co svn://svn.debian.org/debian-live/dists/trunk/live-helper || exit 0
|
||||
find . -type d -name .svn -exec rm -rf {} \; || exit 0
|
||||
cd .. && svn co svn://svn.debian.org/debian-live/dists/trunk/live-helper || true
|
||||
find . -type d -name .svn | xargs rm -rf
|
||||
|
||||
build:
|
||||
|
||||
|
|
|
@ -1,3 +1,43 @@
|
|||
2007-04-09 Daniel Baumann <daniel@debian.org>
|
||||
|
||||
* helpers/lh_config, make-live, functions/defaults.sh:
|
||||
- Added mode to distinguish between Debian and Ubuntu.
|
||||
* helpers/lh_chroot_sources:
|
||||
- Added check for LIVE_MIRROR_BUILD* to be equal to
|
||||
LIVE_MIRROR_IMAGE*.
|
||||
|
||||
2007-04-08 Daniel Baumann <daniel@debian.org>
|
||||
|
||||
* helpers/lh_binary_net:
|
||||
- Added check for namespace collision with LIVE_SERVER_PATH.
|
||||
* helpers/lh_binary_grub:
|
||||
- Added functionality for usb|hdd images.
|
||||
|
||||
2007-04-07 Daniel Baumann <daniel@debian.org>
|
||||
|
||||
* helpers/lh_chroot_sources:
|
||||
- Moved check for local source lists from
|
||||
config/sources.lists.{build,image} to
|
||||
config/chroot_sources/*.{build,image}.
|
||||
- Added check for local gpg keys in
|
||||
config/chroot_sources/*.{build,image}.gpg.
|
||||
- Added check for local keyring packages in
|
||||
config/chroot_sources/*.deb.
|
||||
- Added LIVE_KEYRING_PACKAGES.
|
||||
|
||||
2007-04-06 Daniel Baumann <daniel@debian.org>
|
||||
|
||||
* functions/breakpoints.sh, helpers/*:
|
||||
- Added initial breakpoints.
|
||||
* functions/chroot.sh:
|
||||
- Adding /usr/local to path.
|
||||
* functions/lockfile.sh:
|
||||
- Added additional signals to the trap.
|
||||
* helpers/lh_binary_includes:
|
||||
- Respect LIVE_INCLUDES=none.
|
||||
* manpages/*:
|
||||
- Updated.
|
||||
|
||||
2007-04-05 Daniel Baumann <daniel@debian.org>
|
||||
|
||||
* helpers/lh_binary_grub, templates/grub/menu.lst:
|
||||
|
|
4
doc/FAQ
4
doc/FAQ
|
@ -22,8 +22,8 @@ Run Time
|
|||
--------
|
||||
|
||||
Q: What is the root password?
|
||||
A: There is none. You can switch to root with 'sudo su -' or set a password with
|
||||
A: There is none. You can switch to root with 'sudo -i' or set a password with
|
||||
'sudo passwd'.
|
||||
|
||||
Q: What is the user password?
|
||||
A: The user password for 'user' is 'live'.
|
||||
A: The password for the default user is 'live'.
|
||||
|
|
1
doc/TODO
1
doc/TODO
|
@ -9,7 +9,6 @@ Todo:
|
|||
|
||||
* write manpage and documentation
|
||||
* write lh_binary_di and lh_binary_gi
|
||||
* write lh_binary_grub
|
||||
|
||||
Later:
|
||||
* Add win32 autorun like
|
||||
|
|
|
@ -2,8 +2,8 @@
|
|||
|
||||
# This is a hook for live-helper(7) to install beryl and enable aixgl.
|
||||
# It was originally written by Inigo Tejedor Arrondo <inigo@navarrux.org>.
|
||||
# To enable it, copy this hook into your config/chroot_localhooks directory.
|
||||
#
|
||||
# To enable it, copy this hook into your config/chroot_localhooks directory.
|
||||
# At boot prompt, type 'linux aixgl', press enter and have fun.
|
||||
|
||||
# Update sources.list
|
||||
|
|
|
@ -1,7 +1,9 @@
|
|||
#!/bin/sh
|
||||
|
||||
# This is a hook for live-helper(7) to install sun-java.
|
||||
# To enable it, copy this hook into your config/chroot_localhooks directory.
|
||||
#
|
||||
# To enable it, copy this hook into your config/chroot_localhooks directory and
|
||||
# don't forget to enable non-free in LIVE_SECTIONS.
|
||||
#
|
||||
# live-helper sets DEBIAN_FRONTEND to 'noninteractive' to advise debconf to not
|
||||
# ask any questions while installing packages. Suns redistribution terms for
|
||||
|
|
|
@ -0,0 +1,9 @@
|
|||
# This is a sources.list for live-helper(7) to use packages from the
|
||||
# Debian Live Etch backports repository.
|
||||
#
|
||||
# To enable it, copy this file to your config/chroot_sources directory, once
|
||||
# as e.g. live.build and once as live.image.
|
||||
|
||||
# Debian Live backports for Etch
|
||||
deb http://live.debian.net/debian/ etch main
|
||||
deb-src http://live.debian.net/debian/ etch main
|
|
@ -11,7 +11,7 @@ set -e
|
|||
|
||||
Arguments ()
|
||||
{
|
||||
ARGUMENTS="`getopt --longoptions conffile:,debug,force,help,logfile:,quiet,usage,verbose,version --name=${PROGRAM} --options huv --shell sh -- "${@}"`"
|
||||
ARGUMENTS="`getopt --longoptions breakpoints,conffile:,debug,force,help,logfile:,quiet,usage,verbose,version --name=${PROGRAM} --options huv --shell sh -- "${@}"`"
|
||||
|
||||
if [ "${?}" != "0" ]
|
||||
then
|
||||
|
@ -24,16 +24,20 @@ Arguments ()
|
|||
while true
|
||||
do
|
||||
case "${1}" in
|
||||
--breakpoints)
|
||||
LH_BREAKPOINTS="enabled"; shift
|
||||
;;
|
||||
|
||||
--conffile)
|
||||
CONFFILE="${2}"; shift 2
|
||||
LH_CONFFILE="${2}"; shift 2
|
||||
;;
|
||||
|
||||
--debug)
|
||||
DEBUG="true"; shift
|
||||
LH_DEBUG="enabled"; shift
|
||||
;;
|
||||
|
||||
--force)
|
||||
FORCE="true"; shift
|
||||
LH_FORCE="enabled"; shift
|
||||
;;
|
||||
|
||||
-h|--help)
|
||||
|
@ -41,11 +45,11 @@ Arguments ()
|
|||
;;
|
||||
|
||||
--logfile)
|
||||
LOGFILE="${2}"; shift 2
|
||||
LH_LOGFILE="${2}"; shift 2
|
||||
;;
|
||||
|
||||
--quiet)
|
||||
QUIET="true"; shift
|
||||
LH_QUIET="enabled"; shift
|
||||
;;
|
||||
|
||||
-u|--usage)
|
||||
|
@ -53,7 +57,7 @@ Arguments ()
|
|||
;;
|
||||
|
||||
--verbose)
|
||||
VERBOSE="true"; shift
|
||||
LH_VERBOSE="enabled"; shift
|
||||
;;
|
||||
|
||||
-v|--version)
|
||||
|
|
|
@ -1,8 +1,19 @@
|
|||
#!/bin/sh
|
||||
|
||||
# breakpoints.sh
|
||||
# breakpoints.sh - run with breakpoints
|
||||
# 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.
|
||||
|
||||
Breakpoint ()
|
||||
{
|
||||
if [ "${LH_BREAKPOINTS}" = "enabled" ]
|
||||
then
|
||||
BREAKPOINT="${1}"
|
||||
|
||||
Echo_message "Waiting at ${BREAKPOINT}"
|
||||
read
|
||||
fi
|
||||
}
|
||||
|
|
|
@ -15,5 +15,5 @@ Chroot ()
|
|||
|
||||
# Executing commands in chroot
|
||||
Echo_debug "Executing: ${COMMANDS}"
|
||||
chroot chroot /usr/bin/env -i HOME="/root" PATH="/usr/sbin:/usr/bin:/sbin:/bin" TERM="${TERM}" ftp_proxy="${LH_APT_FTPPROXY}" http_proxy="${LH_APT_HTTPPPROXY}" DEBIAN_FRONTEND="${LH_DEBCONF_FRONTEND}" DEBIAN_PRIORITY="${LH_DEBCONF_PRIORITY}" ${COMMANDS}
|
||||
chroot chroot /usr/bin/env -i HOME="/root" PATH="/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin" TERM="${TERM}" ftp_proxy="${LH_APT_FTPPROXY}" http_proxy="${LH_APT_HTTPPPROXY}" DEBIAN_FRONTEND="${LH_DEBCONF_FRONTEND}" DEBIAN_PRIORITY="${LH_DEBCONF_PRIORITY}" ${COMMANDS}
|
||||
}
|
||||
|
|
|
@ -10,4 +10,4 @@
|
|||
set -e
|
||||
|
||||
PROGRAM="`basename ${0}`"
|
||||
VERSION="1.0~a4"
|
||||
VERSION="1.0~a5"
|
||||
|
|
|
@ -13,6 +13,12 @@ Set_defaults ()
|
|||
{
|
||||
## config/common
|
||||
|
||||
# Setting mode
|
||||
if [ -z "${LH_MODE}" ]
|
||||
then
|
||||
LH_MODE="debian"
|
||||
fi
|
||||
|
||||
# Setting package manager
|
||||
if [ -z "${LH_APT}" ]
|
||||
then
|
||||
|
@ -68,16 +74,36 @@ Set_defaults ()
|
|||
# Setting bootstrap program
|
||||
if [ -z "${LH_BOOTSTRAP}" ] || [ ! -x "${LH_BOOTSTRAP}" ]
|
||||
then
|
||||
if [ -x "/usr/bin/cdebootstrap" ]
|
||||
then
|
||||
LH_BOOTSTRAP="cdebootstrap"
|
||||
elif [ -x "/usr/sbin/debootstrap" ]
|
||||
then
|
||||
LH_BOOTSTRAP="debootstrap"
|
||||
else
|
||||
echo "E: Can't process file /usr/bin/cdebootstrap or /usr/sbin/debootstrap (FIXME)"
|
||||
exit 1
|
||||
fi
|
||||
case "${LH_MODE}" in
|
||||
debian)
|
||||
if [ -x "/usr/bin/cdebootstrap" ]
|
||||
then
|
||||
LH_BOOTSTRAP="cdebootstrap"
|
||||
elif [ -x "/usr/sbin/debootstrap" ]
|
||||
then
|
||||
LH_BOOTSTRAP="debootstrap"
|
||||
else
|
||||
echo "E: Can't process file /usr/bin/cdebootstrap or /usr/sbin/debootstrap (FIXME)"
|
||||
exit 1
|
||||
fi
|
||||
;;
|
||||
|
||||
ubuntu)
|
||||
if [ -x "/usr/sbin/debootstrap" ]
|
||||
then
|
||||
if [ -f /usr/lib/debootstrap/scripts/feisty ]
|
||||
then
|
||||
LH_BOOTSTRAP="debootstrap"
|
||||
else
|
||||
echo "E: Your version of debootstrap does not support ubuntu."
|
||||
exit 1
|
||||
fi
|
||||
else
|
||||
echo "E: You need to install debootstrap from Ubuntu in order to bootstrap ubuntu."
|
||||
exit 1
|
||||
fi
|
||||
;;
|
||||
esac
|
||||
fi
|
||||
|
||||
# Setting cache option
|
||||
|
@ -121,7 +147,41 @@ Set_defaults ()
|
|||
# Setting root directory
|
||||
if [ -z "${LIVE_ROOT}" ]
|
||||
then
|
||||
LIVE_ROOT="debian-live"
|
||||
case "${LH_MODE}" in
|
||||
debian)
|
||||
LIVE_ROOT="debian-live"
|
||||
;;
|
||||
|
||||
ubuntu)
|
||||
LIVE_ROOT="ubuntu-live"
|
||||
;;
|
||||
esac
|
||||
fi
|
||||
|
||||
# Setting live helper options
|
||||
if [ -z "${LH_BREAKPOINTS}" ]
|
||||
then
|
||||
LH_BREAKPOINTS="disabled"
|
||||
fi
|
||||
|
||||
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
|
||||
|
@ -140,11 +200,19 @@ Set_defaults ()
|
|||
# Setting distribution value
|
||||
if [ -z "${LIVE_DISTRIBUTION}" ]
|
||||
then
|
||||
LIVE_DISTRIBUTION="sid"
|
||||
case "${LH_MODE}" in
|
||||
debian)
|
||||
LIVE_DISTRIBUTION="sid"
|
||||
;;
|
||||
|
||||
ubuntu)
|
||||
LIVE_DISTRIBUTION="feisty"
|
||||
;;
|
||||
esac
|
||||
fi
|
||||
|
||||
# Setting distribution configuration value
|
||||
# LIVE_DISTRIBUTION_CONFIG
|
||||
# LIVE_BOOTSTRAP_CONFIG
|
||||
|
||||
# Setting flavour value
|
||||
if [ -z "${LIVE_BOOTSTRAP_FLAVOUR}" ]
|
||||
|
@ -155,25 +223,57 @@ Set_defaults ()
|
|||
# Setting mirror to fetch packages from
|
||||
if [ -z "${LIVE_MIRROR_BUILD}" ]
|
||||
then
|
||||
LIVE_MIRROR_BUILD="http://ftp.debian.org/debian/"
|
||||
case "${LH_MODE}" in
|
||||
debian)
|
||||
LIVE_MIRROR_BUILD="http://ftp.debian.org/debian/"
|
||||
;;
|
||||
|
||||
ubuntu)
|
||||
LIVE_MIRROR_BUILD="http://archive.ubuntu.com/ubuntu/"
|
||||
;;
|
||||
esac
|
||||
fi
|
||||
|
||||
# Setting security mirror to fetch packages from
|
||||
if [ -z "${LIVE_MIRROR_BUILD_SECURITY}" ]
|
||||
then
|
||||
LIVE_MIRROR_BUILD_SECURITY="http://security.debian.org/"
|
||||
case "${LH_MODE}" in
|
||||
debian)
|
||||
LIVE_MIRROR_BUILD_SECURITY="http://security.debian.org/"
|
||||
;;
|
||||
|
||||
ubuntu)
|
||||
LIVE_MIRROR_BUILD_SECURITY="http://security.ubuntu.org/ubuntu/"
|
||||
;;
|
||||
esac
|
||||
fi
|
||||
|
||||
# Setting mirror which ends up in the image
|
||||
if [ -z "${LIVE_MIRROR_IMAGE}" ]
|
||||
then
|
||||
LIVE_MIRROR_IMAGE="http://ftp.debian.org/debian/"
|
||||
case "${LH_MODE}" in
|
||||
debian)
|
||||
LIVE_MIRROR_IMAGE="http://ftp.debian.org/debian/"
|
||||
;;
|
||||
|
||||
ubuntu)
|
||||
LIVE_MIRROR_IMAGE="http://archive.ubuntu.com/ubuntu/"
|
||||
;;
|
||||
esac
|
||||
fi
|
||||
|
||||
# Setting security mirror which ends up in the image
|
||||
if [ -z "${LIVE_MIRROR_IMAGE_SECURITY}" ]
|
||||
then
|
||||
LIVE_MIRROR_IMAGE_SECURITY="http://security.debian.org/"
|
||||
case "${LH_MODE}" in
|
||||
debian)
|
||||
LIVE_MIRROR_IMAGE_SECURITY="http://security.debian.org/"
|
||||
;;
|
||||
|
||||
ubuntu)
|
||||
LIVE_MIRROR_IMAGE_SECURITY="http://security.ubuntu.com/ubuntu/"
|
||||
;;
|
||||
esac
|
||||
fi
|
||||
|
||||
# Setting sections value
|
||||
|
@ -199,7 +299,15 @@ Set_defaults ()
|
|||
;;
|
||||
|
||||
amd64)
|
||||
LIVE_KERNEL_FLAVOUR="amd64"
|
||||
case "${LH_MODE}" in
|
||||
debian)
|
||||
LIVE_KERNEL_FLAVOUR="amd64"
|
||||
;;
|
||||
|
||||
ubuntu)
|
||||
LIVE_KERNEL_FLAVOUR="amd64-generic"
|
||||
;;
|
||||
esac
|
||||
;;
|
||||
|
||||
arm)
|
||||
|
@ -212,7 +320,15 @@ Set_defaults ()
|
|||
;;
|
||||
|
||||
i386)
|
||||
LIVE_KERNEL_FLAVOUR="486"
|
||||
case "${LH_MODE}" in
|
||||
debian)
|
||||
LIVE_KERNEL_FLAVOUR="486"
|
||||
;;
|
||||
|
||||
ubuntu)
|
||||
LIVE_KERNEL_FLAVOUR="386"
|
||||
;;
|
||||
esac
|
||||
;;
|
||||
|
||||
ia64)
|
||||
|
@ -233,7 +349,15 @@ Set_defaults ()
|
|||
;;
|
||||
|
||||
sparc)
|
||||
LIVE_KERNEL_FLAVOUR="sparc32"
|
||||
case "${LH_MODE}" in
|
||||
debian)
|
||||
LIVE_KERNEL_FLAVOUR="sparc32"
|
||||
;;
|
||||
|
||||
ubuntu)
|
||||
LIVE_KERNEL_FLAVOUR="sparc64"
|
||||
;;
|
||||
esac
|
||||
;;
|
||||
|
||||
*)
|
||||
|
@ -245,7 +369,15 @@ Set_defaults ()
|
|||
# Set kernel packages
|
||||
if [ -z "${LIVE_KERNEL_PACKAGES}" ]
|
||||
then
|
||||
LIVE_KERNEL_PACKAGES="linux-image-2.6 squashfs-modules-2.6 unionfs-modules-2.6"
|
||||
case "${LH_MODE}" in
|
||||
debian)
|
||||
LIVE_KERNEL_PACKAGES="linux-image-2.6 squashfs-modules-2.6 unionfs-modules-2.6"
|
||||
;;
|
||||
|
||||
ubuntu)
|
||||
LIVE_KERNEL_PACKAGES="linux-image"
|
||||
;;
|
||||
esac
|
||||
|
||||
if [ -n "${LIVE_ENCRYPTION}" ]
|
||||
then
|
||||
|
@ -253,6 +385,9 @@ Set_defaults ()
|
|||
fi
|
||||
fi
|
||||
|
||||
# Setting keyring packages
|
||||
# LIVE_KEYRING_PACKAGES
|
||||
|
||||
# Setting language string
|
||||
# LIVE_LANGUAGE
|
||||
|
||||
|
@ -327,7 +462,15 @@ Set_defaults ()
|
|||
# Setting hostname
|
||||
if [ -z "${LIVE_HOSTNAME}" ]
|
||||
then
|
||||
LIVE_HOSTNAME="debian"
|
||||
case "${LH_MODE}" in
|
||||
debian)
|
||||
LIVE_HOSTNAME="debian"
|
||||
;;
|
||||
|
||||
ubuntu)
|
||||
LIVE_HOSTNAME="ubuntu"
|
||||
;;
|
||||
esac
|
||||
fi
|
||||
|
||||
# Setting image type
|
||||
|
@ -357,7 +500,15 @@ Set_defaults ()
|
|||
# Setting iso volume
|
||||
if [ -z "${LIVE_ISO_VOLUME}" ]
|
||||
then
|
||||
LIVE_ISO_VOLUME="Debian Live \`date +%Y%m%d\`"
|
||||
case "${LH_MODE}" in
|
||||
debian)
|
||||
LIVE_ISO_VOLUME="Debian Live \`date +%Y%m%d\`"
|
||||
;;
|
||||
|
||||
ubuntu)
|
||||
LIVE_ISO_VOLUME="Ubuntu Live \`date +%Y%m%d\`"
|
||||
;;
|
||||
esac
|
||||
fi
|
||||
|
||||
# Setting netboot server address
|
||||
|
@ -369,7 +520,15 @@ Set_defaults ()
|
|||
# Setting netboot server path
|
||||
if [ -z "${LIVE_SERVER_PATH}" ]
|
||||
then
|
||||
LIVE_SERVER_PATH="/srv/debian-live"
|
||||
case "${LH_MODE}" in
|
||||
debian)
|
||||
LIVE_SERVER_PATH="/srv/debian-live"
|
||||
;;
|
||||
|
||||
ubuntu)
|
||||
LIVE_SERVER_PATH="/srv/ubuntu-live"
|
||||
;;
|
||||
esac
|
||||
fi
|
||||
|
||||
# Setting source option
|
||||
|
|
|
@ -11,7 +11,7 @@ set -e
|
|||
|
||||
Echo_debug ()
|
||||
{
|
||||
if [ "${DEBUG}" = "true" ]
|
||||
if [ "${LH_DEBUG}" = "enabled" ]
|
||||
then
|
||||
echo "D: ${@}"
|
||||
fi
|
||||
|
@ -24,7 +24,7 @@ Echo_error ()
|
|||
|
||||
Echo_message ()
|
||||
{
|
||||
if [ "${QUIET}" != "true" ]
|
||||
if [ "${LH_QUIET}" != "enabled" ]
|
||||
then
|
||||
echo "P: ${@}"
|
||||
fi
|
||||
|
@ -32,7 +32,7 @@ Echo_message ()
|
|||
|
||||
Echo_verbose ()
|
||||
{
|
||||
if [ "${VERBOSE}" = "true" ]
|
||||
if [ "${LH_VERBOSE}" = "enabled" ]
|
||||
then
|
||||
echo "I: ${@}"
|
||||
fi
|
||||
|
|
|
@ -33,7 +33,7 @@ Create_lockfile ()
|
|||
fi
|
||||
|
||||
# Creating lock trap
|
||||
trap "test -f ${FILE} && rm -f ${FILE}; exit 0" 0 2 15
|
||||
trap "test -f ${FILE} && rm -f ${FILE}; exit 0" 0 1 2 3 9 15
|
||||
|
||||
# Creating lock file
|
||||
touch "${FILE}"
|
||||
|
|
|
@ -17,7 +17,7 @@ Check_stagefile ()
|
|||
# Checking stage file
|
||||
if [ -f "${FILE}" ]
|
||||
then
|
||||
if [ "${FORCE}" = "true" ]
|
||||
if [ "${LH_FORCE}" = "enabled" ]
|
||||
then
|
||||
# Forcing execution
|
||||
rm -f "${FILE}"
|
||||
|
|
|
@ -23,6 +23,7 @@ USAGE="${PROGRAM} [--force]"
|
|||
Arguments "${@}"
|
||||
|
||||
Echo_debug "Init ${PROGRAM}"
|
||||
Breakpoint "binary: Init"
|
||||
|
||||
# Preparing root filesystem
|
||||
lh_binary_chroot "${@}"
|
||||
|
|
|
@ -22,10 +22,17 @@ USAGE="${PROGRAM} [--force]"
|
|||
|
||||
Arguments "${@}"
|
||||
|
||||
Echo_debug "Init ${PROGRAM}"
|
||||
|
||||
# Reading configuration files
|
||||
Read_conffile config/bootstrap
|
||||
Read_conffile config/chroot
|
||||
Read_conffile config/common
|
||||
Read_conffile config/image
|
||||
Set_defaults
|
||||
|
||||
Breakpoint "binary_chroot: Init"
|
||||
|
||||
# Requiring stage file
|
||||
Require_stagefile .stage/bootstrap
|
||||
|
||||
|
|
|
@ -22,64 +22,73 @@ USAGE="${PROGRAM} [--force]"
|
|||
|
||||
Arguments "${@}"
|
||||
|
||||
Echo_debug "Init ${PROGRAM}"
|
||||
|
||||
# Reading configuration files
|
||||
Read_conffile config/bootstrap
|
||||
Read_conffile config/chroot
|
||||
Read_conffile config/common
|
||||
Read_conffile config/image
|
||||
Set_defaults
|
||||
|
||||
if [ -n "${LIVE_ENCRYPTION}" ]
|
||||
if [ -z "${LIVE_ENCRYPTION}" ]
|
||||
then
|
||||
# Requiring stage file
|
||||
Require_stagefile .stage/bootstrap
|
||||
Require_stagefile .stage/binary_rootfs
|
||||
exit 0
|
||||
fi
|
||||
|
||||
# Checking lock file
|
||||
Check_lockfile .lock
|
||||
Breakpoint "binary_encryption: Init"
|
||||
|
||||
# Creating lock file
|
||||
Create_lockfile .lock
|
||||
# Requiring stage file
|
||||
Require_stagefile .stage/bootstrap
|
||||
Require_stagefile .stage/binary_rootfs
|
||||
|
||||
# Checking stage file
|
||||
Check_stagefile .stage/binary_encryption
|
||||
# Checking lock file
|
||||
Check_lockfile .lock
|
||||
|
||||
case "${LIVE_FILESYSTEM}" in
|
||||
ext2)
|
||||
ROOTFS="ext2"
|
||||
# Creating lock file
|
||||
Create_lockfile .lock
|
||||
|
||||
# Checking stage file
|
||||
Check_stagefile .stage/binary_encryption
|
||||
|
||||
case "${LIVE_FILESYSTEM}" in
|
||||
ext2)
|
||||
ROOTFS="ext2"
|
||||
;;
|
||||
|
||||
plain)
|
||||
echo "W: encryption not supported on plain filesystem."
|
||||
exit 0
|
||||
;;
|
||||
|
||||
squashfs)
|
||||
ROOTFS="squashfs"
|
||||
;;
|
||||
esac
|
||||
|
||||
if [ ! -f chroot/usr/bin/aespipe ]
|
||||
then
|
||||
PACKAGES="${PACKAGES} aespipe"
|
||||
fi
|
||||
|
||||
if [ -n "${PACKAGES}" ]
|
||||
then
|
||||
# Installing packages
|
||||
case "${LH_APT}" in
|
||||
apt|apt-get)
|
||||
Chroot "apt-get install --yes ${PACKAGES}"
|
||||
;;
|
||||
|
||||
plain)
|
||||
echo "W: encryption not supported on plain filesystem."
|
||||
exit 0
|
||||
;;
|
||||
|
||||
squashfs)
|
||||
ROOTFS="squashfs"
|
||||
aptitude)
|
||||
Chroot "aptitude install --assume-yes ${PACKAGES}"
|
||||
;;
|
||||
esac
|
||||
fi
|
||||
|
||||
if [ ! -f chroot/usr/bin/aespipe ]
|
||||
then
|
||||
PACKAGES="${PACKAGES} aespipe"
|
||||
fi
|
||||
# Moving image
|
||||
mv binary/casper/filesystem.${LIVE_FILESYSTEM} chroot
|
||||
|
||||
if [ -n "${PACKAGES}" ]
|
||||
then
|
||||
# Installing packages
|
||||
case "${LH_APT}" in
|
||||
apt|apt-get)
|
||||
Chroot "apt-get install --yes ${PACKAGES}"
|
||||
;;
|
||||
|
||||
aptitude)
|
||||
Chroot "aptitude install --assume-yes ${PACKAGES}"
|
||||
;;
|
||||
esac
|
||||
fi
|
||||
|
||||
# Moving image
|
||||
mv binary/casper/filesystem.${LIVE_FILESYSTEM} chroot
|
||||
|
||||
echo "Encrypting binary/casper/filesystem.${ROOTFS} with ${LIVE_ENCRYPTION}..."
|
||||
echo "Encrypting binary/casper/filesystem.${ROOTFS} with ${LIVE_ENCRYPTION}..."
|
||||
|
||||
cat >> chroot/encrypt << EOF
|
||||
while true
|
||||
|
@ -98,25 +107,24 @@ do
|
|||
done
|
||||
EOF
|
||||
|
||||
Chroot "sh encrypt"
|
||||
Chroot "sh encrypt"
|
||||
|
||||
# Move image
|
||||
mv chroot/filesystem.${LIVE_FILESYSTEM} binary/casper
|
||||
rm -f chroot/encrypt
|
||||
# Move image
|
||||
mv chroot/filesystem.${LIVE_FILESYSTEM} binary/casper
|
||||
rm -f chroot/encrypt
|
||||
|
||||
# Removing packages
|
||||
if [ -n "${PACKAGES}" ]
|
||||
then
|
||||
case "${LH_APT}" in
|
||||
apt|apt-get)
|
||||
Chroot "apt-get remove --purge --yes ${PACKAGES}"
|
||||
;;
|
||||
aptitude)
|
||||
Chroot "aptitude purge --assume-yes ${PACKAGES}"
|
||||
;;
|
||||
esac
|
||||
fi
|
||||
|
||||
# Creating stage file
|
||||
Create_stagefile .stage/binary_encryption
|
||||
# Removing packages
|
||||
if [ -n "${PACKAGES}" ]
|
||||
then
|
||||
case "${LH_APT}" in
|
||||
apt|apt-get)
|
||||
Chroot "apt-get remove --purge --yes ${PACKAGES}"
|
||||
;;
|
||||
aptitude)
|
||||
Chroot "aptitude purge --assume-yes ${PACKAGES}"
|
||||
;;
|
||||
esac
|
||||
fi
|
||||
|
||||
# Creating stage file
|
||||
Create_stagefile .stage/binary_encryption
|
||||
|
|
|
@ -22,13 +22,22 @@ USAGE="${PROGRAM} [--force]"
|
|||
|
||||
Arguments "${@}"
|
||||
|
||||
Echo_debug "Init ${PROGRAM}"
|
||||
|
||||
# Reading configuration files
|
||||
Read_conffile config/common
|
||||
Read_conffile config/bootstrap
|
||||
Read_conffile config/chroot
|
||||
Read_conffile config/common
|
||||
Read_conffile config/image
|
||||
Set_defaults
|
||||
|
||||
if [ "${LIVE_BOOTLOADER}" != "grub" ]
|
||||
then
|
||||
exit 0
|
||||
fi
|
||||
|
||||
Breakpoint "binary_grub: Init"
|
||||
|
||||
# Requiring stage file
|
||||
Require_stagefile .stage/bootstrap
|
||||
|
||||
|
@ -43,153 +52,156 @@ Check_stagefile .stage/binary_grub
|
|||
|
||||
if [ "${LIVE_ARCHITECTURE}" != "amd64" ] && [ "${LIVE_ARCHITECTURE}" != "i386" ]
|
||||
then
|
||||
echo "W: skipping binary_grub, foreign architecture."
|
||||
Echo_warning "skipping binary_grub, foreign architecture."
|
||||
exit 0
|
||||
fi
|
||||
|
||||
if [ "${LIVE_BOOTLOADER}" = "grub" ]
|
||||
# Check templates
|
||||
if [ ! -d "${LIVE_TEMPLATES}" ]
|
||||
then
|
||||
# Check templates
|
||||
if [ ! -d "${LIVE_TEMPLATES}" ]
|
||||
if [ -d ../"${LIVE_TEMPLATES}" ]
|
||||
then
|
||||
if [ -d ../"${LIVE_TEMPLATES}" ]
|
||||
then
|
||||
LIVE_TEMPLATES="../${LIVE_TEMPLATES}"
|
||||
else
|
||||
Echo_error "user specified templates not accessible in ${LIVE_TEMPLATES}"
|
||||
exit 1
|
||||
fi
|
||||
LIVE_TEMPLATES="../${LIVE_TEMPLATES}"
|
||||
else
|
||||
Echo_error "user specified templates not accessible in ${LIVE_TEMPLATES}"
|
||||
exit 1
|
||||
fi
|
||||
fi
|
||||
|
||||
if [ ! -f chroot/usr/sbin/grub ]
|
||||
then
|
||||
PACKAGES="${PACKAGES} grub"
|
||||
fi
|
||||
if [ ! -f chroot/usr/sbin/grub ]
|
||||
then
|
||||
PACKAGES="${PACKAGES} grub"
|
||||
fi
|
||||
|
||||
if [ -n "${PACKAGES}" ]
|
||||
then
|
||||
# Installing symlinks
|
||||
case "${LH_APT}" in
|
||||
apt|apt-get)
|
||||
Chroot "apt-get install --yes ${PACKAGES}"
|
||||
;;
|
||||
if [ -n "${PACKAGES}" ]
|
||||
then
|
||||
# Installing symlinks
|
||||
case "${LH_APT}" in
|
||||
apt|apt-get)
|
||||
Chroot "apt-get install --yes ${PACKAGES}"
|
||||
;;
|
||||
|
||||
aptitude)
|
||||
Chroot "aptitude install --assume-yes ${PACKAGES}"
|
||||
;;
|
||||
esac
|
||||
fi
|
||||
|
||||
# Setting destination directory
|
||||
case "${LIVE_BINARY_IMAGE}" in
|
||||
iso|usb|hdd)
|
||||
DESTDIR="binary/live"
|
||||
;;
|
||||
|
||||
net)
|
||||
Echo_error "not supported, FIXME"
|
||||
aptitude)
|
||||
Chroot "aptitude install --assume-yes ${PACKAGES}"
|
||||
;;
|
||||
esac
|
||||
fi
|
||||
|
||||
# Temporary check for broken syslinux
|
||||
if [ "${LIVE_BINARY_IMAGE}" = "iso" ]
|
||||
then
|
||||
case "${LIVE_ARCHITECTURE}" in
|
||||
i386)
|
||||
DESTDIR="${DESTDIR}.386"
|
||||
;;
|
||||
esac
|
||||
fi
|
||||
# Setting destination directory
|
||||
case "${LIVE_BINARY_IMAGE}" in
|
||||
iso|usb|hdd)
|
||||
DESTDIR="binary/live"
|
||||
;;
|
||||
|
||||
# Creating directory
|
||||
if [ ! -d "${DESTDIR}" ]
|
||||
then
|
||||
mkdir -p "${DESTDIR}"
|
||||
fi
|
||||
net)
|
||||
Echo_error "not supported, FIXME"
|
||||
;;
|
||||
esac
|
||||
|
||||
# Setting boot parameters
|
||||
if [ -n "${LIVE_ENCRYPTION}" ]
|
||||
then
|
||||
LIVE_BOOTAPPEND="${LIVE_BOOTAPPEND} encryption=${LIVE_ENCRYPTION}"
|
||||
fi
|
||||
# Temporary check for broken syslinux
|
||||
if [ "${LIVE_BINARY_IMAGE}" = "iso" ]
|
||||
then
|
||||
case "${LIVE_ARCHITECTURE}" in
|
||||
i386)
|
||||
DESTDIR="${DESTDIR}.386"
|
||||
;;
|
||||
esac
|
||||
fi
|
||||
|
||||
if [ -n "${LIVE_USERNAME}" ]
|
||||
then
|
||||
LIVE_BOOTAPPEND="${LIVE_BOOTAPPEND} username=${LIVE_USERNAME}"
|
||||
fi
|
||||
# Creating directory
|
||||
if [ ! -d "${DESTDIR}" ]
|
||||
then
|
||||
mkdir -p "${DESTDIR}"
|
||||
fi
|
||||
|
||||
if [ -n "${LIVE_HOSTNAME}" ]
|
||||
then
|
||||
LIVE_BOOTAPPEND="${LIVE_BOOTAPPEND} hostname=${LIVE_HOSTNAME}"
|
||||
fi
|
||||
# Setting boot parameters
|
||||
if [ -n "${LIVE_ENCRYPTION}" ]
|
||||
then
|
||||
LIVE_BOOTAPPEND="${LIVE_BOOTAPPEND} encryption=${LIVE_ENCRYPTION}"
|
||||
fi
|
||||
|
||||
LIVE_BOOTAPPEND="`echo ${LIVE_BOOTAPPEND} | sed -e 's/ //'`"
|
||||
if [ -n "${LIVE_USERNAME}" ]
|
||||
then
|
||||
LIVE_BOOTAPPEND="${LIVE_BOOTAPPEND} username=${LIVE_USERNAME}"
|
||||
fi
|
||||
|
||||
# Assembling kernel configuration
|
||||
if [ "${LIVE_BINARY_IMAGE}" = "iso" ]
|
||||
then
|
||||
DEFAULT_FLAVOUR="`echo ${LIVE_KERNEL_FLAVOUR} | awk '{ print $1 }'`"
|
||||
LINUX="title\t\tDebian GNU/Linux - Live\nroot\t\t(cd)\nkernel\t\t/`basename ${DESTDIR}`/`basename chroot/boot/vmlinuz-*${DEFAULT_FLAVOUR}`\ninitrd\t\t/`basename ${DESTDIR}`/initrd.img-`basename chroot/boot/vmlinuz-*${DEFAULT_FLAVOUR} | sed -e 's/vmlinuz-//'` boot=casper LIVE_BOOTAPPEND"
|
||||
else
|
||||
DEFAULT_FLAVOUR="`echo ${LIVE_KERNEL_FLAVOUR} | awk '{ print $1 }'`"
|
||||
LINUX="title\t\tDebian GNU/Linux - Live\nroot\t\t(cd)\nkernel\t\t`basename chroot/boot/vmlinuz-*${DEFAULT_FLAVOUR}`\ninitrd\t\tinitrd.img-`basename chroot/boot/vmlinuz-*${DEFAULT_FLAVOUR} | sed -e 's/vmlinuz-//'` boot=casper LIVE_BOOTAPPEND"
|
||||
fi
|
||||
if [ -n "${LIVE_HOSTNAME}" ]
|
||||
then
|
||||
LIVE_BOOTAPPEND="${LIVE_BOOTAPPEND} hostname=${LIVE_HOSTNAME}"
|
||||
fi
|
||||
|
||||
if [ "`echo ${LIVE_KERNEL_FLAVOUR} | wc -w`" -gt "1" ]
|
||||
then
|
||||
for KERNEL in chroot/boot/vmlinuz*
|
||||
do
|
||||
if [ -z "${LINUX}" ]
|
||||
then
|
||||
if [ "${LIVE_BINARY_IMAGE}" = "iso" ]
|
||||
then
|
||||
LINUX="title\t\tDebian GNU/Linux - Live, kernel `basename ${KERNEL} | sed -e 's/vmlinuz-//'`\nroot\t\t(cd)\nkernel\t\t/`basename ${DESTDIR}`/`basename ${KERNEL}`\ninitrd\t\t/`basename ${DESTDIR}`/initrd.img-`basename ${KERNEL} | sed -e 's/vmlinuz-//'` boot=casper LIVE_BOOTAPPEND"
|
||||
else
|
||||
LINUX="title\t\tDebian GNU/Linux - Live, kernel `basename ${KERNEL} | sed -e 's/vmlinuz-//'`\nroot\t\t(cd)\nkernel\t\t`basename ${KERNEL}`\ninitrd\t\tinitrd.img-`basename ${KERNEL} | sed -e 's/vmlinuz-//'` boot=casper LIVE_BOOTAPPEND"
|
||||
fi
|
||||
else
|
||||
if [ "${LIVE_BINARY_IMAGE}" = "iso" ]
|
||||
then
|
||||
LINUX="${LINUX}\n\ntitle\t\tDebian GNU/Linux - Live, kernel `basename ${KERNEL} | sed -e 's/vmlinuz-//'`\nroot\t\t(cd)\nkernel /`basename ${DESTDIR}`/`basename ${KERNEL}`\ninitrd\t\t/`basename ${DESTDIR}`/initrd.img-`basename ${KERNEL} | sed -e 's/vmlinuz-//'` boot=casper LIVE_BOOTAPPEND"
|
||||
else
|
||||
LINUX="${LINUX}\n\ntitle\t\tDebian GNU/Linux - Live, kernel `basename ${KERNEL} | sed -e 's/vmlinuz-//'`\nroot\t\t(cd)\nkernel `basename ${KERNEL}`\ninitrd\t\tinitrd.img-`basename ${KERNEL} | sed -e 's/vmlinuz-//'` boot=casper LIVE_BOOTAPPEND"
|
||||
fi
|
||||
fi
|
||||
done
|
||||
fi
|
||||
LIVE_BOOTAPPEND="`echo ${LIVE_BOOTAPPEND} | sed -e 's/ //'`"
|
||||
|
||||
LINUX="`echo ${LINUX} | sed -e 's#//#/#g'`"
|
||||
# Assembling kernel configuration
|
||||
if [ "${LIVE_BINARY_IMAGE}" = "iso" ]
|
||||
then
|
||||
DEFAULT_FLAVOUR="`echo ${LIVE_KERNEL_FLAVOUR} | awk '{ print $1 }'`"
|
||||
LINUX="title\t\tDebian GNU/Linux - Live\nkernel\t\t/`basename ${DESTDIR}`/`basename chroot/boot/vmlinuz-*${DEFAULT_FLAVOUR}`\ninitrd\t\t/`basename ${DESTDIR}`/initrd.img-`basename chroot/boot/vmlinuz-*${DEFAULT_FLAVOUR} | sed -e 's/vmlinuz-//'` boot=casper LIVE_BOOTAPPEND"
|
||||
else
|
||||
DEFAULT_FLAVOUR="`echo ${LIVE_KERNEL_FLAVOUR} | awk '{ print $1 }'`"
|
||||
LINUX="title\t\tDebian GNU/Linux - Live\nkernel\t\t`basename chroot/boot/vmlinuz-*${DEFAULT_FLAVOUR}`\ninitrd\t\tinitrd.img-`basename chroot/boot/vmlinuz-*${DEFAULT_FLAVOUR} | sed -e 's/vmlinuz-//'` boot=casper LIVE_BOOTAPPEND"
|
||||
fi
|
||||
|
||||
# Assembling memtest configuration
|
||||
if [ -f "${DESTDIR}"/memtest ]
|
||||
then
|
||||
if [ "${LIVE_BINARY_IMAGE}" = "iso" ]
|
||||
if [ "`echo ${LIVE_KERNEL_FLAVOUR} | wc -w`" -gt "1" ]
|
||||
then
|
||||
for KERNEL in chroot/boot/vmlinuz*
|
||||
do
|
||||
if [ -z "${LINUX}" ]
|
||||
then
|
||||
MEMTEST="title\t\tMemtest86+\nroot\t\t(cd)\nkernel\t\t/`basename ${DESTDIR}`/memtest"
|
||||
MEMTEST="`echo ${MEMTEST} | sed -e 's#//#/#g'`"
|
||||
if [ "${LIVE_BINARY_IMAGE}" = "iso" ]
|
||||
then
|
||||
LINUX="title\t\tDebian GNU/Linux - Live, kernel `basename ${KERNEL} | sed -e 's/vmlinuz-//'`\nkernel\t\t/`basename ${DESTDIR}`/`basename ${KERNEL}`\ninitrd\t\t/`basename ${DESTDIR}`/initrd.img-`basename ${KERNEL} | sed -e 's/vmlinuz-//'` boot=casper LIVE_BOOTAPPEND"
|
||||
else
|
||||
LINUX="title\t\tDebian GNU/Linux - Live, kernel `basename ${KERNEL} | sed -e 's/vmlinuz-//'`\nkernel\t\t`basename ${KERNEL}`\ninitrd\t\tinitrd.img-`basename ${KERNEL} | sed -e 's/vmlinuz-//'` boot=casper LIVE_BOOTAPPEND"
|
||||
fi
|
||||
else
|
||||
MEMTEST="title\t\tMemtest86+\nroot\t\t(cd)\nkernel\t\tmemtest"
|
||||
fi
|
||||
fi
|
||||
if [ "${LIVE_BINARY_IMAGE}" = "iso" ]
|
||||
then
|
||||
LINUX="${LINUX}\n\ntitle\t\tDebian GNU/Linux - Live, kernel `basename ${KERNEL} | sed -e 's/vmlinuz-//'`\nkernel /`basename ${DESTDIR}`/`basename ${KERNEL}`\ninitrd\t\t/`basename ${DESTDIR}`/initrd.img-`basename ${KERNEL} | sed -e 's/vmlinuz-//'` boot=casper LIVE_BOOTAPPEND"
|
||||
else
|
||||
LINUX="${LINUX}\n\ntitle\t\tDebian GNU/Linux - Live, kernel `basename ${KERNEL} | sed -e 's/vmlinuz-//'`\nkernel `basename ${KERNEL}`\ninitrd\t\tinitrd.img-`basename ${KERNEL} | sed -e 's/vmlinuz-//'` boot=casper LIVE_BOOTAPPEND"
|
||||
fi
|
||||
fi
|
||||
done
|
||||
fi
|
||||
|
||||
mkdir -p binary/boot/grub
|
||||
cp -r "${LIVE_TEMPLATES}"/grub/* binary/boot/grub
|
||||
LINUX="`echo ${LINUX} | sed -e 's#//#/#g'`"
|
||||
|
||||
# Assembling memtest configuration
|
||||
if [ -f "${DESTDIR}"/memtest ]
|
||||
then
|
||||
if [ "${LIVE_BINARY_IMAGE}" = "iso" ]
|
||||
then
|
||||
MEMTEST="title\t\tMemtest86+\nkernel\t\t/`basename ${DESTDIR}`/memtest"
|
||||
MEMTEST="`echo ${MEMTEST} | sed -e 's#//#/#g'`"
|
||||
else
|
||||
MEMTEST="title\t\tMemtest86+\nkernel\t\tmemtest"
|
||||
fi
|
||||
fi
|
||||
|
||||
mkdir -p binary/boot/grub
|
||||
cp -r "${LIVE_TEMPLATES}"/grub/* binary/boot/grub
|
||||
|
||||
case ${LIVE_BINARY_IMAGE} in
|
||||
iso)
|
||||
cp chroot/usr/lib/grub/i386-pc/stage2_eltorito binary/boot/grub
|
||||
fi
|
||||
;;
|
||||
|
||||
# Copying splash screen
|
||||
if [ -n "${LIVE_GRUB_SPLASH}" ]
|
||||
then
|
||||
# FIXME
|
||||
cp "${LIVE_GRUB_SPLASH}" binary/boot/grub
|
||||
usb|hdd)
|
||||
cp chroot/usr/lib/grub/i386-pc/stage1 chroot/usr/lib/grub/i386-pc/stage2 binary/boot/grub
|
||||
;;
|
||||
esac
|
||||
|
||||
LIVE_SPLASH="splashimage /boot/grub/`basename ${LIVE_GRUB_SPLASH}`"
|
||||
fi
|
||||
# Copying splash screen
|
||||
if [ -n "${LIVE_GRUB_SPLASH}" ]
|
||||
then
|
||||
# FIXME
|
||||
cp "${LIVE_GRUB_SPLASH}" binary/boot/grub
|
||||
|
||||
# Configure grub templates
|
||||
LIVE_SPLASH="splashimage /boot/grub/`basename ${LIVE_GRUB_SPLASH}`"
|
||||
fi
|
||||
|
||||
# Configure grub templates
|
||||
cat >> binary/boot/grub/menu.lst << EOF
|
||||
# This is a divider, added to separate the menu items below from the Debian
|
||||
# ones.
|
||||
|
@ -200,23 +212,22 @@ root
|
|||
LIVE_MEMTEST
|
||||
EOF
|
||||
|
||||
sed -i -e "s#LIVE_SPLASH#${LIVE_SPLASH}#" -e "s#LIVE_KERNEL_LIVE#${LINUX}#" -e "s#LIVE_KERNEL_INSTALL#${LIVE_KERNEL_INSTALL}#" -e "s#LIVE_MEMTEST#${MEMTEST}#" binary/boot/grub/menu.lst
|
||||
sed -i -e "s#LIVE_BOOTAPPEND#${LIVE_BOOTAPPEND}#" binary/boot/grub/menu.lst
|
||||
sed -i -e "s#LIVE_SPLASH#${LIVE_SPLASH}#" -e "s#LIVE_KERNEL_LIVE#${LINUX}#" -e "s#LIVE_KERNEL_INSTALL#${LIVE_KERNEL_INSTALL}#" -e "s#LIVE_MEMTEST#${MEMTEST}#" binary/boot/grub/menu.lst
|
||||
sed -i -e "s#LIVE_BOOTAPPEND#${LIVE_BOOTAPPEND}#" binary/boot/grub/menu.lst
|
||||
|
||||
if [ -n "${PACKAGES}" ]
|
||||
then
|
||||
# Removing packages
|
||||
case "${LH_APT}" in
|
||||
apt|apt-get)
|
||||
Chroot "apt-get remove --purge --yes ${PACKAGES}"
|
||||
;;
|
||||
if [ -n "${PACKAGES}" ]
|
||||
then
|
||||
# Removing packages
|
||||
case "${LH_APT}" in
|
||||
apt|apt-get)
|
||||
Chroot "apt-get remove --purge --yes ${PACKAGES}"
|
||||
;;
|
||||
|
||||
aptitude)
|
||||
Chroot "aptitude purge --assume-yes ${PACKAGES}"
|
||||
;;
|
||||
esac
|
||||
fi
|
||||
|
||||
# Creating stage file
|
||||
Create_stagefile .stage/binary_grub
|
||||
aptitude)
|
||||
Chroot "aptitude purge --assume-yes ${PACKAGES}"
|
||||
;;
|
||||
esac
|
||||
fi
|
||||
|
||||
# Creating stage file
|
||||
Create_stagefile .stage/binary_grub
|
||||
|
|
|
@ -22,16 +22,22 @@ USAGE="${PROGRAM} [--force]"
|
|||
|
||||
Arguments "${@}"
|
||||
|
||||
Echo_debug "Init ${PROGRAM}"
|
||||
|
||||
# Reading configuration files
|
||||
Read_conffile config/common
|
||||
Read_conffile config/bootstrap
|
||||
Read_conffile config/chroot
|
||||
Read_conffile config/common
|
||||
Read_conffile config/image
|
||||
Set_defaults
|
||||
|
||||
|
||||
for IMAGE in ${LIVE_BINARY_IMAGE}
|
||||
do
|
||||
if [ "${IMAGE}" = "hdd" ]
|
||||
then
|
||||
Breakpoint "binary_hdd: Init"
|
||||
|
||||
# Requiring stage file
|
||||
Require_stagefile .stage/bootstrap
|
||||
|
||||
|
|
|
@ -22,12 +22,22 @@ USAGE="${PROGRAM} [--force]"
|
|||
|
||||
Arguments "${@}"
|
||||
|
||||
Echo_debug "Init ${PROGRAM}"
|
||||
|
||||
# Reading configuration files
|
||||
Read_conffile config/common
|
||||
Read_conffile config/bootstrap
|
||||
Read_conffile config/chroot
|
||||
Read_conffile config/common
|
||||
Read_conffile config/image
|
||||
Set_defaults
|
||||
|
||||
if [ "${LIVE_INCLUDES}" = "none" ]
|
||||
then
|
||||
exit 0
|
||||
fi
|
||||
|
||||
Breakpoint "binary_includes: Init"
|
||||
|
||||
# Requiring stage file
|
||||
Require_stagefile .stage/bootstrap
|
||||
|
||||
|
|
|
@ -22,9 +22,12 @@ USAGE="${PROGRAM} [--force]"
|
|||
|
||||
Arguments "${@}"
|
||||
|
||||
Echo_debug "Init ${PROGRAM}"
|
||||
|
||||
# Reading configuration files
|
||||
Read_conffile config/common
|
||||
Read_conffile config/bootstrap
|
||||
Read_conffile config/chroot
|
||||
Read_conffile config/common
|
||||
Read_conffile config/image
|
||||
Set_defaults
|
||||
|
||||
|
@ -32,6 +35,8 @@ for IMAGE in ${LIVE_BINARY_IMAGE}
|
|||
do
|
||||
if [ "${IMAGE}" = "iso" ]
|
||||
then
|
||||
Breakpoint "binary_iso: Init"
|
||||
|
||||
# Requiring stage file
|
||||
Require_stagefile .stage/bootstrap
|
||||
|
||||
|
|
|
@ -22,13 +22,17 @@ USAGE="${PROGRAM} [--force]"
|
|||
|
||||
Arguments "${@}"
|
||||
|
||||
Echo_debug "Init ${PROGRAM}"
|
||||
|
||||
# Reading configuration files
|
||||
Read_conffile config/common
|
||||
Read_conffile config/bootstrap
|
||||
Read_conffile config/chroot
|
||||
Read_conffile config/common
|
||||
Read_conffile config/image
|
||||
Set_defaults
|
||||
|
||||
Breakpoint "binary_linuximage: Init"
|
||||
|
||||
# Requiring stage file
|
||||
Require_stagefile .stage/bootstrap
|
||||
|
||||
|
|
|
@ -22,11 +22,17 @@ USAGE="${PROGRAM} [--force]"
|
|||
|
||||
Arguments "${@}"
|
||||
|
||||
Echo_debug "Init ${PROGRAM}"
|
||||
|
||||
# Reading configuration files
|
||||
Read_conffile config/common
|
||||
Read_conffile config/bootstrap
|
||||
Read_conffile config/chroot
|
||||
Read_conffile config/common
|
||||
Read_conffile config/image
|
||||
Set_defaults
|
||||
|
||||
Breakpoint "binary_localincludes: Init"
|
||||
|
||||
# Requiring stage file
|
||||
Require_stagefile .stage/bootstrap
|
||||
|
||||
|
|
|
@ -22,11 +22,17 @@ USAGE="${PROGRAM} [--force]"
|
|||
|
||||
Arguments "${@}"
|
||||
|
||||
Echo_debug "Init ${PROGRAM}"
|
||||
|
||||
# Reading configuration files
|
||||
Read_conffile config/bootstrap
|
||||
Read_conffile config/chroot
|
||||
Read_conffile config/common
|
||||
Read_conffile config/image
|
||||
Set_defaults
|
||||
|
||||
Breakpoint "binary_manifest: Init"
|
||||
|
||||
# Requiring stage file
|
||||
Require_stagefile .stage/bootstrap
|
||||
|
||||
|
|
|
@ -22,11 +22,17 @@ USAGE="${PROGRAM} [--force]"
|
|||
|
||||
Arguments "${@}"
|
||||
|
||||
Echo_debug "Init ${PROGRAM}"
|
||||
|
||||
# Reading configuration files
|
||||
Read_conffile config/bootstrap
|
||||
Read_conffile config/chroot
|
||||
Read_conffile config/common
|
||||
Read_conffile config/image
|
||||
Set_defaults
|
||||
|
||||
Breakpoint "binary_md5sum: Init"
|
||||
|
||||
# Requiring stage file
|
||||
Require_stagefile .stage/bootstrap
|
||||
|
||||
|
|
|
@ -22,13 +22,17 @@ USAGE="${PROGRAM} [--force]"
|
|||
|
||||
Arguments "${@}"
|
||||
|
||||
Echo_debug "Init ${PROGRAM}"
|
||||
|
||||
# Reading configuration files
|
||||
Read_conffile config/common
|
||||
Read_conffile config/bootstrap
|
||||
Read_conffile config/chroot
|
||||
Read_conffile config/common
|
||||
Read_conffile config/image
|
||||
Set_defaults
|
||||
|
||||
Breakpoint "binary_memtest86: Init"
|
||||
|
||||
# Requiring stage file
|
||||
Require_stagefile .stage/bootstrap
|
||||
|
||||
|
|
|
@ -22,12 +22,17 @@ USAGE="${PROGRAM} [--force]"
|
|||
|
||||
Arguments "${@}"
|
||||
|
||||
Echo_debug "Init ${PROGRAM}"
|
||||
|
||||
# Reading configuration files
|
||||
Read_conffile config/common
|
||||
Read_conffile config/bootstrap
|
||||
Read_conffile config/chroot
|
||||
Read_conffile config/common
|
||||
Read_conffile config/image
|
||||
Set_defaults
|
||||
|
||||
Breakpoint "binary_net: Init"
|
||||
|
||||
for IMAGE in ${LIVE_BINARY_IMAGE}
|
||||
do
|
||||
if [ "${IMAGE}" = "net" ]
|
||||
|
@ -51,6 +56,11 @@ do
|
|||
fi
|
||||
|
||||
# Creating image file
|
||||
if [ "`basename ${LIVE_SERVER_PATH}`" = "chroot" ]
|
||||
then
|
||||
mv chroot chroot.tmp
|
||||
fi
|
||||
|
||||
mv binary "`basename ${LIVE_SERVER_PATH}`"
|
||||
|
||||
cd ..
|
||||
|
@ -60,6 +70,11 @@ do
|
|||
|
||||
mv "`basename ${LIVE_SERVER_PATH}`" binary
|
||||
|
||||
if [ "`basename ${LIVE_SERVER_PATH}`" = "chroot" ]
|
||||
then
|
||||
mv chroot.tmp chroot
|
||||
fi
|
||||
|
||||
# Creating stage file
|
||||
Create_stagefile .stage/binary_net
|
||||
fi
|
||||
|
|
|
@ -22,11 +22,17 @@ USAGE="${PROGRAM} [--force]"
|
|||
|
||||
Arguments "${@}"
|
||||
|
||||
Echo_debug "Init ${PROGRAM}"
|
||||
|
||||
# Reading configuration files
|
||||
Read_conffile config/bootstrap
|
||||
Read_conffile config/chroot
|
||||
Read_conffile config/common
|
||||
Read_conffile config/image
|
||||
Set_defaults
|
||||
|
||||
Breakpoint "binary_rootfs: Init"
|
||||
|
||||
# Requiring stage file
|
||||
Require_stagefile .stage/bootstrap
|
||||
Require_stagefile .stage/binary_chroot
|
||||
|
|
|
@ -22,13 +22,17 @@ USAGE="${PROGRAM} [--force]"
|
|||
|
||||
Arguments "${@}"
|
||||
|
||||
Echo_debug "Init ${PROGRAM}"
|
||||
|
||||
# Reading configuration files
|
||||
Read_conffile config/common
|
||||
Read_conffile config/bootstrap
|
||||
Read_conffile config/chroot
|
||||
Read_conffile config/common
|
||||
Read_conffile config/image
|
||||
Set_defaults
|
||||
|
||||
Breakpoint "binary_syslinux: Init"
|
||||
|
||||
# Requiring stage file
|
||||
Require_stagefile .stage/bootstrap
|
||||
|
||||
|
|
|
@ -22,12 +22,17 @@ USAGE="${PROGRAM} [--force]"
|
|||
|
||||
Arguments "${@}"
|
||||
|
||||
Echo_debug "Init ${PROGRAM}"
|
||||
|
||||
# Reading configuration files
|
||||
Read_conffile config/common
|
||||
Read_conffile config/bootstrap
|
||||
Read_conffile config/chroot
|
||||
Read_conffile config/common
|
||||
Read_conffile config/image
|
||||
Set_defaults
|
||||
|
||||
Breakpoint "binary_usb: Init"
|
||||
|
||||
for IMAGE in ${LIVE_BINARY_IMAGE}
|
||||
do
|
||||
if [ "${IMAGE}" = "usb" ]
|
||||
|
|
|
@ -22,11 +22,18 @@ USAGE="${PROGRAM} [--force]"
|
|||
|
||||
Arguments "${@}"
|
||||
|
||||
Echo_debug "Init ${PROGRAM}"
|
||||
|
||||
# Starting helper
|
||||
Echo_debug "Init ${PROGRAM}"
|
||||
|
||||
Breakpoint "bootstrap: Init"
|
||||
|
||||
# Reading configuration files
|
||||
Read_conffile config/bootstrap
|
||||
Read_conffile config/chroot
|
||||
Read_conffile config/common
|
||||
Read_conffile config/image
|
||||
Set_defaults
|
||||
|
||||
# Bootstrapping system
|
||||
|
|
|
@ -25,14 +25,17 @@ Arguments "${@}"
|
|||
# Ensure that a system is built as root
|
||||
lh_testroot
|
||||
|
||||
# Starting helper
|
||||
Echo_debug "Init ${PROGRAM}"
|
||||
|
||||
# Reading configuration files
|
||||
Read_conffile config/common
|
||||
Read_conffile config/bootstrap
|
||||
Read_conffile config/chroot
|
||||
Read_conffile config/common
|
||||
Read_conffile config/image
|
||||
Set_defaults
|
||||
|
||||
Breakpoint "bootstrap_cdeboostrap: Init"
|
||||
|
||||
if [ "${LH_BOOTSTRAP}" != "cdebootstrap" ]
|
||||
then
|
||||
exit 0
|
||||
|
@ -59,9 +62,9 @@ then
|
|||
CDEBOOTSTRAP_OPTIONS="${CDEBOOTSTRAP_OPTIONS} --arch=${LIVE_ARCHITECTURE}"
|
||||
fi
|
||||
|
||||
if [ -n "${LIVE_DISTRIBUTION_CONFIG}" ]
|
||||
if [ -n "${LIVE_BOOTSTRAP_CONFIG}" ]
|
||||
then
|
||||
CDEBOOTSTRAP_OPTIONS="${CDEBOOTSTRAP_OPTIONS} --suite-config=${LIVE_DISTRIBUTION_CONFIG}"
|
||||
CDEBOOTSTRAP_OPTIONS="${CDEBOOTSTRAP_OPTIONS} --suite-config=${LIVE_BOOTSTRAP_CONFIG}"
|
||||
fi
|
||||
|
||||
if [ "${LIVE_PACKAGES_LISTS}" != "minimal" ] && [ "${LIVE_PACKAGES_LISTS}" != "mini" ]
|
||||
|
@ -71,17 +74,17 @@ else
|
|||
CDEBOOTSTRAP_OPTIONS="${CDEBOOTSTRAP_OPTIONS} --flavour=minimal"
|
||||
fi
|
||||
|
||||
if [ "${DEBUG}" = "true" ]
|
||||
if [ "${LH_DEBUG}" = "true" ]
|
||||
then
|
||||
CDEBOOTSTRAP_OPTIONS="${CDEBOOTSTRAP_OPTIONS} --debug"
|
||||
fi
|
||||
|
||||
if [ "${QUIET}" = "true" ]
|
||||
if [ "${LH_QUIET}" = "true" ]
|
||||
then
|
||||
CDEBOOTSTRAP_OPTIONS="${CDEBOOTSTRAP_OPTIONS} --quiet"
|
||||
fi
|
||||
|
||||
if [ "${VERBOSE}" = "true" ]
|
||||
if [ "${LH_VERBOSE}" = "true" ]
|
||||
then
|
||||
CDEBOOTSTRAP_OPTIONS="${CDEBOOTSTRAP_OPTIONS} --verbose"
|
||||
fi
|
||||
|
|
|
@ -25,14 +25,17 @@ Arguments "${@}"
|
|||
# Ensure that a system is built as root
|
||||
lh_testroot
|
||||
|
||||
# Starting helper
|
||||
Echo_debug "Init ${PROGRAM}"
|
||||
|
||||
# Reading configuration files
|
||||
Read_conffile config/common
|
||||
Read_conffile config/bootstrap
|
||||
Read_conffile config/chroot
|
||||
Read_conffile config/common
|
||||
Read_conffile config/image
|
||||
Set_defaults
|
||||
|
||||
Breakpoint "bootstrap_debootstrap: Init"
|
||||
|
||||
if [ "${LH_BOOTSTRAP}" != "debootstrap" ]
|
||||
then
|
||||
exit 0
|
||||
|
@ -64,7 +67,7 @@ then
|
|||
LIVE_DEBOOTSTRAP_SCRIPT="/usr/lib/debootstrap/scripts/${LIVE_BOOTSTRAP_CONFIG}"
|
||||
fi
|
||||
|
||||
if [ "${VERBOSE}" = "true" ]
|
||||
if [ "${LH_VERBOSE}" = "true" ]
|
||||
then
|
||||
DEBOOTSTRAP_OPTIONS="${DEBOOTSTRAP_OPTIONS} --verbose"
|
||||
fi
|
||||
|
|
|
@ -22,6 +22,9 @@ USAGE="${PROGRAM} [--force]"
|
|||
|
||||
Arguments "${@}"
|
||||
|
||||
Echo_debug "Init ${PROGRAM}"
|
||||
Breakpoint "build: Init"
|
||||
|
||||
# Bootstrapping system
|
||||
lh_bootstrap "${@}"
|
||||
|
||||
|
|
|
@ -22,11 +22,17 @@ USAGE="${PROGRAM} [--force]"
|
|||
|
||||
Arguments "${@}"
|
||||
|
||||
Echo_debug "Init ${PROGRAM}"
|
||||
|
||||
# Reading configuration files
|
||||
Read_conffile config/common
|
||||
Read_conffile config/bootstrap
|
||||
Read_conffile config/chroot
|
||||
Read_conffile config/common
|
||||
Read_conffile config/image
|
||||
Set_defaults
|
||||
|
||||
Breakpoint "chroot: Init"
|
||||
|
||||
# Configuring chroot
|
||||
lh_chroot_proc install "${@}"
|
||||
lh_chroot_sysfs install "${@}"
|
||||
|
|
|
@ -22,11 +22,17 @@ USAGE="${PROGRAM} {install|remove} [--force]"
|
|||
|
||||
Arguments "${@}"
|
||||
|
||||
Echo_debug "Init ${PROGRAM}"
|
||||
|
||||
# Reading configuration files
|
||||
Read_conffile config/common
|
||||
Read_conffile config/bootstrap
|
||||
Read_conffile config/chroot
|
||||
Read_conffile config/common
|
||||
Read_conffile config/image
|
||||
Set_defaults
|
||||
|
||||
Breakpoint "chroot_apt: Init"
|
||||
|
||||
# Requiring stage file
|
||||
Require_stagefile .stage/bootstrap
|
||||
|
||||
|
|
|
@ -22,11 +22,17 @@ USAGE="${PROGRAM} {install|remove} [--force]"
|
|||
|
||||
Arguments "${@}"
|
||||
|
||||
Echo_debug "Init ${PROGRAM}"
|
||||
|
||||
# Reading configuration files
|
||||
Read_conffile config/common
|
||||
Read_conffile config/bootstrap
|
||||
Read_conffile config/chroot
|
||||
Read_conffile config/common
|
||||
Read_conffile config/image
|
||||
Set_defaults
|
||||
|
||||
Breakpoint "chroot_debianchroot: Init"
|
||||
|
||||
# Requiring stage file
|
||||
Require_stagefile .stage/bootstrap
|
||||
|
||||
|
|
|
@ -22,11 +22,17 @@ USAGE="${PROGRAM} [--force]"
|
|||
|
||||
Arguments "${@}"
|
||||
|
||||
Echo_debug "Init ${PROGRAM}"
|
||||
|
||||
# Reading configuration files
|
||||
Read_conffile config/common
|
||||
Read_conffile config/bootstrap
|
||||
Read_conffile config/chroot
|
||||
Read_conffile config/common
|
||||
Read_conffile config/image
|
||||
Set_defaults
|
||||
|
||||
Breakpoint "chroot_hacks: Init"
|
||||
|
||||
# Requiring stage file
|
||||
Require_stagefile .stage/bootstrap
|
||||
|
||||
|
|
|
@ -22,11 +22,17 @@ USAGE="${PROGRAM} [--force]"
|
|||
|
||||
Arguments "${@}"
|
||||
|
||||
Echo_debug "Init ${PROGRAM}"
|
||||
|
||||
# Reading configuration files
|
||||
Read_conffile config/common
|
||||
Read_conffile config/bootstrap
|
||||
Read_conffile config/chroot
|
||||
Read_conffile config/common
|
||||
Read_conffile config/image
|
||||
Set_defaults
|
||||
|
||||
Breakpoint "chroot_hooks: Init"
|
||||
|
||||
# Requiring stage file
|
||||
Require_stagefile .stage/bootstrap
|
||||
|
||||
|
|
|
@ -22,11 +22,17 @@ USAGE="${PROGRAM} {install|remove} [--force]"
|
|||
|
||||
Arguments "${@}"
|
||||
|
||||
Echo_debug "Init ${PROGRAM}"
|
||||
|
||||
# Reading configuration files
|
||||
Read_conffile config/common
|
||||
Read_conffile config/bootstrap
|
||||
Read_conffile config/chroot
|
||||
Read_conffile config/common
|
||||
Read_conffile config/image
|
||||
Set_defaults
|
||||
|
||||
Breakpoint "chroot_hosts: Init"
|
||||
|
||||
# Requiring stage file
|
||||
Require_stagefile .stage/bootstrap
|
||||
|
||||
|
|
|
@ -22,11 +22,17 @@ USAGE="${PROGRAM} [--force]"
|
|||
|
||||
Arguments "${@}"
|
||||
|
||||
Echo_debug "Init ${PROGRAM}"
|
||||
|
||||
# Reading configuration files
|
||||
Read_conffile config/common
|
||||
Read_conffile config/bootstrap
|
||||
Read_conffile config/chroot
|
||||
Read_conffile config/common
|
||||
Read_conffile config/image
|
||||
Set_defaults
|
||||
|
||||
Breakpoint "chroot_interactive: Init"
|
||||
|
||||
if [ "${LIVE_INTERACTIVE}" != "disabled" ]
|
||||
then
|
||||
# Requiring stage file
|
||||
|
|
|
@ -22,11 +22,17 @@ USAGE="${PROGRAM} {install|remove} [--force]"
|
|||
|
||||
Arguments "${@}"
|
||||
|
||||
Echo_debug "Init ${PROGRAM}"
|
||||
|
||||
# Reading configuration files
|
||||
Read_conffile config/common
|
||||
Read_conffile config/bootstrap
|
||||
Read_conffile config/chroot
|
||||
Read_conffile config/common
|
||||
Read_conffile config/image
|
||||
Set_defaults
|
||||
|
||||
Breakpoint "chroot_linuximage: Init"
|
||||
|
||||
# Requiring stage file
|
||||
Require_stagefile .stage/bootstrap
|
||||
|
||||
|
|
|
@ -22,11 +22,17 @@ USAGE="${PROGRAM} [--force]"
|
|||
|
||||
Arguments "${@}"
|
||||
|
||||
Echo_debug "Init ${PROGRAM}"
|
||||
|
||||
# Reading configuration files
|
||||
Read_conffile config/common
|
||||
Read_conffile config/bootstrap
|
||||
Read_conffile config/chroot
|
||||
Read_conffile config/common
|
||||
Read_conffile config/image
|
||||
Set_defaults
|
||||
|
||||
Breakpoint "chroot_localhooks: Init"
|
||||
|
||||
# Requiring stage file
|
||||
Require_stagefile .stage/bootstrap
|
||||
|
||||
|
|
|
@ -22,11 +22,17 @@ USAGE="${PROGRAM} [--force]"
|
|||
|
||||
Arguments "${@}"
|
||||
|
||||
Echo_debug "Init ${PROGRAM}"
|
||||
|
||||
# Reading configuration files
|
||||
Read_conffile config/common
|
||||
Read_conffile config/bootstrap
|
||||
Read_conffile config/chroot
|
||||
Read_conffile config/common
|
||||
Read_conffile config/image
|
||||
Set_defaults
|
||||
|
||||
Breakpoint "chroot_localincludes: Init"
|
||||
|
||||
# Requiring stage file
|
||||
Require_stagefile .stage/bootstrap
|
||||
|
||||
|
|
|
@ -22,11 +22,17 @@ USAGE="${PROGRAM} [--force]"
|
|||
|
||||
Arguments "${@}"
|
||||
|
||||
Echo_debug "Init ${PROGRAM}"
|
||||
|
||||
# Reading configuration files
|
||||
Read_conffile config/common
|
||||
Read_conffile config/bootstrap
|
||||
Read_conffile config/chroot
|
||||
Read_conffile config/common
|
||||
Read_conffile config/image
|
||||
Set_defaults
|
||||
|
||||
Breakpoint "chroot_localization: Init"
|
||||
|
||||
# Requiring stage file
|
||||
Require_stagefile .stage/bootstrap
|
||||
|
||||
|
|
|
@ -22,11 +22,17 @@ USAGE="${PROGRAM} [--force]"
|
|||
|
||||
Arguments "${@}"
|
||||
|
||||
Echo_debug "Init ${PROGRAM}"
|
||||
|
||||
# Reading configuration files
|
||||
Read_conffile config/common
|
||||
Read_conffile config/bootstrap
|
||||
Read_conffile config/chroot
|
||||
Read_conffile config/common
|
||||
Read_conffile config/image
|
||||
Set_defaults
|
||||
|
||||
Breakpoint "chroot_localpackages: Init"
|
||||
|
||||
# Requiring stage file
|
||||
Require_stagefile .stage/bootstrap
|
||||
|
||||
|
|
|
@ -22,11 +22,17 @@ USAGE="${PROGRAM} [--force]"
|
|||
|
||||
Arguments "${@}"
|
||||
|
||||
Echo_debug "Init ${PROGRAM}"
|
||||
|
||||
# Reading configuration files
|
||||
Read_conffile config/common
|
||||
Read_conffile config/bootstrap
|
||||
Read_conffile config/chroot
|
||||
Read_conffile config/common
|
||||
Read_conffile config/image
|
||||
Set_defaults
|
||||
|
||||
Breakpoint "chroot_localpackageslists: Init"
|
||||
|
||||
# Requiring stage file
|
||||
Require_stagefile .stage/bootstrap
|
||||
|
||||
|
|
|
@ -22,12 +22,17 @@ USAGE="${PROGRAM} [--force]"
|
|||
|
||||
Arguments "${@}"
|
||||
|
||||
Echo_debug "Init ${PROGRAM}"
|
||||
|
||||
# Reading configuration files
|
||||
Read_conffile config/common
|
||||
Read_conffile config/bootstrap
|
||||
Read_conffile config/chroot
|
||||
Read_conffile config/common
|
||||
Read_conffile config/image
|
||||
Set_defaults
|
||||
|
||||
Breakpoint "chroot_packages: Init"
|
||||
|
||||
# Requiring stage file
|
||||
Require_stagefile .stage/bootstrap
|
||||
|
||||
|
|
|
@ -22,11 +22,17 @@ USAGE="${PROGRAM} [--force]"
|
|||
|
||||
Arguments "${@}"
|
||||
|
||||
Echo_debug "Init ${PROGRAM}"
|
||||
|
||||
# Reading configuration files
|
||||
Read_conffile config/common
|
||||
Read_conffile config/bootstrap
|
||||
Read_conffile config/chroot
|
||||
Read_conffile config/common
|
||||
Read_conffile config/image
|
||||
Set_defaults
|
||||
|
||||
Breakpoint "chroot_packageslists: Init"
|
||||
|
||||
# Requiring stage file
|
||||
Require_stagefile .stage/bootstrap
|
||||
|
||||
|
|
|
@ -22,11 +22,20 @@ USAGE="${PROGRAM} {install|remove} [--force]"
|
|||
|
||||
Arguments "${@}"
|
||||
|
||||
# Ensure that a system is built as root
|
||||
lh_testroot
|
||||
|
||||
Echo_debug "Init ${PROGRAM}"
|
||||
|
||||
# Reading configuration files
|
||||
Read_conffile config/common
|
||||
Read_conffile config/bootstrap
|
||||
Read_conffile config/chroot
|
||||
Read_conffile config/common
|
||||
Read_conffile config/image
|
||||
Set_defaults
|
||||
|
||||
Breakpoint "chroot_proc: Init"
|
||||
|
||||
# Requiring stage file
|
||||
Require_stagefile .stage/bootstrap
|
||||
|
||||
|
|
|
@ -22,11 +22,17 @@ USAGE="${PROGRAM} {install|remove} [--force]"
|
|||
|
||||
Arguments "${@}"
|
||||
|
||||
Echo_debug "Init ${PROGRAM}"
|
||||
|
||||
# Reading configuration files
|
||||
Read_conffile config/common
|
||||
Read_conffile config/bootstrap
|
||||
Read_conffile config/chroot
|
||||
Read_conffile config/common
|
||||
Read_conffile config/image
|
||||
Set_defaults
|
||||
|
||||
Breakpoint "chroot_resolv: Init"
|
||||
|
||||
# Requiring stage file
|
||||
Require_stagefile .stage/bootstrap
|
||||
|
||||
|
|
|
@ -22,13 +22,17 @@ USAGE="${PROGRAM} {install|remove} [--force]"
|
|||
|
||||
Arguments "${@}"
|
||||
|
||||
Echo_debug "Init ${PROGRAM}"
|
||||
|
||||
# Reading configuration files
|
||||
Read_conffile config/common
|
||||
Read_conffile config/bootstrap
|
||||
Read_conffile config/chroot
|
||||
Read_conffile config/bootstrap #FIXME
|
||||
Read_conffile config/common
|
||||
Read_conffile config/image
|
||||
Set_defaults
|
||||
|
||||
Breakpoint "chroot_sources: Init"
|
||||
|
||||
# Requiring stage file
|
||||
Require_stagefile .stage/bootstrap
|
||||
|
||||
|
@ -65,11 +69,37 @@ case "${1}" in
|
|||
fi
|
||||
|
||||
# Check local sources.list
|
||||
if [ -f config/sources.list.build ]
|
||||
if ls config/chroot_sources/*.build &> /dev/null
|
||||
then
|
||||
echo "" >> chroot/etc/apt/sources.list
|
||||
echo "# Custom repositories" >> chroot/etc/apt/sources.list
|
||||
cat config/sources.list.build >> chroot/etc/apt/sources.list
|
||||
|
||||
for FILE in config/chroot_sources/*.build
|
||||
do
|
||||
cat ${FILE} >> chroot/etc/apt/sources.list
|
||||
done
|
||||
fi
|
||||
|
||||
# Check local gpg keys
|
||||
if ls config/chroot_sources/*.build.gpg &> /dev/null
|
||||
then
|
||||
for FILE in config/chroot_sources/*.build.gpg
|
||||
do
|
||||
cp ${FILE} chroot/root
|
||||
Chroot "apt-key add /root/`basename ${FILE}`"
|
||||
rm -f chroot/root/`basename ${FILE}`
|
||||
done
|
||||
fi
|
||||
|
||||
# Check local keyring packages
|
||||
if ls config/chroot_sources/*.deb &> /dev/null
|
||||
then
|
||||
for PACKAGE in config/chroot_sources/*.deb
|
||||
do
|
||||
cp ${PACKAGE} chroot/root
|
||||
Chroot "dpkg -i `basename ${PACKAGE}`"
|
||||
rm -f chroot/root/`basename ${PACKAGE}`
|
||||
done
|
||||
fi
|
||||
|
||||
# Installing aptitude
|
||||
|
@ -87,6 +117,13 @@ case "${1}" in
|
|||
Chroot "aptitude update"
|
||||
fi
|
||||
|
||||
# Installing keyring packages
|
||||
if [ -n "${LIVE_KEYRING_PACKAGES}" ]
|
||||
then
|
||||
Chroot "apt-get install --yes --force-yes ${LIVE_KEYRING_PACKAGES}"
|
||||
Chroot "apt-get update"
|
||||
fi
|
||||
|
||||
# Creating stage file
|
||||
Create_stagefile .stage/chroot_sources
|
||||
;;
|
||||
|
@ -95,6 +132,13 @@ case "${1}" in
|
|||
# Configure generic indices
|
||||
if [ "${LH_APT_GENERIC}" = "enabled" ]
|
||||
then
|
||||
# Don't do anything if it's not required
|
||||
if [ "${LIVE_MIRROR_BUILD}" = "${LIVE_MIRROR_IMAGE}" ] && \
|
||||
[ "${LIVE_MIRROR_BUILD_SECURITY}" = "${LIVE_MIRROR_IMAGE_SECURITY}" ]
|
||||
then
|
||||
exit 0
|
||||
fi
|
||||
|
||||
# Cleaning apt list cache
|
||||
rm -rf chroot/var/lib/apt/lists
|
||||
mkdir -p chroot/var/lib/apt/lists/partial
|
||||
|
@ -120,11 +164,26 @@ case "${1}" in
|
|||
fi
|
||||
|
||||
# Check local sources.list
|
||||
if [ -f config/sources.list.image ]
|
||||
if ls config/chroot_sources/*.image &> /dev/null
|
||||
then
|
||||
echo "" >> chroot/etc/apt/sources.list
|
||||
echo "# Custom repositories" >> chroot/etc/apt/sources.list
|
||||
cat config/sources.list.image >> chroot/etc/apt/sources.list
|
||||
|
||||
for FILE in config/chroot_sources/*.image
|
||||
do
|
||||
cat ${FILE} >> chroot/etc/apt/sources.list
|
||||
done
|
||||
fi
|
||||
|
||||
# Check local gpg keys
|
||||
if ls config/chroot_sources/*.image.gpg &> /dev/null
|
||||
then
|
||||
for FILE in config/chroot_sources/*.image.gpg
|
||||
do
|
||||
cp ${FILE} chroot/root
|
||||
Chroot "apt-key add /root/`basename ${FILE}`"
|
||||
rm -f chroot/root/`basename ${FILE}`
|
||||
done
|
||||
fi
|
||||
|
||||
case "${LH_APT}" in
|
||||
|
|
|
@ -22,11 +22,17 @@ USAGE="${PROGRAM} [--force]"
|
|||
|
||||
Arguments "${@}"
|
||||
|
||||
Echo_debug "Init ${PROGRAM}"
|
||||
|
||||
# Reading configuration files
|
||||
Read_conffile config/common
|
||||
Read_conffile config/bootstrap
|
||||
Read_conffile config/chroot
|
||||
Read_conffile config/common
|
||||
Read_conffile config/image
|
||||
Set_defaults
|
||||
|
||||
Breakpoint "chroot_symlinks: Init"
|
||||
|
||||
# Requiring stage file
|
||||
Require_stagefile .stage/bootstrap
|
||||
|
||||
|
|
|
@ -22,11 +22,20 @@ USAGE="${PROGRAM} {install|remove} [--force]"
|
|||
|
||||
Arguments "${@}"
|
||||
|
||||
# Ensure that a system is built as root
|
||||
lh_testroot
|
||||
|
||||
Echo_debug "Init ${PROGRAM}"
|
||||
|
||||
# Reading configuration files
|
||||
Read_conffile config/common
|
||||
Read_conffile config/bootstrap
|
||||
Read_conffile config/chroot
|
||||
Read_conffile config/common
|
||||
Read_conffile config/image
|
||||
Set_defaults
|
||||
|
||||
Breakpoint "chroot_sysfs: Init"
|
||||
|
||||
# Requiring stage file
|
||||
Require_stagefile .stage/bootstrap
|
||||
|
||||
|
|
|
@ -22,11 +22,17 @@ USAGE="${PROGRAM} [--force]"
|
|||
|
||||
Arguments "${@}"
|
||||
|
||||
Echo_debug "Init ${PROGRAM}"
|
||||
|
||||
# Reading configuration files
|
||||
Read_conffile config/common
|
||||
Read_conffile config/bootstrap
|
||||
Read_conffile config/chroot
|
||||
Read_conffile config/common
|
||||
Read_conffile config/image
|
||||
Set_defaults
|
||||
|
||||
Breakpoint "chroot_sysvinit: Init"
|
||||
|
||||
# Requiring stage file
|
||||
Require_stagefile .stage/bootstrap
|
||||
|
||||
|
|
|
@ -22,11 +22,17 @@ USAGE="${PROGRAM} {install|remove} [--force]"
|
|||
|
||||
Arguments "${@}"
|
||||
|
||||
Echo_debug "Init ${PROGRAM}"
|
||||
|
||||
# Reading configuration files
|
||||
Read_conffile config/common
|
||||
Read_conffile config/bootstrap
|
||||
Read_conffile config/chroot
|
||||
Read_conffile config/common
|
||||
Read_conffile config/image
|
||||
Set_defaults
|
||||
|
||||
Breakpoint "chroot_sysvrc: Init"
|
||||
|
||||
# Requiring stage file
|
||||
Require_stagefile .stage/bootstrap
|
||||
|
||||
|
|
|
@ -22,11 +22,17 @@ USAGE="${PROGRAM} [--force]"
|
|||
|
||||
Arguments "${@}"
|
||||
|
||||
Echo_debug "Init ${PROGRAM}"
|
||||
|
||||
# Reading configuration files
|
||||
Read_conffile config/common
|
||||
Read_conffile config/bootstrap
|
||||
Read_conffile config/chroot
|
||||
Read_conffile config/common
|
||||
Read_conffile config/image
|
||||
Set_defaults
|
||||
|
||||
Breakpoint "chroot_tasks: Init"
|
||||
|
||||
# Requiring stage file
|
||||
Require_stagefile .stage/bootstrap
|
||||
|
||||
|
|
|
@ -22,8 +22,13 @@ USAGE="${PROGRAM} [all|cache|chroot|binary|lock|purge|stage|source]"
|
|||
|
||||
Arguments "${@}"
|
||||
|
||||
Echo_debug "Init ${PROGRAM}"
|
||||
|
||||
# Reading configuration files
|
||||
Read_conffile config/bootstrap
|
||||
Read_conffile config/chroot
|
||||
Read_conffile config/common
|
||||
Read_conffile config/image
|
||||
Set_defaults
|
||||
|
||||
case "${1}" in
|
||||
|
|
|
@ -22,6 +22,8 @@ USAGE="${PROGRAM} [--force]"
|
|||
|
||||
Arguments "${@}"
|
||||
|
||||
Echo_debug "Init ${PROGRAM}"
|
||||
|
||||
if [ "${1}" != "newconfig" ]
|
||||
then
|
||||
# Source existing configuration
|
||||
|
@ -34,6 +36,8 @@ fi
|
|||
# Setting defaults
|
||||
Set_defaults
|
||||
|
||||
Breakpoint "config: Init"
|
||||
|
||||
# Creating configuration directory
|
||||
install -d -m 0755 "${LIVE_ROOT}"/config || true
|
||||
|
||||
|
@ -41,6 +45,10 @@ install -d -m 0755 "${LIVE_ROOT}"/config || true
|
|||
cat > "${LIVE_ROOT}"/config/common << EOF
|
||||
# config/common: configuration for live-helper(7)
|
||||
|
||||
# \$LH_MODE: set distribution mode
|
||||
# (Default: ${LH_MODE})
|
||||
LH_MODE="${LH_MODE}"
|
||||
|
||||
# \$LH_APT: set package manager
|
||||
# (Default: ${LH_APT})
|
||||
LH_APT="${LH_APT}"
|
||||
|
@ -96,6 +104,28 @@ LH_LOSETUP="${LH_LOSETUP}"
|
|||
# \$LIVE_ROOT: set the root directory
|
||||
# (Default: ${LIVE_ROOT})
|
||||
LIVE_ROOT="${LIVE_ROOT}"
|
||||
|
||||
# Live-helper options
|
||||
|
||||
# \$LH_BREAKPOINTS: enable breakpoints
|
||||
# (Default: ${LH_BREAKPOINTS})
|
||||
LH_BREAKPOINTS="${LH_BREAKPOINTS}"
|
||||
|
||||
# \$LH_DEBUG: enable debug
|
||||
# (Default: ${LH_DEBUG})
|
||||
LH_DEBUG="${LH_DEBUG}"
|
||||
|
||||
# \$LH_FORCE: enable force
|
||||
# (Default: ${LH_FORCE})
|
||||
LH_FORCE="${LH_FORCE}"
|
||||
|
||||
# \$LH_QUIET: enable quiet
|
||||
# (Default: ${LH_QUIET})
|
||||
LH_QUIET="${LH_QUIET}"
|
||||
|
||||
# \$LH_VERBOSE: enable verbose
|
||||
# (Default: ${LH_VERBOSE})
|
||||
LH_VERBOSE="${LH_VERBOSE}"
|
||||
EOF
|
||||
|
||||
# Creating lh_chroot_* configuration
|
||||
|
@ -110,6 +140,10 @@ LIVE_KERNEL_FLAVOUR="${LIVE_KERNEL_FLAVOUR}"
|
|||
# (Default: autodetected)
|
||||
LIVE_KERNEL_PACKAGES="${LIVE_KERNEL_PACKAGES}"
|
||||
|
||||
# \$LIVE_KEYRING_PACKAGES: set the keyring packages
|
||||
# (Default: empty)
|
||||
LIVE_KEYRING_PACKAGES="${LIVE_KEYRING_PACKAGES}"
|
||||
|
||||
# \$LIVE_LANGUAGE: set the language to use
|
||||
# (Default: empty)
|
||||
LIVE_LANGUAGE="${LIVE_LANGUAGE}"
|
||||
|
@ -148,6 +182,7 @@ install -d -m 0755 "${LIVE_ROOT}"/config/chroot_localhooks || true
|
|||
install -d -m 0755 "${LIVE_ROOT}"/config/chroot_localincludes || true
|
||||
install -d -m 0755 "${LIVE_ROOT}"/config/chroot_localpackages || true
|
||||
install -d -m 0755 "${LIVE_ROOT}"/config/chroot_localpackageslists || true
|
||||
install -d -m 0755 "${LIVE_ROOT}"/config/chroot_sources || true
|
||||
|
||||
# Creating lh_bootstrap_* configuration
|
||||
cat > "${LIVE_ROOT}"/config/bootstrap << EOF
|
||||
|
|
|
@ -22,10 +22,17 @@ USAGE="${PROGRAM} <device> <file> <partition>"
|
|||
|
||||
Arguments "${@}"
|
||||
|
||||
Echo_debug "Init ${PROGRAM}"
|
||||
|
||||
# Reading configuration files
|
||||
Read_conffile config/bootstrap
|
||||
Read_conffile config/chroot
|
||||
Read_conffile config/common
|
||||
Read_conffile config/image
|
||||
Set_defaults
|
||||
|
||||
Breakpoint "losetup: Init"
|
||||
|
||||
if [ -z "${1}" ]
|
||||
then
|
||||
DEVICE="`${LH_LOSETUP} -f`"
|
||||
|
|
|
@ -22,11 +22,17 @@ USAGE="${PROGRAM} [--force]"
|
|||
|
||||
Arguments "${@}"
|
||||
|
||||
Echo_debug "Init ${PROGRAM}"
|
||||
|
||||
# Reading configuration files
|
||||
Read_conffile config/bootstrap
|
||||
Read_conffile config/chroot
|
||||
Read_conffile config/common
|
||||
Read_conffile config/image
|
||||
Set_defaults
|
||||
|
||||
Breakpoint "source: Init"
|
||||
|
||||
# Enabling network in chroot
|
||||
lh_chroot_hosts install "${@}"
|
||||
lh_chroot_resolv install "${@}"
|
||||
|
|
|
@ -22,11 +22,17 @@ USAGE="${PROGRAM} [--force]"
|
|||
|
||||
Arguments "${@}"
|
||||
|
||||
Echo_debug "Init ${PROGRAM}"
|
||||
|
||||
# Reading configuration files
|
||||
Read_conffile config/bootstrap
|
||||
Read_conffile config/chroot
|
||||
Read_conffile config/common
|
||||
Read_conffile config/image
|
||||
Set_defaults
|
||||
|
||||
Breakpoint "source_config: Init"
|
||||
|
||||
if [ "${LIVE_SOURCE}" = "enabled" ]
|
||||
then
|
||||
# Requiring stage file
|
||||
|
|
|
@ -22,11 +22,17 @@ USAGE="${PROGRAM} [--force]"
|
|||
|
||||
Arguments "${@}"
|
||||
|
||||
Echo_debug "Init ${PROGRAM}"
|
||||
|
||||
# Reading configuration files
|
||||
Read_conffile config/bootstrap
|
||||
Read_conffile config/chroot
|
||||
Read_conffile config/common
|
||||
Read_conffile config/image
|
||||
Set_defaults
|
||||
|
||||
Breakpoint "source_download: Init"
|
||||
|
||||
if [ "${LIVE_SOURCE}" = "enabled" ]
|
||||
then
|
||||
# Requiring stage file
|
||||
|
|
|
@ -22,11 +22,17 @@ USAGE="${PROGRAM} [--force]"
|
|||
|
||||
Arguments "${@}"
|
||||
|
||||
Echo_debug "Init ${PROGRAM}"
|
||||
|
||||
# Reading configuration files
|
||||
Read_conffile config/bootstrap
|
||||
Read_conffile config/chroot
|
||||
Read_conffile config/common
|
||||
Read_conffile config/image
|
||||
Set_defaults
|
||||
|
||||
Breakpoint "source_generic: Init"
|
||||
|
||||
if [ "${LIVE_SOURCE}" = "disabled" ]
|
||||
then
|
||||
exit 0
|
||||
|
|
|
@ -22,11 +22,17 @@ USAGE="${PROGRAM} [--force]"
|
|||
|
||||
Arguments "${@}"
|
||||
|
||||
Echo_debug "Init ${PROGRAM}"
|
||||
|
||||
# Reading configuration files
|
||||
Read_conffile config/bootstrap
|
||||
Read_conffile config/chroot
|
||||
Read_conffile config/common
|
||||
Read_conffile config/image
|
||||
Set_defaults
|
||||
|
||||
Breakpoint "source_hdd: Init"
|
||||
|
||||
if [ "${LIVE_SOURCE}" = "disabled" ]
|
||||
then
|
||||
exit 0
|
||||
|
|
|
@ -22,11 +22,17 @@ USAGE="${PROGRAM} [--force]"
|
|||
|
||||
Arguments "${@}"
|
||||
|
||||
Echo_debug "Init ${PROGRAM}"
|
||||
|
||||
# Reading configuration files
|
||||
Read_conffile config/bootstrap
|
||||
Read_conffile config/chroot
|
||||
Read_conffile config/common
|
||||
Read_conffile config/image
|
||||
Set_defaults
|
||||
|
||||
Breakpoint "source_iso: Init"
|
||||
|
||||
if [ "${LIVE_SOURCE}" = "disabled" ]
|
||||
then
|
||||
exit 0
|
||||
|
|
|
@ -22,11 +22,17 @@ USAGE="${PROGRAM} [--force]"
|
|||
|
||||
Arguments "${@}"
|
||||
|
||||
Echo_debug "Init ${PROGRAM}"
|
||||
|
||||
# Reading configuration files
|
||||
Read_conffile config/bootstrap
|
||||
Read_conffile config/chroot
|
||||
Read_conffile config/common
|
||||
Read_conffile config/image
|
||||
Set_defaults
|
||||
|
||||
Breakpoint "source_md5sum: Init"
|
||||
|
||||
if [ "${LIVE_SOURCE}" = "enabled" ]
|
||||
then
|
||||
# Requiring stage file
|
||||
|
|
|
@ -22,11 +22,17 @@ USAGE="${PROGRAM} [--force]"
|
|||
|
||||
Arguments "${@}"
|
||||
|
||||
Echo_debug "Init ${PROGRAM}"
|
||||
|
||||
# Reading configuration files
|
||||
Read_conffile config/bootstrap
|
||||
Read_conffile config/chroot
|
||||
Read_conffile config/common
|
||||
Read_conffile config/image
|
||||
Set_defaults
|
||||
|
||||
Breakpoint "source_net: Init"
|
||||
|
||||
if [ "${LIVE_SOURCE}" = "disabled" ]
|
||||
then
|
||||
exit 0
|
||||
|
|
|
@ -22,12 +22,17 @@ USAGE="${PROGRAM} [--force]"
|
|||
|
||||
Arguments "${@}"
|
||||
|
||||
Echo_debug "Init ${PROGRAM}"
|
||||
|
||||
# Reading configuration files
|
||||
Read_conffile config/common
|
||||
Read_conffile config/bootstrap
|
||||
Read_conffile config/chroot
|
||||
Read_conffile config/common
|
||||
Read_conffile config/image
|
||||
Set_defaults
|
||||
|
||||
Breakpoint "source_usb: Init"
|
||||
|
||||
if [ "${LIVE_SOURCE}" = "disabled" ]
|
||||
then
|
||||
exit 0
|
||||
|
|
|
@ -22,7 +22,7 @@ USAGE="${PROGRAM} [--force]"
|
|||
|
||||
Arguments "${@}"
|
||||
|
||||
set -e
|
||||
Echo_debug "Init ${PROGRAM}"
|
||||
|
||||
# Checking user account
|
||||
if [ "`id -u`" -ne "0" ]
|
||||
|
|
|
@ -31,13 +31,13 @@ done
|
|||
# Set static variables
|
||||
PROGRAM="`basename ${0}`"
|
||||
DESCRIPTION="utility to build Debian Live systems"
|
||||
USAGE="${PROGRAM} [config] [--apt apt|aptitude] [--apt-ftpproxy URL] [--apt-httpproxy URL] [--apt-generic 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] [--genisoimage genisoimage|mkisofs] [--losetup losetup|losetup.org] [-r|--root DIRECTORY] [-a|--architecture ARCHITECTURE] [-d|--distribution testing|unstable|etch|sid] [--distribution-config DIRECTORY] [-f|--bootstrap-flavour minimal|standard] [-m|--mirror-build URL] [--mirror-build-security URL] [--mirror-image URL] [--mirror-image-security URL] [--sections SECTION|\"SECTIONS\"] [--interactive shell|x11|xnest] [-k|--kernel-flavour FLAVOUR] [--kernel-packages PACKAGES] [-l|--language LANGUAGE] [--packages PACKAGE|\"PACKAGES\"] [-p|--packages-lists LIST|\"LISTS\"] [--tasks TASK|\"TASKS\"] [--security enabled|disabled] [--symlinks enabled|disabled] [--sysvinit enabled|disabled] [--bootappend KERNEL_PARAMETER|\"KERNEL_PARAMETERS\"] [-e|--encryption ALGORITHM] [--username NAME] [--hostname NAME] [--filesystem ext2|plain|squashfs] [--memtest86 enabled|disabled] [--iso-volume STRING] [--server-address HOSTNAME|IP] [--server-path DIRECTORY] [--source enabled|disabled] [--bootloader grub|syslinux] [--grub-splash FILE] [--syslinux-splash FILE] [-b|--binary-image hdd|iso|usb|net] [-s|--source-image generic|hdd|iso|usb|net] [--includes PATH] [--templates PATH] [--debug] [--force] [--quiet] [--verbose]"
|
||||
USAGE="${PROGRAM} [config] [--mode MODE] [--apt apt|aptitude] [--apt-ftpproxy URL] [--apt-httpproxy URL] [--apt-generic 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] [--genisoimage genisoimage|mkisofs] [--losetup losetup|losetup.org] [-r|--root DIRECTORY] [-a|--architecture ARCHITECTURE] [-d|--distribution testing|unstable|etch|sid] [--distribution-config DIRECTORY] [-f|--bootstrap-flavour minimal|standard] [-m|--mirror-build URL] [--mirror-build-security URL] [--mirror-image URL] [--mirror-image-security URL] [--sections SECTION|\"SECTIONS\"] [--interactive shell|x11|xnest] [-k|--kernel-flavour FLAVOUR] [--kernel-packages PACKAGE|\"PACKAGES\"] [--keyring-packages PACKAGE|\"PACKAGES\"] [-l|--language LANGUAGE] [--packages PACKAGE|\"PACKAGES\"] [-p|--packages-lists LIST|\"LISTS\"] [--tasks TASK|\"TASKS\"] [--security enabled|disabled] [--symlinks enabled|disabled] [--sysvinit enabled|disabled] [--bootappend KERNEL_PARAMETER|\"KERNEL_PARAMETERS\"] [-e|--encryption ALGORITHM] [--username NAME] [--hostname NAME] [--filesystem ext2|plain|squashfs] [--memtest86 enabled|disabled] [--iso-volume STRING] [--server-address HOSTNAME|IP] [--server-path DIRECTORY] [--source enabled|disabled] [--bootloader grub|syslinux] [--grub-splash FILE] [--syslinux-splash FILE] [-b|--binary-image hdd|iso|usb|net] [-s|--source-image generic|hdd|iso|usb|net] [--includes PATH] [--templates PATH] [--breakpoints] [--debug] [--force] [--quiet] [--verbose]"
|
||||
|
||||
HELP="Lists: gnome, gnome-core, gnome-desktop, gnome-full, gnome-junior, gnustep, kde, kde-core, kde-desktop, kde-extra, kde-full, kde-junior, mini, minimal, minimal-net, rescue, standard, standard-x11, xfce, xfce-desktop, xfce-junior"
|
||||
|
||||
Local_arguments ()
|
||||
{
|
||||
ARGUMENTS="`getopt --longoptions apt:,apt-ftpproxy:,apt-httpproxy:,apt-generic:,apt-pdiffs:,apt-recommends:,apt-secure:,bootstrap:,cache:,debconf-frontend:,debconf-priority:,genisoimage:,losetup:,root:,architecture:,distribution:,distribution-config:,flavour:,mirror-local:,mirror-local-security:,mirror-generic:,mirror-generic-security:,sections:,interactive:,kernel:,kernel-packages:,language:,packages:,packages-lists:,tasks:,security:,symlinks:,sysvinit:,bootappend:,encryption:,username:,hostname:,filesystem:,memtest86:,iso-volume:,server-address:,server-path:,source:,bootloader:,grub-splash:,syslinux-splash:,binary-image:,binary-source:,includes:,templates:,help,usage,version,force,debug,quiet,verbose --name=${PROGRAM} --options r:a:d:f:m:k:l:p:e:b:s:huv --shell sh -- "${@}"`"
|
||||
ARGUMENTS="`getopt --longoptions mode:,apt:,apt-ftpproxy:,apt-httpproxy:,apt-generic:,apt-pdiffs:,apt-recommends:,apt-secure:,bootstrap:,cache:,debconf-frontend:,debconf-priority:,genisoimage:,losetup:,root:,architecture:,distribution:,distribution-config:,flavour:,mirror-local:,mirror-local-security:,mirror-generic:,mirror-generic-security:,sections:,interactive:,kernel:,kernel-packages:,keyring-packages:,language:,packages:,packages-lists:,tasks:,security:,symlinks:,sysvinit:,bootappend:,encryption:,username:,hostname:,filesystem:,memtest86:,iso-volume:,server-address:,server-path:,source:,bootloader:,grub-splash:,syslinux-splash:,binary-image:,binary-source:,includes:,templates:,help,usage,version,force,breakpoints,debug,quiet,verbose --name=${PROGRAM} --options r:a:d:f:m:k:l:p:e:b:s:huv --shell sh -- "${@}"`"
|
||||
|
||||
if [ "${?}" != "0" ]
|
||||
then
|
||||
|
@ -56,6 +56,10 @@ Local_arguments ()
|
|||
do
|
||||
case "${1}" in
|
||||
# common
|
||||
--mode)
|
||||
LH_MODE="${2}"; shift 2
|
||||
;;
|
||||
|
||||
--apt)
|
||||
LH_APT="${2}"; shift 2
|
||||
;;
|
||||
|
@ -163,6 +167,10 @@ Local_arguments ()
|
|||
LIVE_KERNEL_PACKAGES="${2}"; shift 2
|
||||
;;
|
||||
|
||||
--keyring-packages)
|
||||
LIVE_KEYRING_PACKAGS="${2}"; shift 2
|
||||
;;
|
||||
|
||||
-l|--language)
|
||||
LIVE_LANGUAGE="${2}"; shift 2
|
||||
;;
|
||||
|
@ -273,20 +281,24 @@ Local_arguments ()
|
|||
Version; shift
|
||||
;;
|
||||
|
||||
--breakpoints)
|
||||
LH_BREAKPOINTS="enabled"; shift
|
||||
;;
|
||||
|
||||
--debug)
|
||||
DEBUG="true"; shift
|
||||
LH_DEBUG="enabled"; shift
|
||||
;;
|
||||
|
||||
--force)
|
||||
FORCE="true"; shift
|
||||
LH_FORCE="enabled"; shift
|
||||
;;
|
||||
|
||||
--quiet)
|
||||
QUIET="true"; shift
|
||||
LH_QUIET="enabled"; shift
|
||||
;;
|
||||
|
||||
--verbose)
|
||||
VERBOSE="true"; shift
|
||||
LH_VERBOSE="enabled"; shift
|
||||
;;
|
||||
|
||||
--)
|
||||
|
@ -321,24 +333,29 @@ Main ()
|
|||
Local_arguments "${@}"
|
||||
|
||||
# Configuring (this is really shit!)
|
||||
LH_APT="${LH_APT}" LH_APT_FTPPROXY="${LH_APT_FTPPROXY}" LH_APT_HTTPPROXY="${LH_APT_HTTPPROXY}" LH_APT_GENERIC="${LH_APT_GENERIC}" LH_APT_PDIFFS="${LH_APT_PDIFFS}" LH_APT_RECOMMENDS="${LH_APT_RECOMMENDS}" LH_APT_SECURE="${LH_APT_SECURE}" LH_BOOTSTRAP="${LH_BOOTSTRAP}" LH_CACHE="${LH_CACHE}" LH_DEBCONF_FRONTEND="${LH_DEBCONF_FRONTEND}" LH_DEBCONF_PRIORITY="${LH_DEBCONF_PRIORITY}" LH_GENISOIMAGE="${LH_GENISOIMAGE}" LIVE_ROOT="${LIVE_ROOT}" LIVE_ARCHITECTURE="${LIVE_ARCHITECTURE}" LIVE_DISTRIBUTION="${LIVE_DISTRIBUTION}" LIVE_DISTRIBUTION_CONFIG="${LIVE_DISTRIBUTION_CONFIG}" LIVE_BOOTSTRAP_FLAVOUR="${LIVE_BOOTSTRAP_FLAVOUR}" LIVE_MIRROR_BUILD="${LIVE_MIRROR_BUILD}" LIVE_MIRROR_BUILD_SECURITY="${LIVE_MIRROR_BUILD_SECURITY}" LIVE_MIRROR_IMAGE="${LIVE_MIRROR_IMAGE}" LIVE_MIRROR_IMAGE_SECURITY="${LIVE_MIRROR_IMAGE_SECURITY}" LIVE_SECTIONS="${LIVE_SECTIONS}" LIVE_INTERACTIVE="${LIVE_INTERACTIVE}" LIVE_KERNEL_FLAVOUR="${LIVE_KERNEL_FLAVOUR}" LIVE_KERNEL_PACKAGES="${LIVE_KERNEL_PACKAGES}" LIVE_LANGUAGE="${LIVE_LANGUAGE}" LIVE_PACKAGES="${LIVE_PACKAGES}" LIVE_PACKAGES_LISTS="${LIVE_PACKAGES_LISTS}" LIVE_TASKS="${LIVE_TASKS}" LIVE_SECURITY="${LIVE_SECURITY}" LIVE_SYMLINKS="${LIVE_SYMLINKS}" LIVE_SYSVINIT="${LIVE_SYSVINIT}" LIVE_BOOTAPPEND="${LIVE_BOOTAPPEND}" LIVE_ENCRYPTION="${LIVE_ENCRYPTION}" LIVE_USERNAME="${LIVE_USERNAME}" LIVE_HOSTNAME="${LIVE_HOSTNAME}" LIVE_FILESYSTEM="${LIVE_FILESYSTEM}" LIVE_MEMTEST86="${LIVE_MEMTEST86}" LIVE_ISO_VOLUME="${LIVE_ISO_VOLUME}" LIVE_SERVER_ADDRESS="${LIVE_SERVER_ADDRESS}" LIVE_SERVER_PATH="${LIVE_SERVER_PATH}" LIVE_SOURCE="${LIVE_SOURCE}" LIVE_BOOTLOADER="${LIVE_BOOTLOADER}" LIVE_GRUB_SPLASH="${LIVE_GRUB_SPLASH}" LIVE_SYSLINUX_SPLASH="${LIVE_SYSLINUX_SPLASH}" LIVE_BINARY_IMAGE="${LIVE_BINARY_IMAGE}" LIVE_SOURCE_IMAGE="${LIVE_SOURCE_IMAGE}" LIVE_INCLUDES="${LIVE_INCLUDES}" LIVE_TEMPLATES="${LIVE_TEMPLATES}" lh_config newconfig
|
||||
LH_MODE="${LH_MODE}" LH_APT="${LH_APT}" LH_APT_FTPPROXY="${LH_APT_FTPPROXY}" LH_APT_HTTPPROXY="${LH_APT_HTTPPROXY}" LH_APT_GENERIC="${LH_APT_GENERIC}" LH_APT_PDIFFS="${LH_APT_PDIFFS}" LH_APT_RECOMMENDS="${LH_APT_RECOMMENDS}" LH_APT_SECURE="${LH_APT_SECURE}" LH_BOOTSTRAP="${LH_BOOTSTRAP}" LH_CACHE="${LH_CACHE}" LH_DEBCONF_FRONTEND="${LH_DEBCONF_FRONTEND}" LH_DEBCONF_PRIORITY="${LH_DEBCONF_PRIORITY}" LH_GENISOIMAGE="${LH_GENISOIMAGE}" LIVE_ROOT="${LIVE_ROOT}" LIVE_ARCHITECTURE="${LIVE_ARCHITECTURE}" LIVE_DISTRIBUTION="${LIVE_DISTRIBUTION}" LIVE_DISTRIBUTION_CONFIG="${LIVE_DISTRIBUTION_CONFIG}" LIVE_BOOTSTRAP_FLAVOUR="${LIVE_BOOTSTRAP_FLAVOUR}" LIVE_MIRROR_BUILD="${LIVE_MIRROR_BUILD}" LIVE_MIRROR_BUILD_SECURITY="${LIVE_MIRROR_BUILD_SECURITY}" LIVE_MIRROR_IMAGE="${LIVE_MIRROR_IMAGE}" LIVE_MIRROR_IMAGE_SECURITY="${LIVE_MIRROR_IMAGE_SECURITY}" LIVE_SECTIONS="${LIVE_SECTIONS}" LIVE_INTERACTIVE="${LIVE_INTERACTIVE}" LIVE_KERNEL_FLAVOUR="${LIVE_KERNEL_FLAVOUR}" LIVE_KERNEL_PACKAGES="${LIVE_KERNEL_PACKAGES}" LIVE_KEYRING_PACKAGES="${LIVE_KEYRING_PACKAGES}" LIVE_LANGUAGE="${LIVE_LANGUAGE}" LIVE_PACKAGES="${LIVE_PACKAGES}" LIVE_PACKAGES_LISTS="${LIVE_PACKAGES_LISTS}" LIVE_TASKS="${LIVE_TASKS}" LIVE_SECURITY="${LIVE_SECURITY}" LIVE_SYMLINKS="${LIVE_SYMLINKS}" LIVE_SYSVINIT="${LIVE_SYSVINIT}" LIVE_BOOTAPPEND="${LIVE_BOOTAPPEND}" LIVE_ENCRYPTION="${LIVE_ENCRYPTION}" LIVE_USERNAME="${LIVE_USERNAME}" LIVE_HOSTNAME="${LIVE_HOSTNAME}" LIVE_FILESYSTEM="${LIVE_FILESYSTEM}" LIVE_MEMTEST86="${LIVE_MEMTEST86}" LIVE_ISO_VOLUME="${LIVE_ISO_VOLUME}" LIVE_SERVER_ADDRESS="${LIVE_SERVER_ADDRESS}" LIVE_SERVER_PATH="${LIVE_SERVER_PATH}" LIVE_SOURCE="${LIVE_SOURCE}" LIVE_BOOTLOADER="${LIVE_BOOTLOADER}" LIVE_GRUB_SPLASH="${LIVE_GRUB_SPLASH}" LIVE_SYSLINUX_SPLASH="${LIVE_SYSLINUX_SPLASH}" LIVE_BINARY_IMAGE="${LIVE_BINARY_IMAGE}" LIVE_SOURCE_IMAGE="${LIVE_SOURCE_IMAGE}" LIVE_INCLUDES="${LIVE_INCLUDES}" LIVE_TEMPLATES="${LIVE_TEMPLATES}" lh_config newconfig
|
||||
|
||||
if [ "${DEBUG}" = "true" ]
|
||||
if [ "${LH_BREAKPOINTS}" = "enabled" ]
|
||||
then
|
||||
OPTIONS="${OPTIONS} --breakpoints"
|
||||
fi
|
||||
|
||||
if [ "${LH_DEBUG}" = "enabled" ]
|
||||
then
|
||||
OPTIONS="${OPTIONS} --debug"
|
||||
fi
|
||||
|
||||
if [ "${FORCE}" = "true" ]
|
||||
if [ "${LH_FORCE}" = "enabled" ]
|
||||
then
|
||||
OPTIONS="${OPTIONS} --force"
|
||||
fi
|
||||
|
||||
if [ "${QUIET}" = "true" ]
|
||||
if [ "${LH_QUIET}" = "enabled" ]
|
||||
then
|
||||
OPTIONS="${OPTIONS} --quiet"
|
||||
fi
|
||||
|
||||
if [ "${VERBOSE}" = "true" ]
|
||||
if [ "${LH_VERBOSE}" = "enabled" ]
|
||||
then
|
||||
OPTIONS="${OPTIONS} --verbose"
|
||||
fi
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
.TH LH_BINARY 1 "2007\-04\-02" "1.0~a4" "live\-helper"
|
||||
.TH LH_BINARY 1 "2007\-04\-09" "1.0~a5" "live\-helper"
|
||||
|
||||
.SH NAME
|
||||
lh_binary \- meta-helper for lh_binary_*
|
||||
|
@ -9,9 +9,6 @@ lh_binary \- meta-helper for lh_binary_*
|
|||
.SH DESCRIPTION
|
||||
lh_binary is a meta-helper. It calls all necessary helpers to complete the binary stage.
|
||||
|
||||
.SH OPTIONS
|
||||
lh_binary has no options (FIXME).
|
||||
|
||||
.SH BINARY HELPERS
|
||||
Here is the complete list of available binary helper commands. See their man pages for additional documentation.
|
||||
.IP "\fIlh_binary_chroot\fR(1)" 4
|
||||
|
@ -20,10 +17,10 @@ copies chroot into chroot.
|
|||
encrypts the root filesystem.
|
||||
.IP "\fIlh_binary_grub\fR(1)" 4
|
||||
copies grub into the binary image.
|
||||
.IP "\fIlh_binary_includes\fR(1)" 4
|
||||
copies files into the binary image.
|
||||
.IP "\fIlh_binary_hdd\fR(1)" 4
|
||||
creates the harddisk binary tarball.
|
||||
.IP "\fIlh_binary_includes\fR(1)" 4
|
||||
copies files into the binary image.
|
||||
.IP "\fIlh_binary_iso\fR(1)" 4
|
||||
creates the CD/DVD binary image.
|
||||
.IP "\fIlh_binary_linuximage\fR(1)" 4
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
.TH LH_BOOTSTRAP 1 "2007\-04\-02" "1.0~a4" "live\-helper"
|
||||
.TH LH_BOOTSTRAP 1 "2007\-04\-09" "1.0~a5" "live\-helper"
|
||||
|
||||
.SH NAME
|
||||
lh_bootstrap \- meta-helper for lh_bootstrap_*
|
||||
|
@ -9,17 +9,6 @@ lh_bootstrap \- meta-helper for lh_bootstrap_*
|
|||
.SH DESCRIPTION
|
||||
lh_bootstrap is a meta-helper. It calls all necessary helpers to complete the bootstrap stage.
|
||||
|
||||
.SH CONFIGURATION FILE
|
||||
lh_bootstrap reads config/common if available. See ENVIRONMENT for the correct environment variables to use.
|
||||
|
||||
.SH ENVIRONMENT
|
||||
lh_bootstrap respects the following environment variables if available, otherwise uses default values for it.
|
||||
.IP "\fI$LH_BOOTSTRAP\fR" 4
|
||||
select the bootstrap program (Default: cdebootstrap)
|
||||
|
||||
.SH OPTIONS
|
||||
lh_bootstrap has no options (FIXME).
|
||||
|
||||
.SH BOOTSTRAP HELPERS
|
||||
Here is the complete list of available bootstrap helper commands. See their man pages for additional documentation.
|
||||
.IP "\fIlh_bootstrap_cdebootstrap\fR(1)" 4
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
.TH LH_BOOTSTRAP_CDEBOOTSTRAP 1 "2007\-04\-02" "1.0~a4" "live\-helper"
|
||||
.TH LH_BOOTSTRAP_CDEBOOTSTRAP 1 "2007\-04\-09" "1.0~a5" "live\-helper"
|
||||
|
||||
.SH NAME
|
||||
lh_bootstrap_cdebootstrap \- bootstrap a Debian system with \fIcdebootstrap\fR(1)
|
||||
|
@ -14,23 +14,21 @@ lh_bootstrap_cdebootstrap reads config/common and config/bootstrap if available.
|
|||
|
||||
.SH ENVIRONMENT
|
||||
lh_bootstrap_cdebootstrap respects the following environment variables if available, otherwise uses default values for it.
|
||||
.IP "\fI$LH_BOOTSTRAP\fR" 4
|
||||
control the bootstrap program to be used (Default: cdebootstrap)
|
||||
.IP "\fI$LH_CACHE\fR" 4
|
||||
control if downloaded packages should be cached (Default: enabled)
|
||||
.IP "\fI$LH_ROOT\fR" 4
|
||||
set the root directory (Default: debian-live)
|
||||
.PP
|
||||
.IP "\fI$LIVE_ARCHITECTURE\fR" 4
|
||||
select the chroot architecture (Default: autodetected)
|
||||
.IP "\fI$LIVE_BOOTSTRAP_CONFIG\fR" 4
|
||||
set distribution config directory (Default: empty)
|
||||
.IP "\fI$LIVE_BOOTSTRAP_FLAVOUR\fR" 4
|
||||
select the flavour to use (Default: standard)
|
||||
.IP "\fI$LIVE_DISTRIBUTION\fR" 4
|
||||
select the distribution to use (Default: sid)
|
||||
.IP "\fI$LIVE_DISTRIBUTION_CONFIG\fR" 4
|
||||
set distribution config directory (Default: empty)
|
||||
.IP "\fI$LIVE_FLAVOUR\fR" 4
|
||||
select the flavour to use (Default: standard)
|
||||
.IP "\fI$LIVE_MIRROR_LOCAL\fR" 4
|
||||
set the local mirror to use (Default: http://ftp.debian.org/debian/)
|
||||
|
||||
.SH OPTIONS
|
||||
lh_bootstrap_cdebootstrap has no options (FIXME).
|
||||
.IP "\fI$LIVE_MIRROR_BUILD\fR" 4
|
||||
set the mirror to use (Default: http://ftp.debian.org/debian/)
|
||||
|
||||
.SH SEE ALSO
|
||||
\fIcdebootstrap\fR(1)
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
.TH LH_BOOTSTRAP_DEBOOTSTRAP 1 "2007\-04\-02" "1.0~a4" "live\-helper"
|
||||
.TH LH_BOOTSTRAP_DEBOOTSTRAP 1 "2007\-04\-09" "1.0~a5" "live\-helper"
|
||||
|
||||
.SH NAME
|
||||
lh_bootstrap_debootstrap \- bootstrap a Debian system with \fIdebootstrap\fR(8)
|
||||
|
@ -14,23 +14,21 @@ lh_bootstrap_debootstrap reads config/common and config/bootstrap if available.
|
|||
|
||||
.SH ENVIRONMENT
|
||||
lh_bootstrap_debootstrap respects the following environment variables if available, otherwise uses default values for it.
|
||||
.IP "\fI$LH_BOOTSTRAP\fR" 4
|
||||
control the bootstrap program to be used (Default: cdebootstrap)
|
||||
.IP "\fI$LH_CACHE\fR" 4
|
||||
control if downloaded packages should be cached (Default: enabled)
|
||||
.IP "\fI$LH_ROOT\fR" 4
|
||||
set the root directory (Default: debian-live)
|
||||
.PP
|
||||
.IP "\fI$LIVE_ARCHITECTURE\fR" 4
|
||||
select the chroot architecture (Default: autodetected)
|
||||
.IP "\fI$LIVE_BOOTSTRAP_CONFIG\fR" 4
|
||||
set distribution config directory (Default: empty)
|
||||
.IP "\fI$LIVE_BOOTSTRAP_FLAVOUR\fR" 4
|
||||
select the flavour to use (Default: standard)
|
||||
.IP "\fI$LIVE_DISTRIBUTION\fR" 4
|
||||
select the distribution to use (Default: sid)
|
||||
.IP "\fI$LIVE_DISTRIBUTION_CONFIG\fR" 4
|
||||
set distribution config directory (Default: empty)
|
||||
.IP "\fI$LIVE_FLAVOUR\fR" 4
|
||||
select the flavour to use (Default: standard)
|
||||
.IP "\fI$LIVE_MIRROR_LOCAL\fR" 4
|
||||
set the local mirror to use (Default: http://ftp.debian.org/debian/)
|
||||
|
||||
.SH OPTIONS
|
||||
lh_bootstrap_debootstrap has no options (FIXME).
|
||||
.IP "\fI$LIVE_MIRROR_BUILD\fR" 4
|
||||
set the mirror to use (Default: http://ftp.debian.org/debian/)
|
||||
|
||||
.SH SEE ALSO
|
||||
\fIdebootstrap\fR(8)
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
.TH LH_CHROOT 1 "2007\-04\-02" "1.0~a4" "live\-helper"
|
||||
.TH LH_CHROOT 1 "2007\-04\-09" "1.0~a5" "live\-helper"
|
||||
|
||||
.SH NAME
|
||||
lh_chroot \- meta-helper for lh_chroot_*
|
||||
|
@ -9,9 +9,6 @@ lh_chroot \- meta-helper for lh_chroot_*
|
|||
.SH DESCRIPTION
|
||||
lh_chroot is a meta-helper. It calls all necessary helpers to complete the chroot stage.
|
||||
|
||||
.SH OPTIONS
|
||||
lh_chroot has no options (FIXME).
|
||||
|
||||
.SH CHROOT HELPERS
|
||||
Here is the complete list of available chroot helper commands. See their man pages for additional documentation.
|
||||
.IP "\fIlh_chroot_apt\fR(1)" 4
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
.TH LH_CLEAN 1 "2007\-04\-02" "1.0~a4" "live\-helper"
|
||||
.TH LH_CLEAN 1 "2007\-04\-09" "1.0~a5" "live\-helper"
|
||||
|
||||
.SH NAME
|
||||
lh_clean \- clean up system build directories
|
||||
|
@ -11,7 +11,23 @@ lh_clean \- clean up system build directories
|
|||
lh_clean is a live\-helper program that is responsible for cleaning up after a system is built. It removes the system build directories, and removes some other files including stage files, and any detritus left behind by other live\-helper commands.
|
||||
|
||||
.SH OPTIONS
|
||||
lh_clean has no options (FIXME).
|
||||
The following command line options are supported by lh_clean.
|
||||
.IP "\fBall\fR" 4
|
||||
removes chroot, binary, lock, stage, and source. This is the default operation.
|
||||
.IP "\fBcache\fR" 4
|
||||
removes all cache directories.
|
||||
.IP "\fBchroot\fR" 4
|
||||
unmounts and removes the chroot directory. If bootstrap cache is available, the system is reset to bootstrap stage.
|
||||
.IP "\fBbinary\fR" 4
|
||||
removes all binary related caches, directories, and stages files.
|
||||
.IP "\fBlock\fR" 4
|
||||
removes all lock files.
|
||||
.IP "\fBpurge\fR" 4
|
||||
removes everything (including cache) but config.
|
||||
.IP "\fBstage\fR" 4
|
||||
removes all stage files.
|
||||
.IP "\fBsource\fR" 4
|
||||
removes all source related caches, directories, and stage files.
|
||||
|
||||
.SH SEE ALSO
|
||||
\fIlive\-helper\fR(7)
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
.TH LH_TESTROOT 1 "2007\-04\-02" "1.0~a4" "live\-helper"
|
||||
.TH LH_TESTROOT 1 "2007\-04\-09" "1.0~a5" "live\-helper"
|
||||
|
||||
.SH NAME
|
||||
lh_testroot \- ensure that a system is built as root
|
||||
|
@ -9,9 +9,6 @@ lh_testroot \- ensure that a system is built as root
|
|||
.SH DESCRIPTION
|
||||
lh_testroot simply checks to see if you are root. If not, it exits with an error. Debian Live images must currently be built as real root, \fIfakeroot\fR(1) or \fIsudo\fR(8) does not work.
|
||||
|
||||
.SH OPTIONS
|
||||
lh_testroot has no options (FIXME).
|
||||
|
||||
.SH SEE ALSO
|
||||
\fIlive\-helper\fR(7)
|
||||
.PP
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
.TH LIVE\-HELPER 7 "2007\-04\-02" "1.0~a4" "live\-helper"
|
||||
.TH LIVE\-HELPER 7 "2007\-04\-09" "1.0~a5" "live\-helper"
|
||||
|
||||
.SH NAME
|
||||
live\-helper \- Debian Live helper programs
|
||||
|
@ -31,10 +31,12 @@ meta-helper for lh_binary_*.
|
|||
copies chroot into chroot.
|
||||
.IP "\fIlh_binary_encryption\fR(1)" 4
|
||||
encrypts the root filesystem.
|
||||
.IP "\fIlh_binary_includes\fR(1)" 4
|
||||
copies files into the binary image.
|
||||
.IP "\fIlh_binary_grub\fR(1)" 4
|
||||
copies grub into the binary image.
|
||||
.IP "\fIlh_binary_hdd\fR(1)" 4
|
||||
creates the harddisk binary tarball.
|
||||
.IP "\fIlh_binary_includes\fR(1)" 4
|
||||
copies files into the binary image.
|
||||
.IP "\fIlh_binary_iso\fR(1)" 4
|
||||
creates the CD/DVD binary image.
|
||||
.IP "\fIlh_binary_linuximage\fR(1)" 4
|
||||
|
@ -75,6 +77,8 @@ does evil (temporary) hacks in the chroot.
|
|||
executes additional commands in the chroot.
|
||||
.IP "\fIlh_chroot_hosts\fR(1)" 4
|
||||
configures /etc/hosts in the chroot.
|
||||
.IP "\fIlh_chroot_interactive\fR(1)" 4
|
||||
makes build interactive.
|
||||
.IP "\fIlh_chroot_linuximage\fR(1)" 4
|
||||
configures /etc/kernel-img.conf in the chroot.
|
||||
.IP "\fIlh_chroot_localhooks\fR(1)" 4
|
||||
|
@ -134,12 +138,24 @@ checks for root privileges.
|
|||
|
||||
.SH LIVE\-HELPER OPTIONS
|
||||
The following command line options are supported by all live\-helper programs.
|
||||
.IP "\fB\-\-breakpoints\fR" 4
|
||||
run with breakpoints
|
||||
.IP "\fB\-\-conffile\fR" 4
|
||||
use custom configuration file
|
||||
.IP "\fB\-\-debug\fR" 4
|
||||
show debug information
|
||||
.IP "\fB\-\-force\fR" 4
|
||||
force helper execution, even if stage file exists.
|
||||
.IP "\fB\-h, \-\-help\fR" 4
|
||||
display help and exit
|
||||
.IP "\fB\-\-logfile\fR" 4
|
||||
use custom log file
|
||||
.IP "\fB\-\-quiet\fR" 4
|
||||
be quiet
|
||||
.IP "\fB\-u, \-\-usage\fR" 4
|
||||
show usage and exit
|
||||
.IP "\fB\-\-verbose\fR" 4
|
||||
be verbose
|
||||
.IP "\fB\-v, \-\-version\fR" 4
|
||||
output version information and exit
|
||||
|
||||
|
|
Loading…
Reference in New Issue