Adding live-helper 1.0~a19-1.
This commit is contained in:
parent
615360e7ad
commit
9a280c0dc1
15
Makefile
15
Makefile
|
@ -89,17 +89,12 @@ uninstall:
|
||||||
done
|
done
|
||||||
|
|
||||||
update:
|
update:
|
||||||
set -e; for MANPAGE in manpages/*.de.* manpages/*.en.*; \
|
set -e; for FILE in functions/*.sh examples/cron/*.sh manpages/*.de.* manpages/*.en.*; \
|
||||||
do \
|
do \
|
||||||
sed -i -e 's/2007\\-07\\-02/2007\\-07\\-09/' \
|
sed -i -e 's/2007\\-07\\-16/2007\\-07\\-23/' \
|
||||||
-e 's/02.07.2007/09.07.2007/' \
|
-e 's/16.07.2007/23.07.2007/' \
|
||||||
-e 's/1.0~a17/1.0~a18/' \
|
-e 's/1.0~a19/1.0~a20/' \
|
||||||
$$MANPAGE; \
|
$$FILE; \
|
||||||
done
|
|
||||||
|
|
||||||
set -e; for SCRIPT in functions/*.sh examples/cron/*.sh; \
|
|
||||||
do \
|
|
||||||
sed -i -e 's/1.0~a17/1.0~a18/' $$SCRIPT; \
|
|
||||||
done
|
done
|
||||||
|
|
||||||
clean:
|
clean:
|
||||||
|
|
|
@ -1,3 +1,11 @@
|
||||||
|
live-helper (1.0~a19-1) unstable; urgency=medium
|
||||||
|
|
||||||
|
* New upstream release:
|
||||||
|
- Supports using packages from the build host (Closes: #433611).
|
||||||
|
- Adds destdir to default entries in grub (Closes: #433612).
|
||||||
|
|
||||||
|
-- Daniel Baumann <daniel@debian.org> Mon, 16 Jul 2007 00:00:00 +0200
|
||||||
|
|
||||||
live-helper (1.0~a18-1) unstable; urgency=medium
|
live-helper (1.0~a18-1) unstable; urgency=medium
|
||||||
|
|
||||||
* New upstream release:
|
* New upstream release:
|
||||||
|
|
|
@ -11,6 +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)
|
||||||
|
Suggests: genisoimage | mkisofs, memtest86+ | memtest86, mtools, squashfs-tools | genext2fs, syslinux | grub
|
||||||
Conflicts: live-package
|
Conflicts: live-package
|
||||||
Replaces: live-package
|
Replaces: live-package
|
||||||
Provides: make-live
|
Provides: make-live
|
||||||
|
|
|
@ -1,3 +1,44 @@
|
||||||
|
2007-07-19 Daniel Baumann <daniel@debian.org>
|
||||||
|
|
||||||
|
* functions/defaults.sh, package.sh, helpers/lh_config, lh_binary_*:
|
||||||
|
- Added support for non-chrooted build.
|
||||||
|
- Added caching of deb packages on this stage too.
|
||||||
|
* helpers/lh_binary_grub:
|
||||||
|
- Added forgotten destdir for default entries.
|
||||||
|
* helpers/lh_binary_memtest:
|
||||||
|
- Added workaround for grub inside chroot when installing memtest as
|
||||||
|
suggested by Vladimir Stavrinov <vs@inist.ru>.
|
||||||
|
* helpers/lh_binary_rootfs:
|
||||||
|
- Updated squashfs-tools package check.
|
||||||
|
* helpers/lh_binary_syslinux:
|
||||||
|
- Using etch workaround for long filenames in syslinux on all
|
||||||
|
distributions.
|
||||||
|
* Uploaded 1.0~a19-1.
|
||||||
|
|
||||||
|
2007-07-15 Daniel Baumann <daniel@debian.org>
|
||||||
|
|
||||||
|
* examples/cron/manpages.sh, examples/hooks/win32-loader.sh:
|
||||||
|
- Added.
|
||||||
|
|
||||||
|
2007-07-15 Otavio Salvador <otavio@debian.org>
|
||||||
|
|
||||||
|
* functions/templates.sh:
|
||||||
|
- Changed whole code to export TEMPLATES for the item beeing
|
||||||
|
checked.
|
||||||
|
* helpers/lh_binary_grub, helpers/lh_binary_syslinux,
|
||||||
|
helpers/lh_binary_yaboot:
|
||||||
|
- Changed code to use the new TEMPLATES variable and avoid
|
||||||
|
hardcoding the path.
|
||||||
|
|
||||||
|
2007-07-14 Daniel Baumann <daniel@debian.org>
|
||||||
|
|
||||||
|
* helpers/lh_binary_debian-installer:
|
||||||
|
- Addded 'live' mode.
|
||||||
|
- Fixed a minor typo.
|
||||||
|
* helpers/lh_binary_includes:
|
||||||
|
- Moved copying of parameters.txt to lh_binary_linux-image.
|
||||||
|
- Moved parameters.txt.* to live-initramfs and data/casper.
|
||||||
|
|
||||||
2007-07-12 Daniel Baumann <daniel@debian.org>
|
2007-07-12 Daniel Baumann <daniel@debian.org>
|
||||||
|
|
||||||
* helpers/lh_binary_grub, lh_binary_syslinux:
|
* helpers/lh_binary_grub, lh_binary_syslinux:
|
||||||
|
@ -13,6 +54,7 @@
|
||||||
- Fixed typo in variable name.
|
- Fixed typo in variable name.
|
||||||
* lists/rescue:
|
* lists/rescue:
|
||||||
- Added aide and tripwire.
|
- Added aide and tripwire.
|
||||||
|
* Uploaded 1.0~a18-1.
|
||||||
|
|
||||||
2007-07-09 Chris Lamb <chris@chris-lamb.co.uk>
|
2007-07-09 Chris Lamb <chris@chris-lamb.co.uk>
|
||||||
|
|
||||||
|
|
|
@ -4,4 +4,5 @@ SHELL=/bin/sh
|
||||||
PATH=/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin
|
PATH=/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin
|
||||||
|
|
||||||
# m h dom mon dow user command
|
# m h dom mon dow user command
|
||||||
|
*/10 * * * * user /usr/share/doc/live-helper/examples/cron/manpages.sh > /dev/null 2>&1
|
||||||
*/10 * * * * user /usr/share/doc/live-helper/examples/cron/snapshots.sh > /dev/null 2>&1
|
*/10 * * * * user /usr/share/doc/live-helper/examples/cron/snapshots.sh > /dev/null 2>&1
|
||||||
|
|
|
@ -2,16 +2,16 @@
|
||||||
|
|
||||||
set -e
|
set -e
|
||||||
|
|
||||||
BUILD="etch"
|
BUILD="monthly"
|
||||||
|
|
||||||
# Begin custom defaults
|
# Begin custom defaults
|
||||||
AUTOBUILD="enabled"
|
AUTOBUILD="enabled"
|
||||||
|
|
||||||
DATE="r0_1.0~a18-1"
|
DATE="`date +%Y%m%d`"
|
||||||
DESTDIR="/srv/debian-unofficial/ftp/debian-live/cdimage"
|
DESTDIR="/srv/debian-live/www/cdimage"
|
||||||
TEMPDIR="/srv/tmp/live-helper"
|
TEMPDIR="/srv/tmp/live-helper"
|
||||||
|
|
||||||
OPTIONS="--binary-indices disabled --initramfs casper"
|
OPTIONS="--initramfs casper --apt-recommends disabled"
|
||||||
|
|
||||||
ARCHITECTURES="`dpkg --print-architecture`"
|
ARCHITECTURES="`dpkg --print-architecture`"
|
||||||
DISTRIBUTIONS="etch"
|
DISTRIBUTIONS="etch"
|
||||||
|
@ -82,7 +82,7 @@ do
|
||||||
|
|
||||||
# Moving logs
|
# Moving logs
|
||||||
mv "${TEMPDIR}"/debian-live/log.txt "${DESTDIR}"/"${BUILD}"-builds/${DATE}/log/debian-live-${DISTRIBUTION}-${ARCHITECTURE}-${PACKAGES_LIST}_${DATE}-iso-log.txt
|
mv "${TEMPDIR}"/debian-live/log.txt "${DESTDIR}"/"${BUILD}"-builds/${DATE}/log/debian-live-${DISTRIBUTION}-${ARCHITECTURE}-${PACKAGES_LIST}_${DATE}-iso-log.txt
|
||||||
mv "${TEMPDIR}"/debian-live/binary/packages.txt "${DESTDIR}"/"${BUILD}"-builds/${DATE}/log/debian-live-${DISTRIBUTION}-${ARCHITECTURE}-${PACKAGES_LIST}_${DATE}-iso-packages.txt
|
cp "${TEMPDIR}"/debian-live/binary/casper/filesystem.manifest "${DESTDIR}"/"${BUILD}"-builds/${DATE}/log/debian-live-${DISTRIBUTION}-${ARCHITECTURE}-${PACKAGES_LIST}_${DATE}-iso-packages.txt
|
||||||
|
|
||||||
# Creating images directory
|
# Creating images directory
|
||||||
mkdir -p "${DESTDIR}"/"${BUILD}"-builds/${DATE}/${ARCHITECTURE}
|
mkdir -p "${DESTDIR}"/"${BUILD}"-builds/${DATE}/${ARCHITECTURE}
|
||||||
|
|
|
@ -2,16 +2,16 @@
|
||||||
|
|
||||||
set -e
|
set -e
|
||||||
|
|
||||||
BUILD="lenny"
|
BUILD="weekly"
|
||||||
|
|
||||||
# Begin custom defaults
|
# Begin custom defaults
|
||||||
AUTOBUILD="enabled"
|
AUTOBUILD="enabled"
|
||||||
|
|
||||||
DATE="`date +%Y%m%d`"
|
DATE="`date +%Y%m%d`"
|
||||||
DESTDIR="/srv/debian-unofficial/ftp/debian-live/cdimage"
|
DESTDIR="/srv/debian-live/www/cdimage"
|
||||||
TEMPDIR="/srv/tmp/live-helper"
|
TEMPDIR="/srv/tmp/live-helper"
|
||||||
|
|
||||||
OPTIONS="--binary-indices disabled --initramfs live-initramfs"
|
OPTIONS="--apt-recommends disabled --security disabled"
|
||||||
|
|
||||||
ARCHITECTURES="`dpkg --print-architecture`"
|
ARCHITECTURES="`dpkg --print-architecture`"
|
||||||
DISTRIBUTIONS="lenny"
|
DISTRIBUTIONS="lenny"
|
||||||
|
@ -82,7 +82,7 @@ do
|
||||||
|
|
||||||
# Moving logs
|
# Moving logs
|
||||||
mv "${TEMPDIR}"/debian-live/log.txt "${DESTDIR}"/"${BUILD}"-builds/${DATE}/log/debian-live-${DISTRIBUTION}-${ARCHITECTURE}-${PACKAGES_LIST}_${DATE}-iso-log.txt
|
mv "${TEMPDIR}"/debian-live/log.txt "${DESTDIR}"/"${BUILD}"-builds/${DATE}/log/debian-live-${DISTRIBUTION}-${ARCHITECTURE}-${PACKAGES_LIST}_${DATE}-iso-log.txt
|
||||||
mv "${TEMPDIR}"/debian-live/binary/packages.txt "${DESTDIR}"/"${BUILD}"-builds/${DATE}/log/debian-live-${DISTRIBUTION}-${ARCHITECTURE}-${PACKAGES_LIST}_${DATE}-iso-packages.txt
|
cp "${TEMPDIR}"/debian-live/binary/packages.txt "${DESTDIR}"/"${BUILD}"-builds/${DATE}/log/debian-live-${DISTRIBUTION}-${ARCHITECTURE}-${PACKAGES_LIST}_${DATE}-iso-packages.txt
|
||||||
|
|
||||||
# Creating images directory
|
# Creating images directory
|
||||||
mkdir -p "${DESTDIR}"/"${BUILD}"-builds/${DATE}/${ARCHITECTURE}
|
mkdir -p "${DESTDIR}"/"${BUILD}"-builds/${DATE}/${ARCHITECTURE}
|
||||||
|
|
|
@ -0,0 +1,99 @@
|
||||||
|
#!/bin/sh
|
||||||
|
|
||||||
|
# Needs: man2html svn
|
||||||
|
|
||||||
|
# Static variables
|
||||||
|
PACKAGES="live-helper live-initramfs live-initscripts live-webhelper"
|
||||||
|
|
||||||
|
TEMPDIR="/srv/tmp/manpages"
|
||||||
|
SERVER="/srv/debian-live/www/other/manpages"
|
||||||
|
|
||||||
|
DATE_START="`date -R`"
|
||||||
|
|
||||||
|
# Checking lock file
|
||||||
|
if [ -f "${SERVER}"/lock ]
|
||||||
|
then
|
||||||
|
echo "E: locked."
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
|
|
||||||
|
# Creating server directory
|
||||||
|
if [ ! -d "${SERVER}" ]
|
||||||
|
then
|
||||||
|
mkdir -p "${SERVER}"
|
||||||
|
fi
|
||||||
|
|
||||||
|
# Creating lock trap
|
||||||
|
trap "test -f ${SERVER}/lock && rm -f ${SERVER}/lock; exit 0" 0 1 2 3 9 15
|
||||||
|
|
||||||
|
# Creating lock file
|
||||||
|
echo "${DATE_START}" > "${SERVER}"/lock
|
||||||
|
|
||||||
|
echo "`date +%b\ %d\ %H:%M:%S` ${HOSTNAME} live-helper: begin manpage build." >> /var/log/live
|
||||||
|
|
||||||
|
# Remove old manpages
|
||||||
|
rm -f "${SERVER}"/*.html
|
||||||
|
|
||||||
|
# Processing packages
|
||||||
|
for PACKAGE in ${PACKAGES}
|
||||||
|
do
|
||||||
|
# Cleaning build directory
|
||||||
|
if [ -d "${TEMPDIR}" ]
|
||||||
|
then
|
||||||
|
rm -rf "${TEMPDIR}"
|
||||||
|
fi
|
||||||
|
|
||||||
|
# Creating build directory
|
||||||
|
mkdir -p "${TEMPDIR}"
|
||||||
|
|
||||||
|
# Getting sources
|
||||||
|
cd "${TEMPDIR}"
|
||||||
|
svn co svn://svn.debian.org/debian-live/dists/trunk/${PACKAGE} ${PACKAGE}
|
||||||
|
|
||||||
|
# Building manpages
|
||||||
|
for MANPAGE in "${TEMPDIR}"/${PACKAGE}/manpages/*
|
||||||
|
do
|
||||||
|
man2html -D "${SERVER}"/ -r ${MANPAGE} | \
|
||||||
|
sed -e "s#Content-type: text/html##" \
|
||||||
|
-e 's#HREF="../index.html"#HREF="./"#' \
|
||||||
|
-e 's#HREF="../man1/#HREF="#g' \
|
||||||
|
-e 's#HREF="../man2/#HREF="#g' \
|
||||||
|
-e 's#HREF="../man3/#HREF="#g' \
|
||||||
|
-e 's#HREF="../man4/#HREF="#g' \
|
||||||
|
-e 's#HREF="../man5/#HREF="#g' \
|
||||||
|
-e 's#HREF="../man6/#HREF="#g' \
|
||||||
|
-e 's#HREF="../man7/#HREF="#g' \
|
||||||
|
-e 's#HREF="../man8/#HREF="#g' \
|
||||||
|
-e 's#HREF="../man9/#HREF="#g' \
|
||||||
|
-e 's#/cgi-bin/man/man2html#http://packages.debian.org/man2html#' \
|
||||||
|
> "${SERVER}"/`basename ${MANPAGE}`.html
|
||||||
|
done
|
||||||
|
|
||||||
|
# Removing sources
|
||||||
|
rm -rf "${TEMPDIR}"/${PACKAGE}
|
||||||
|
|
||||||
|
cd "${OLDPWD}"
|
||||||
|
done
|
||||||
|
|
||||||
|
# Creating symlinks
|
||||||
|
for NUMBER in 1 2 3 4 5 6 7 8 9
|
||||||
|
do
|
||||||
|
for MANPAGE in "${SERVER}"/*.en.${NUMBER}.html
|
||||||
|
do
|
||||||
|
if [ -f "${MANPAGE}" ]
|
||||||
|
then
|
||||||
|
ln -s `basename ${MANPAGE}` "${SERVER}"/`basename ${MANPAGE} .en.${NUMBER}.html`.${NUMBER}.html
|
||||||
|
fi
|
||||||
|
done
|
||||||
|
done
|
||||||
|
|
||||||
|
# Writing timestamp
|
||||||
|
cat > "${SERVER}"/LAST_BUILD << EOF
|
||||||
|
Last run begin: ${DATE_START}
|
||||||
|
Last run end: `date -R`
|
||||||
|
EOF
|
||||||
|
|
||||||
|
# Removing build directory
|
||||||
|
rm -rf "${TEMPDIR}"
|
||||||
|
|
||||||
|
echo "`date +%b\ %d\ %H:%M:%S` ${HOSTNAME} live-helper: end manpage build." >> /var/log/live
|
|
@ -2,16 +2,16 @@
|
||||||
|
|
||||||
set -e
|
set -e
|
||||||
|
|
||||||
BUILD="sid"
|
BUILD="daily"
|
||||||
|
|
||||||
# Begin custom defaults
|
# Begin custom defaults
|
||||||
AUTOBUILD="enabled"
|
AUTOBUILD="enabled"
|
||||||
|
|
||||||
DATE="`date +%Y%m%d`"
|
DATE="`date +%Y%m%d`"
|
||||||
DESTDIR="/srv/debian-unofficial/ftp/debian-live/cdimage"
|
DESTDIR="/srv/debian-live/www/cdimage"
|
||||||
TEMPDIR="/srv/tmp/live-helper"
|
TEMPDIR="/srv/tmp/live-helper"
|
||||||
|
|
||||||
OPTIONS="--binary-indices disabled --initramfs live-initramfs"
|
OPTIONS="--apt-recommends disabled"
|
||||||
|
|
||||||
ARCHITECTURES="`dpkg --print-architecture`"
|
ARCHITECTURES="`dpkg --print-architecture`"
|
||||||
DISTRIBUTIONS="sid"
|
DISTRIBUTIONS="sid"
|
||||||
|
@ -82,7 +82,7 @@ do
|
||||||
|
|
||||||
# Moving logs
|
# Moving logs
|
||||||
mv "${TEMPDIR}"/debian-live/log.txt "${DESTDIR}"/"${BUILD}"-builds/${DATE}/log/debian-live-${DISTRIBUTION}-${ARCHITECTURE}-${PACKAGES_LIST}_${DATE}-iso-log.txt
|
mv "${TEMPDIR}"/debian-live/log.txt "${DESTDIR}"/"${BUILD}"-builds/${DATE}/log/debian-live-${DISTRIBUTION}-${ARCHITECTURE}-${PACKAGES_LIST}_${DATE}-iso-log.txt
|
||||||
mv "${TEMPDIR}"/debian-live/binary/packages.txt "${DESTDIR}"/"${BUILD}"-builds/${DATE}/log/debian-live-${DISTRIBUTION}-${ARCHITECTURE}-${PACKAGES_LIST}_${DATE}-iso-packages.txt
|
cp "${TEMPDIR}"/debian-live/binary/packages.txt "${DESTDIR}"/"${BUILD}"-builds/${DATE}/log/debian-live-${DISTRIBUTION}-${ARCHITECTURE}-${PACKAGES_LIST}_${DATE}-iso-packages.txt
|
||||||
|
|
||||||
# Creating images directory
|
# Creating images directory
|
||||||
mkdir -p "${DESTDIR}"/"${BUILD}"-builds/${DATE}/${ARCHITECTURE}
|
mkdir -p "${DESTDIR}"/"${BUILD}"-builds/${DATE}/${ARCHITECTURE}
|
||||||
|
@ -96,10 +96,10 @@ do
|
||||||
if [ ! -f "${DESTDIR}"/"${BUILD}"-builds/${DATE}/log/debian-live-${DISTRIBUTION}-${ARCHITECTURE}-${PACKAGES_LIST}_${DATE}-usb-hdd-log.txt ]
|
if [ ! -f "${DESTDIR}"/"${BUILD}"-builds/${DATE}/log/debian-live-${DISTRIBUTION}-${ARCHITECTURE}-${PACKAGES_LIST}_${DATE}-usb-hdd-log.txt ]
|
||||||
then
|
then
|
||||||
# Workaround of missing multi-binary support in live-helper
|
# Workaround of missing multi-binary support in live-helper
|
||||||
mv "${TEMPDIR}"/debian-live/binary/casper "${TEMPDIR}"/debian-live/casper.tmp
|
mv "${TEMPDIR}"/debian-live/binary/live "${TEMPDIR}"/debian-live/live.tmp
|
||||||
rm -rf "${TEMPDIR}"/debian-live/binary* "${TEMPDIR}"/debian-live/.stage/binary_*
|
rm -rf "${TEMPDIR}"/debian-live/binary* "${TEMPDIR}"/debian-live/.stage/binary_*
|
||||||
mkdir "${TEMPDIR}"/debian-live/binary
|
mkdir "${TEMPDIR}"/debian-live/binary
|
||||||
mv "${TEMPDIR}"/debian-live/casper.tmp "${TEMPDIR}"/debian-live/binary/casper
|
mv "${TEMPDIR}"/debian-live/live.tmp "${TEMPDIR}"/debian-live/binary/live
|
||||||
touch "${TEMPDIR}"/debian-live/.stage/binary_chroot
|
touch "${TEMPDIR}"/debian-live/.stage/binary_chroot
|
||||||
touch "${TEMPDIR}"/debian-live/.stage/binary_rootfs
|
touch "${TEMPDIR}"/debian-live/.stage/binary_rootfs
|
||||||
|
|
||||||
|
|
|
@ -12,7 +12,7 @@ NAME="Debian Live Autobuilder"
|
||||||
|
|
||||||
export DEBEMAIL EMAIL DEBFULLNAME NAME
|
export DEBEMAIL EMAIL DEBFULLNAME NAME
|
||||||
|
|
||||||
TEMPDIR="/srv/tmp/svn-snapshots"
|
TEMPDIR="/srv/tmp/snapshots"
|
||||||
SERVER="/srv/debian-unofficial/ftp/debian-live-snapshots"
|
SERVER="/srv/debian-unofficial/ftp/debian-live-snapshots"
|
||||||
|
|
||||||
DATE_START="`date -R`"
|
DATE_START="`date -R`"
|
||||||
|
|
|
@ -0,0 +1,12 @@
|
||||||
|
#!/bin/sh
|
||||||
|
|
||||||
|
# This is a hook for live-helper(7) to install win32-loader.
|
||||||
|
# win32-loader was written by Robert Milan <rmh@aybabtu.com>.
|
||||||
|
#
|
||||||
|
# To enable it, copy this hook into your config/binary_local-hooks directory.
|
||||||
|
|
||||||
|
cd binary
|
||||||
|
|
||||||
|
wget http://goodbye-microsoft.com/pub/debian.exe
|
||||||
|
|
||||||
|
cd "${OLDPWD}"
|
|
@ -10,4 +10,4 @@
|
||||||
set -e
|
set -e
|
||||||
|
|
||||||
PROGRAM="`basename ${0}`"
|
PROGRAM="`basename ${0}`"
|
||||||
VERSION="1.0~a18"
|
VERSION="1.0~a19"
|
||||||
|
|
|
@ -584,6 +584,9 @@ Set_defaults ()
|
||||||
esac
|
esac
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
# Setting chroot option
|
||||||
|
LIVE_CHROOT_BUILD="${LIVE_CHROOT_BUILD:-enabled}"
|
||||||
|
|
||||||
# Setting debian-installer option
|
# Setting debian-installer option
|
||||||
LIVE_DEBIAN_INSTALLER="${LIVE_DEBIAN_INSTALLER:-disabled}"
|
LIVE_DEBIAN_INSTALLER="${LIVE_DEBIAN_INSTALLER:-disabled}"
|
||||||
|
|
||||||
|
|
|
@ -11,18 +11,32 @@ set -e
|
||||||
|
|
||||||
Check_package ()
|
Check_package ()
|
||||||
{
|
{
|
||||||
FILE="${1}"
|
ITEM="${1}"
|
||||||
PACKAGE="${2}"
|
PACKAGE="${2}"
|
||||||
|
|
||||||
if [ ! -f "${FILE}" ]
|
case "${LIVE_CHROOT_BUILD}" in
|
||||||
then
|
enabled)
|
||||||
PACKAGES="${PACKAGES} ${PACKAGE}"
|
if [ ! -d "${ITEM}" ] && [ ! -f "${ITEM}" ]
|
||||||
fi
|
then
|
||||||
|
PACKAGES="${PACKAGES} ${PACKAGE}"
|
||||||
|
fi
|
||||||
|
;;
|
||||||
|
|
||||||
|
disabled)
|
||||||
|
ITEM="`echo ${ITEM} | sed -e 's/chroot//'`"
|
||||||
|
|
||||||
|
if [ ! -d "${ITEM}" ] && [ ! -f "${ITEM}" ]
|
||||||
|
then
|
||||||
|
Echo_error "You need to install ${PACKAGE} on your host system."
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
|
;;
|
||||||
|
esac
|
||||||
}
|
}
|
||||||
|
|
||||||
Install_package ()
|
Install_package ()
|
||||||
{
|
{
|
||||||
if [ -n "${PACKAGES}" ]
|
if [ -n "${PACKAGES}" ] && [ "${LIVE_CHROOT_BUILD}" != "disabled" ]
|
||||||
then
|
then
|
||||||
case "${LH_APT}" in
|
case "${LH_APT}" in
|
||||||
apt|apt-get)
|
apt|apt-get)
|
||||||
|
@ -38,7 +52,7 @@ Install_package ()
|
||||||
|
|
||||||
Remove_package ()
|
Remove_package ()
|
||||||
{
|
{
|
||||||
if [ -n "${PACKAGES}" ]
|
if [ -n "${PACKAGES}" ] && [ "${LIVE_CHROOT_BUILD}" != "disabled" ]
|
||||||
then
|
then
|
||||||
case "${LH_APT}" in
|
case "${LH_APT}" in
|
||||||
apt|apt-get)
|
apt|apt-get)
|
||||||
|
|
|
@ -11,22 +11,25 @@ set -e
|
||||||
|
|
||||||
Check_templates ()
|
Check_templates ()
|
||||||
{
|
{
|
||||||
PROGRAM="${1}"
|
ITEM="${1}"
|
||||||
|
|
||||||
# Check local templates
|
# Check user defined templates directory
|
||||||
if [ -d config/templates/"${PROGRAM}" ]
|
|
||||||
then
|
|
||||||
LIVE_TEMPLATES="config/templates"
|
|
||||||
fi
|
|
||||||
|
|
||||||
# Checking user templates
|
|
||||||
if [ ! -d "${LIVE_TEMPLATES}" ]
|
if [ ! -d "${LIVE_TEMPLATES}" ]
|
||||||
then
|
then
|
||||||
Echo_error "user specified templates not accessible in ${LIVE_TEMPLATES}"
|
if [ -d config/templates ]
|
||||||
exit 1
|
then
|
||||||
elif [ ! -d "${LIVE_TEMPLATES}/${PROGRAM}" ]
|
LIVE_TEMPLATES=config/templates
|
||||||
|
else
|
||||||
|
Echo_error "templates not accessible in ${LIVE_TEMPLATES} nor config/templates"
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
|
fi
|
||||||
|
|
||||||
|
if [ -d "${LIVE_TEMPLATES}/${ITEM}" ]
|
||||||
then
|
then
|
||||||
Echo_error "${PROGRAM} templates not accessible in ${LIVE_TEMPLATES}"
|
TEMPLATES="${LIVE_TEMPLATES}/${ITEM}"
|
||||||
|
else
|
||||||
|
Echo_error "${ITEM} templates not accessible in ${LIVE_TEMPLATES}"
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
|
|
|
@ -27,13 +27,16 @@ Arguments "${@}"
|
||||||
# Preparing root filesystem
|
# Preparing root filesystem
|
||||||
lh_binary_chroot ${*}
|
lh_binary_chroot ${*}
|
||||||
|
|
||||||
# Configuring chroot
|
if [ "${LIVE_CHROOT_BUILD}" = "enabled" ]
|
||||||
lh_chroot_proc install ${*}
|
then
|
||||||
lh_chroot_sysfs install ${*}
|
# Configuring chroot
|
||||||
lh_chroot_hosts install ${*}
|
lh_chroot_proc install ${*}
|
||||||
lh_chroot_resolv install ${*}
|
lh_chroot_sysfs install ${*}
|
||||||
lh_chroot_hostname install ${*}
|
lh_chroot_hosts install ${*}
|
||||||
lh_chroot_sources install ${*}
|
lh_chroot_resolv install ${*}
|
||||||
|
lh_chroot_hostname install ${*}
|
||||||
|
lh_chroot_sources install ${*}
|
||||||
|
fi
|
||||||
|
|
||||||
# Building root filesystem
|
# Building root filesystem
|
||||||
lh_binary_rootfs ${*}
|
lh_binary_rootfs ${*}
|
||||||
|
@ -59,10 +62,13 @@ lh_binary_net ${*}
|
||||||
lh_binary_tar ${*}
|
lh_binary_tar ${*}
|
||||||
lh_binary_usb-hdd ${*}
|
lh_binary_usb-hdd ${*}
|
||||||
|
|
||||||
# Deconfiguring chroot
|
if [ "${LIVE_CHROOT_BUILD}" = "enabled" ]
|
||||||
rm -f .stage/chroot_sources
|
then
|
||||||
lh_chroot_hostname remove ${*}
|
# Deconfiguring chroot
|
||||||
lh_chroot_resolv remove ${*}
|
rm -f .stage/chroot_sources
|
||||||
lh_chroot_hosts remove ${*}
|
lh_chroot_hostname remove ${*}
|
||||||
lh_chroot_sysfs remove ${*}
|
lh_chroot_resolv remove ${*}
|
||||||
lh_chroot_proc remove ${*}
|
lh_chroot_hosts remove ${*}
|
||||||
|
lh_chroot_sysfs remove ${*}
|
||||||
|
lh_chroot_proc remove ${*}
|
||||||
|
fi
|
||||||
|
|
|
@ -58,17 +58,17 @@ then
|
||||||
${LH_ROOT_COMMAND} umount chroot/sys
|
${LH_ROOT_COMMAND} umount chroot/sys
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
if [ "${LIVE_CHROOT_BUILD}" = "disabled" ]
|
||||||
|
then
|
||||||
|
exit 0
|
||||||
|
fi
|
||||||
|
|
||||||
# Removing old chroot
|
# Removing old chroot
|
||||||
${LH_ROOT_COMMAND} rm -rf chroot/chroot
|
${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
|
||||||
#if [ "${LIVE_BINARY_INDICES}" = "enabled" ]
|
${LH_ROOT_COMMAND} cp -a chroot chroot.tmp
|
||||||
#then
|
|
||||||
${LH_ROOT_COMMAND} cp -a chroot chroot.tmp
|
|
||||||
#else
|
|
||||||
# ${LH_ROOT_COMMAND} cp -al chroot chroot.tmp
|
|
||||||
#fi
|
|
||||||
${LH_ROOT_COMMAND} mv chroot.tmp chroot/chroot
|
${LH_ROOT_COMMAND} mv chroot.tmp chroot/chroot
|
||||||
|
|
||||||
if [ -n "${LH_ROOT_COMMAND}" ]
|
if [ -n "${LH_ROOT_COMMAND}" ]
|
||||||
|
|
|
@ -34,13 +34,7 @@ Set_defaults
|
||||||
|
|
||||||
# Setting remote d-i directories
|
# Setting remote d-i directories
|
||||||
case "${LIVE_DEBIAN_INSTALLER}" in
|
case "${LIVE_DEBIAN_INSTALLER}" in
|
||||||
netboot)
|
enabled|cdrom|live)
|
||||||
DI="netboot/debian-installer/i386"
|
|
||||||
DI_GTK="netboot/gtk/debian-installer/i386"
|
|
||||||
DI_KERNEL="linux"
|
|
||||||
;;
|
|
||||||
|
|
||||||
cdrom|enabled)
|
|
||||||
DI="cdrom"
|
DI="cdrom"
|
||||||
DI_GTK="${DI}/gtk"
|
DI_GTK="${DI}/gtk"
|
||||||
DI_KERNEL="vmlinuz"
|
DI_KERNEL="vmlinuz"
|
||||||
|
@ -50,6 +44,12 @@ case "${LIVE_DEBIAN_INSTALLER}" in
|
||||||
exit 0
|
exit 0
|
||||||
;;
|
;;
|
||||||
|
|
||||||
|
netboot)
|
||||||
|
DI="netboot/debian-installer/i386"
|
||||||
|
DI_GTK="netboot/gtk/debian-installer/i386"
|
||||||
|
DI_KERNEL="linux"
|
||||||
|
;;
|
||||||
|
|
||||||
*)
|
*)
|
||||||
Echo_error "debian-installer flavor ${LIVE_DEBIAN_INSTALLER} not supported."
|
Echo_error "debian-installer flavor ${LIVE_DEBIAN_INSTALLER} not supported."
|
||||||
exit 1
|
exit 1
|
||||||
|
@ -296,22 +296,11 @@ mkdir -p binary/dists/${LIVE_DISTRIBUTION}/main/binary-${LIVE_ARCHITECTURE}
|
||||||
cd binary
|
cd binary
|
||||||
apt-ftparchive packages pool/main > dists/${LIVE_DISTRIBUTION}/main/binary-${LIVE_ARCHITECTURE}/Packages
|
apt-ftparchive packages pool/main > dists/${LIVE_DISTRIBUTION}/main/binary-${LIVE_ARCHITECTURE}/Packages
|
||||||
gzip -9 -c dists/${LIVE_DISTRIBUTION}/main/binary-${LIVE_ARCHITECTURE}/Packages > dists/${LIVE_DISTRIBUTION}/main/binary-${LIVE_ARCHITECTURE}/Packages.gz
|
gzip -9 -c dists/${LIVE_DISTRIBUTION}/main/binary-${LIVE_ARCHITECTURE}/Packages > dists/${LIVE_DISTRIBUTION}/main/binary-${LIVE_ARCHITECTURE}/Packages.gz
|
||||||
#apt-ftparchive sources pool/main > dists/${LIVE_DISTRIBUTION}/main/source/Sources
|
|
||||||
#gzip -9 -c dists/${LIVE_DISTRIBUTION}/main/source/Sources > dists/${LIVE_DISTRIBUTION}/main/source/Sources
|
|
||||||
cd "${OLDPWD}"
|
cd "${OLDPWD}"
|
||||||
|
|
||||||
# Fetching release
|
# Fetching release
|
||||||
wget "${LIVE_MIRROR_BOOTSTRAP}"/dists/"${LIVE_DISTRIBUTION}"/main/binary-"${LIVE_ARCHITECTURE}"/Release -O binary/dists/${LIVE_DISTRIBUTION}/main/binary-${LIVE_ARCHITECTURE}/Release
|
wget "${LIVE_MIRROR_BOOTSTRAP}"/dists/"${LIVE_DISTRIBUTION}"/main/binary-"${LIVE_ARCHITECTURE}"/Release -O binary/dists/${LIVE_DISTRIBUTION}/main/binary-${LIVE_ARCHITECTURE}/Release
|
||||||
|
|
||||||
#cat > binary/dists/${LIVE_DISTRIBUTION}/main/source/Release << EOF
|
|
||||||
#Archive: stable
|
|
||||||
#Version: 4.0r0
|
|
||||||
#Component: main
|
|
||||||
#Origin: Debian
|
|
||||||
#Label: Debian
|
|
||||||
#Architecture: source
|
|
||||||
#EOF
|
|
||||||
|
|
||||||
mkdir binary.udeb
|
mkdir binary.udeb
|
||||||
cd binary.udeb
|
cd binary.udeb
|
||||||
|
|
||||||
|
@ -328,7 +317,7 @@ do
|
||||||
if [ -f ../cache/packages_debian-installer.udeb/"`basename ${UDEB}`" ]
|
if [ -f ../cache/packages_debian-installer.udeb/"`basename ${UDEB}`" ]
|
||||||
then
|
then
|
||||||
# Copying cached udebs
|
# Copying cached udebs
|
||||||
cp -l ../cache/packages_debian-installer.udeb/"`basename ${UDEB}`" ./
|
cp ../cache/packages_debian-installer.udeb/"`basename ${UDEB}`" ./
|
||||||
else
|
else
|
||||||
# Downloading udebs
|
# Downloading udebs
|
||||||
wget "${LIVE_MIRROR_BOOTSTRAP}"/${UDEB}
|
wget "${LIVE_MIRROR_BOOTSTRAP}"/${UDEB}
|
||||||
|
@ -338,7 +327,7 @@ done
|
||||||
# Caching udebs
|
# Caching udebs
|
||||||
rm -rf ../cache/packages_debian-installer.udeb
|
rm -rf ../cache/packages_debian-installer.udeb
|
||||||
mkdir -p ../cache/packages_debian-installer.udeb
|
mkdir -p ../cache/packages_debian-installer.udeb
|
||||||
cp -l *.udeb ../cache/packages_debian-installer.udeb
|
cp *.udeb ../cache/packages_debian-installer.udeb
|
||||||
|
|
||||||
# Including local udebs
|
# Including local udebs
|
||||||
if ls ../config/binary_local-udebs/* &> /dev/null
|
if ls ../config/binary_local-udebs/* &> /dev/null
|
||||||
|
@ -375,7 +364,7 @@ fi
|
||||||
|
|
||||||
# Excluding udebs
|
# Excluding udebs
|
||||||
grep -v "^#" ${LH_BASE:-/usr/share/live-helper}/data/debian-cd/"${LIVE_DISTRIBUTION}"/udeb_exclude > exclude
|
grep -v "^#" ${LH_BASE:-/usr/share/live-helper}/data/debian-cd/"${LIVE_DISTRIBUTION}"/udeb_exclude > exclude
|
||||||
grep -v "^#" ${LH_BASE:-/usr/share/live-helper}/data/debian-cd/"${LIVE_DISTRIBUTION}"/exclude-udebs > exclude
|
grep -v "^#" ${LH_BASE:-/usr/share/live-helper}/data/debian-cd/"${LIVE_DISTRIBUTION}"/exclude-udebs >> exclude
|
||||||
grep -v "^#" ${LH_BASE:-/usr/share/live-helper}/data/debian-cd/"${LIVE_DISTRIBUTION}"/exclude-udebs-${LIVE_ARCHITECTURE} >> exclude
|
grep -v "^#" ${LH_BASE:-/usr/share/live-helper}/data/debian-cd/"${LIVE_DISTRIBUTION}"/exclude-udebs-${LIVE_ARCHITECTURE} >> exclude
|
||||||
|
|
||||||
for EXCLUDE in `cat exclude`
|
for EXCLUDE in `cat exclude`
|
||||||
|
|
|
@ -80,11 +80,16 @@ esac
|
||||||
# Checking depends
|
# Checking depends
|
||||||
Check_package chroot/usr/bin/aespipe aespipe
|
Check_package chroot/usr/bin/aespipe aespipe
|
||||||
|
|
||||||
|
# Restoring cache
|
||||||
|
Restore_cache cache/packages_binary
|
||||||
|
|
||||||
# Installing depends
|
# Installing depends
|
||||||
Install_package
|
Install_package
|
||||||
|
|
||||||
# Moving image
|
case "${LIVE_CHROOT_BUILD}" in
|
||||||
mv binary/${INITFS}/filesystem.${LIVE_CHROOT_FILESYSTEM} chroot
|
enabled)
|
||||||
|
# Moving image
|
||||||
|
mv binary/${INITFS}/filesystem.${LIVE_CHROOT_FILESYSTEM} chroot
|
||||||
|
|
||||||
echo "Encrypting binary/${INITFS}/filesystem.${ROOTFS} with ${LIVE_ENCRYPTION}..."
|
echo "Encrypting binary/${INITFS}/filesystem.${ROOTFS} with ${LIVE_ENCRYPTION}..."
|
||||||
|
|
||||||
|
@ -105,11 +110,33 @@ do
|
||||||
done
|
done
|
||||||
EOF
|
EOF
|
||||||
|
|
||||||
Chroot "sh encrypt.sh"
|
Chroot "sh encrypt.sh"
|
||||||
|
|
||||||
# Move image
|
# Move image
|
||||||
mv chroot/filesystem.${LIVE_CHROOT_FILESYSTEM} binary/${INITFS}
|
mv chroot/filesystem.${LIVE_CHROOT_FILESYSTEM} binary/${INITFS}
|
||||||
rm -f chroot/encrypt.sh
|
rm -f chroot/encrypt.sh
|
||||||
|
;;
|
||||||
|
|
||||||
|
disabled)
|
||||||
|
while true
|
||||||
|
do
|
||||||
|
cat binary/${INITFS}/filesystem.${ROOTFS} | aespipe -e ${LIVE_ENCRYPTION} -T > binary/${INITFS}/filesystem.${ROOTFS}.tmp && mv binary/${INITFS}/filesystem.${ROOTFS}.tmp binary/${INITFS}/filesystem.${ROOTFS} && break
|
||||||
|
|
||||||
|
echo -n "Something went wrong... Retry? [YES/no] "
|
||||||
|
|
||||||
|
read ANSWER
|
||||||
|
|
||||||
|
if [ "no" = "${ANSWER}" ]
|
||||||
|
then
|
||||||
|
unset ANSWER
|
||||||
|
break
|
||||||
|
fi
|
||||||
|
done
|
||||||
|
;;
|
||||||
|
esac
|
||||||
|
|
||||||
|
# Saving cache
|
||||||
|
Save_cache cache/packages_binary
|
||||||
|
|
||||||
# Removing depends
|
# Removing depends
|
||||||
Remove_package
|
Remove_package
|
||||||
|
|
|
@ -60,6 +60,9 @@ Check_architecture amd64 i386
|
||||||
# Checking depends
|
# Checking depends
|
||||||
Check_package chroot/usr/sbin/grub grub
|
Check_package chroot/usr/sbin/grub grub
|
||||||
|
|
||||||
|
# Restoring cache
|
||||||
|
Restore_cache cache/packages_binary
|
||||||
|
|
||||||
# Installing depends
|
# Installing depends
|
||||||
Install_package
|
Install_package
|
||||||
|
|
||||||
|
@ -185,8 +188,8 @@ DEFAULT_FLAVOUR="`echo ${LIVE_LINUX_FLAVOURS} | awk '{ print $1 }'`"
|
||||||
DEFAULT_KERNEL="`basename chroot/boot/vmlinuz-*${DEFAULT_FLAVOUR}`"
|
DEFAULT_KERNEL="`basename chroot/boot/vmlinuz-*${DEFAULT_FLAVOUR}`"
|
||||||
DEFAULT_INITRD="initrd.img-`echo ${DEFAULT_KERNEL} | sed -e 's/vmlinuz-//'`"
|
DEFAULT_INITRD="initrd.img-`echo ${DEFAULT_KERNEL} | sed -e 's/vmlinuz-//'`"
|
||||||
|
|
||||||
Grub_live_entry "live" "${DEFAULT_KERNEL}" "${DEFAULT_INITRD}"
|
Grub_live_entry "live" "`basename ${DESTDIR_LIVE}`/${DEFAULT_KERNEL}" "`basename ${DESTDIR_LIVE}`/${DEFAULT_INITRD}"
|
||||||
Grub_live_entry "live (fail-safe mode)" "${DEFAULT_KERNEL}" "${DEFAULT_INITRD}" "${FAILSAFE}"
|
Grub_live_entry "live (fail-safe mode)" "`basename ${DESTDIR_LIVE}`/${DEFAULT_KERNEL}" "`basename ${DESTDIR_LIVE}`/${DEFAULT_INITRD}" "${FAILSAFE}"
|
||||||
|
|
||||||
for KERNEL in chroot/boot/vmlinuz-*
|
for KERNEL in chroot/boot/vmlinuz-*
|
||||||
do
|
do
|
||||||
|
@ -234,19 +237,26 @@ fi
|
||||||
|
|
||||||
# Copying templates
|
# Copying templates
|
||||||
mkdir -p binary/boot/grub
|
mkdir -p binary/boot/grub
|
||||||
cp -r "${LIVE_TEMPLATES}"/grub/* binary/boot/grub
|
cp -r "${TEMPLATES}"/* binary/boot/grub
|
||||||
|
|
||||||
# Copying grub
|
|
||||||
case ${LIVE_BINARY_IMAGES} in
|
case ${LIVE_BINARY_IMAGES} in
|
||||||
iso)
|
iso)
|
||||||
cp chroot/usr/lib/grub/*/stage2_eltorito binary/boot/grub
|
FILES="chroot/usr/lib/grub/*/stage2_eltorito"
|
||||||
;;
|
;;
|
||||||
|
|
||||||
tar|usb-hdd)
|
tar|usb-hdd)
|
||||||
cp chroot/usr/lib/grub/*/stage1 chroot/usr/lib/grub/*/e2fs_stage1_5 chroot/usr/lib/grub/*/stage2 binary/boot/grub
|
FILES="chroot/usr/lib/grub/*/stage1 chroot/usr/lib/grub/*/e2fs_stage1_5 chroot/usr/lib/grub/*/stage2"
|
||||||
;;
|
;;
|
||||||
esac
|
esac
|
||||||
|
|
||||||
|
if [ "${LIVE_CHROOT_BUILD}" = "disabled" ]
|
||||||
|
then
|
||||||
|
FILES="`echo ${FILES} | sed -e 's/chroot//g'`"
|
||||||
|
fi
|
||||||
|
|
||||||
|
# Copying grub
|
||||||
|
cp ${FILES} binary/boot/grub
|
||||||
|
|
||||||
# Copying local configuration file
|
# Copying local configuration file
|
||||||
if [ -f config/binary_grub/menu.lst ]
|
if [ -f config/binary_grub/menu.lst ]
|
||||||
then
|
then
|
||||||
|
@ -283,6 +293,9 @@ sed -i -e "s#LIVE_BOOTAPPEND#${LIVE_BOOTAPPEND}#" binary/boot/grub/menu.lst
|
||||||
|
|
||||||
sed -i -e 's/\ $//g' binary/boot/grub/menu.lst
|
sed -i -e 's/\ $//g' binary/boot/grub/menu.lst
|
||||||
|
|
||||||
|
# Saving cache
|
||||||
|
Save_cache cache/packages_binary
|
||||||
|
|
||||||
# Removing depends
|
# Removing depends
|
||||||
Remove_package
|
Remove_package
|
||||||
|
|
||||||
|
|
|
@ -160,13 +160,5 @@ then
|
||||||
sed -i -e "s#DEBIAN_NAME#${DEBIAN_NAME}#g" -e "s/DEBIAN_DATE/${DEBIAN_DATE}/g" -e "s#DEBIAN_TOOLS#${DEBIAN_TOOLS_TXT}#g" binary/README.txt
|
sed -i -e "s#DEBIAN_NAME#${DEBIAN_NAME}#g" -e "s/DEBIAN_DATE/${DEBIAN_DATE}/g" -e "s#DEBIAN_TOOLS#${DEBIAN_TOOLS_TXT}#g" binary/README.txt
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# Cleaning up includes
|
|
||||||
if [ -e binary/parameters.txt.${LH_INITRAMFS} ]
|
|
||||||
then
|
|
||||||
mv binary/parameters.txt.${LH_INITRAMFS} binary/parameters.txt
|
|
||||||
fi
|
|
||||||
|
|
||||||
rm -f binary/parameters.txt.*
|
|
||||||
|
|
||||||
# Creating stage file
|
# Creating stage file
|
||||||
Create_stagefile .stage/binary_includes
|
Create_stagefile .stage/binary_includes
|
||||||
|
|
|
@ -54,6 +54,9 @@ Create_lockfile .lock
|
||||||
# Checking depends
|
# Checking depends
|
||||||
Check_package chroot/usr/bin/"${LH_GENISOIMAGE}" ${LH_GENISOIMAGE}
|
Check_package chroot/usr/bin/"${LH_GENISOIMAGE}" ${LH_GENISOIMAGE}
|
||||||
|
|
||||||
|
# Restoring cache
|
||||||
|
Restore_cache cache/packages_binary
|
||||||
|
|
||||||
# Installing depends
|
# Installing depends
|
||||||
Install_package
|
Install_package
|
||||||
|
|
||||||
|
@ -88,9 +91,6 @@ then
|
||||||
GENISOIMAGE_OPTIONS="${GENISOIMAGE_OPTIONS} -V \"${LIVE_ISO_VOLUME}\""
|
GENISOIMAGE_OPTIONS="${GENISOIMAGE_OPTIONS} -V \"${LIVE_ISO_VOLUME}\""
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# Moving image
|
|
||||||
mv binary chroot
|
|
||||||
|
|
||||||
# Create image
|
# Create image
|
||||||
case "${LIVE_BOOTLOADER}" in
|
case "${LIVE_BOOTLOADER}" in
|
||||||
grub)
|
grub)
|
||||||
|
@ -128,15 +128,34 @@ case "${LIVE_BOOTLOADER}" in
|
||||||
;;
|
;;
|
||||||
esac
|
esac
|
||||||
|
|
||||||
|
case "${LIVE_CHROOT_BUILD}" in
|
||||||
|
enabled)
|
||||||
|
# Moving image
|
||||||
|
mv binary chroot
|
||||||
|
|
||||||
cat > chroot/binary.sh << EOF
|
cat > chroot/binary.sh << EOF
|
||||||
${LH_GENISOIMAGE} ${GENISOIMAGE_OPTIONS} -o binary.iso -J -l -cache-inodes binary
|
${LH_GENISOIMAGE} ${GENISOIMAGE_OPTIONS} -o binary.iso -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
|
||||||
|
;;
|
||||||
|
|
||||||
|
disabled)
|
||||||
|
cat > binary.sh << EOF
|
||||||
|
${LH_GENISOIMAGE} ${GENISOIMAGE_OPTIONS} -o binary.iso -J -l -cache-inodes binary
|
||||||
|
EOF
|
||||||
|
|
||||||
|
sh binary.sh
|
||||||
|
rm -f binary.sh
|
||||||
|
;;
|
||||||
|
esac
|
||||||
|
|
||||||
|
# Saving cache
|
||||||
|
Save_cache cache/packages_binary
|
||||||
|
|
||||||
# Removing depends
|
# Removing depends
|
||||||
Remove_package
|
Remove_package
|
||||||
|
|
|
@ -98,5 +98,21 @@ mkdir -p "${DESTDIR}"
|
||||||
cp chroot/boot/"${LINUX}"-* "${DESTDIR}"
|
cp chroot/boot/"${LINUX}"-* "${DESTDIR}"
|
||||||
cp chroot/boot/initrd.img-* "${DESTDIR}"
|
cp chroot/boot/initrd.img-* "${DESTDIR}"
|
||||||
|
|
||||||
|
# Including boot parameter documentation
|
||||||
|
if [ "${LIVE_BINARY_IMAGES}" != "net" ]
|
||||||
|
then
|
||||||
|
DESTDIR="binary"
|
||||||
|
fi
|
||||||
|
|
||||||
|
case "${LH_INITRAMFS}" in
|
||||||
|
casper)
|
||||||
|
cp "${LH_BASE:-/usr/share/live-helper}"/data/casper/parameters.txt "${DESTDIR}"/parameters.txt
|
||||||
|
;;
|
||||||
|
|
||||||
|
live-initramfs)
|
||||||
|
cp chroot/usr/share/doc/live-initramfs/parameters.txt "${DESTDIR}"/parameters.txt
|
||||||
|
;;
|
||||||
|
esac
|
||||||
|
|
||||||
# Creating stage file
|
# Creating stage file
|
||||||
Create_stagefile .stage/binary_linux-image
|
Create_stagefile .stage/binary_linux-image
|
||||||
|
|
|
@ -57,6 +57,17 @@ then
|
||||||
exit 0
|
exit 0
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
if [ "${LIVE_CHROOT_BUILD}" = "enabled" ]
|
||||||
|
then
|
||||||
|
|
||||||
|
if [ -f chroot/usr/sbin/grub ] && [ ! -d chroot/boot/grub ]
|
||||||
|
then
|
||||||
|
GRUB="yes"
|
||||||
|
|
||||||
|
mkdir -p chroot/boot/grub
|
||||||
|
fi
|
||||||
|
fi
|
||||||
|
|
||||||
# Checking depends
|
# Checking depends
|
||||||
case "${LIVE_MEMTEST}" in
|
case "${LIVE_MEMTEST}" in
|
||||||
memtest86)
|
memtest86)
|
||||||
|
@ -68,6 +79,9 @@ case "${LIVE_MEMTEST}" in
|
||||||
;;
|
;;
|
||||||
esac
|
esac
|
||||||
|
|
||||||
|
# Restoring cache
|
||||||
|
Restore_cache cache/packages_binary
|
||||||
|
|
||||||
# Installing depends
|
# Installing depends
|
||||||
Install_package
|
Install_package
|
||||||
|
|
||||||
|
@ -114,18 +128,26 @@ Check_multiarchitecture
|
||||||
mkdir -p "${DESTDIR}"
|
mkdir -p "${DESTDIR}"
|
||||||
|
|
||||||
# Installing memtest
|
# Installing memtest
|
||||||
case "${LIVE_MEMTEST}" in
|
case "${LIVE_CHROOT_BUILD}" in
|
||||||
memtest86)
|
enabled)
|
||||||
cp -f chroot/boot/memtest86.bin "${DESTDIR}"/memtest
|
cp chroot/boot/${LIVE_MEMTEST}.bin "${DESTDIR}"/memtest
|
||||||
;;
|
;;
|
||||||
|
|
||||||
memtest86+)
|
disabled)
|
||||||
cp -f chroot/boot/memtest86+.bin "${DESTDIR}"/memtest
|
cp /boot/${LIVE_MEMTEST}.bin "${DESTDIR}"/memtest
|
||||||
;;
|
;;
|
||||||
esac
|
esac
|
||||||
|
|
||||||
|
# Saving cache
|
||||||
|
Save_cache cache/packages_binary
|
||||||
|
|
||||||
# Removing depends
|
# Removing depends
|
||||||
Remove_package
|
Remove_package
|
||||||
|
|
||||||
|
if [ "${GRUB}" ]
|
||||||
|
then
|
||||||
|
rm -rf chroot/boot/grub
|
||||||
|
fi
|
||||||
|
|
||||||
# Creating stage file
|
# Creating stage file
|
||||||
Create_stagefile .stage/binary_memtest
|
Create_stagefile .stage/binary_memtest
|
||||||
|
|
|
@ -79,7 +79,7 @@ do
|
||||||
|
|
||||||
# Restoring old cache
|
# Restoring old cache
|
||||||
mkdir -p binary/"${INITFS}"
|
mkdir -p binary/"${INITFS}"
|
||||||
${LH_ROOT_COMMAND} cp -al cache/stages_rootfs/filesystem.* binary/"${INITFS}"
|
${LH_ROOT_COMMAND} cp -a cache/stages_rootfs/filesystem.* binary/"${INITFS}"
|
||||||
|
|
||||||
if [ -n "${LH_ROOT_COMMAND}" ]
|
if [ -n "${LH_ROOT_COMMAND}" ]
|
||||||
then
|
then
|
||||||
|
@ -97,6 +97,9 @@ case "${LIVE_CHROOT_FILESYSTEM}" in
|
||||||
# Checking depends
|
# Checking depends
|
||||||
Check_package chroot/usr/bin/genext2fs genext2fs
|
Check_package chroot/usr/bin/genext2fs genext2fs
|
||||||
|
|
||||||
|
# Restoring cache
|
||||||
|
Restore_cache cache/packages_binary
|
||||||
|
|
||||||
# Installing depends
|
# Installing depends
|
||||||
Install_package
|
Install_package
|
||||||
|
|
||||||
|
@ -109,11 +112,22 @@ case "${LIVE_CHROOT_FILESYSTEM}" in
|
||||||
DU_DIM="`du -ks chroot/chroot | cut -f1`"
|
DU_DIM="`du -ks chroot/chroot | cut -f1`"
|
||||||
REAL_DIM="`expr ${DU_DIM} + ${DU_DIM} / 20`" # Just 5% more to be sure, need something more sophistcated here...
|
REAL_DIM="`expr ${DU_DIM} + ${DU_DIM} / 20`" # Just 5% more to be sure, need something more sophistcated here...
|
||||||
|
|
||||||
Chroot "genext2fs --size-in-blocks=${REAL_DIM} --reserved-blocks=0 --root=chroot filesystem.ext2"
|
case "${LIVE_CHROOT_BUILD}" in
|
||||||
|
enabled)
|
||||||
|
Chroot "genext2fs --size-in-blocks=${REAL_DIM} --reserved-blocks=0 --root=chroot filesystem.ext2"
|
||||||
|
|
||||||
# Move image
|
# Move image
|
||||||
mv chroot/filesystem.ext2 binary/${INITFS}
|
mv chroot/filesystem.ext2 binary/${INITFS}
|
||||||
rm -rf chroot/chroot
|
rm -rf chroot/chroot
|
||||||
|
;;
|
||||||
|
|
||||||
|
disabled)
|
||||||
|
genext2fs --size-in-blocks=${REAL_DIM} --reserved-blocks=0 --root=chroot binary/${INITFS}/filesystem.ext2
|
||||||
|
;;
|
||||||
|
esac
|
||||||
|
|
||||||
|
# Saving cache
|
||||||
|
Save_cache cache/packages_binary
|
||||||
|
|
||||||
# Removing depends
|
# Removing depends
|
||||||
Remove_package
|
Remove_package
|
||||||
|
@ -125,12 +139,23 @@ case "${LIVE_CHROOT_FILESYSTEM}" in
|
||||||
rm -rf binary/${INITFS}/filesystem.dir
|
rm -rf binary/${INITFS}/filesystem.dir
|
||||||
fi
|
fi
|
||||||
|
|
||||||
mv chroot/chroot binary/${INITFS}/filesystem.dir
|
case "${LIVE_CHROOT_BUILD}" in
|
||||||
|
enabled)
|
||||||
|
mv chroot/chroot binary/${INITFS}/filesystem.dir
|
||||||
|
;;
|
||||||
|
|
||||||
|
disabled)
|
||||||
|
cp -a chroot binary/${INITFS}/filesystem.dir
|
||||||
|
;;
|
||||||
|
esac
|
||||||
;;
|
;;
|
||||||
|
|
||||||
squashfs)
|
squashfs)
|
||||||
# Checking depends
|
# Checking depends
|
||||||
Check_package chroot/usr/sbin/mksquashfs squashfs-tools
|
Check_package chroot/usr/share/doc/squashfs-tools squashfs-tools
|
||||||
|
|
||||||
|
# Restoring cache
|
||||||
|
Restore_cache cache/packages_binary
|
||||||
|
|
||||||
# Installing depends
|
# Installing depends
|
||||||
Install_package
|
Install_package
|
||||||
|
@ -159,21 +184,32 @@ case "${LIVE_CHROOT_FILESYSTEM}" in
|
||||||
if [ -f config/binary_rootfs/squashfs.sort ]
|
if [ -f config/binary_rootfs/squashfs.sort ]
|
||||||
then
|
then
|
||||||
MKSQUASHFS_OPTIONS="${MKSQUASHFS_OPTIONS} -sort squashfs.sort"
|
MKSQUASHFS_OPTIONS="${MKSQUASHFS_OPTIONS} -sort squashfs.sort"
|
||||||
cp config/binary_rootfs/squashfs.sort chroot
|
cp config/binary_rootfs/squashfs.sort chroot #FIXME
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# Create image
|
case "${LIVE_CHROOT_BUILD}" in
|
||||||
Chroot "mksquashfs chroot filesystem.squashfs ${MKSQUASHFS_OPTIONS}"
|
enabled)
|
||||||
|
# Create image
|
||||||
|
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 chroot/squashfs.sort
|
${LH_ROOT_COMMAND} rm -rf chroot/chroot chroot/squashfs.sort
|
||||||
|
;;
|
||||||
|
|
||||||
|
disabled)
|
||||||
|
mksquashfs chroot binary/${INITFS}/filesystem.squashfs ${MKSQUASHFS_OPTIONS}
|
||||||
|
;;
|
||||||
|
esac
|
||||||
|
|
||||||
if [ -n "${LH_ROOT_COMMAND}" ]
|
if [ -n "${LH_ROOT_COMMAND}" ]
|
||||||
then
|
then
|
||||||
${LH_ROOT_COMMAND} chown -R `whoami`:`whoami` binary/${INITFS}
|
${LH_ROOT_COMMAND} chown -R `whoami`:`whoami` binary/${INITFS}
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
# Saving cache
|
||||||
|
Save_cache cache/packages_binary
|
||||||
|
|
||||||
# Removing depends
|
# Removing depends
|
||||||
Remove_package
|
Remove_package
|
||||||
;;
|
;;
|
||||||
|
@ -187,7 +223,7 @@ do
|
||||||
|
|
||||||
mkdir -p cache/stages_rootfs
|
mkdir -p cache/stages_rootfs
|
||||||
|
|
||||||
${LH_ROOT_COMMAND} cp -al binary/"${INITFS}"/filesystem.* cache/stages_rootfs
|
${LH_ROOT_COMMAND} cp -a binary/"${INITFS}"/filesystem.* cache/stages_rootfs
|
||||||
|
|
||||||
if [ -n "${LH_ROOT_COMMAND}" ]
|
if [ -n "${LH_ROOT_COMMAND}" ]
|
||||||
then
|
then
|
||||||
|
|
|
@ -60,6 +60,9 @@ Check_architecture amd64 i386
|
||||||
# Checking depends
|
# Checking depends
|
||||||
Check_package chroot/usr/bin/syslinux syslinux
|
Check_package chroot/usr/bin/syslinux syslinux
|
||||||
|
|
||||||
|
# Restoring cache
|
||||||
|
Restore_cache cache/packages_binary
|
||||||
|
|
||||||
# Installing depends
|
# Installing depends
|
||||||
Install_package
|
Install_package
|
||||||
|
|
||||||
|
@ -320,8 +323,18 @@ case "${LIVE_BINARY_IMAGES}" in
|
||||||
iso)
|
iso)
|
||||||
# Copying syslinux
|
# Copying syslinux
|
||||||
mkdir -p binary/isolinux
|
mkdir -p binary/isolinux
|
||||||
cp chroot/usr/lib/syslinux/isolinux.bin binary/isolinux
|
|
||||||
cp -r "${LIVE_TEMPLATES}"/syslinux/* binary/isolinux
|
case "${LIVE_CHROOT_BUILD}" in
|
||||||
|
enabled)
|
||||||
|
cp chroot/usr/lib/syslinux/isolinux.bin binary/isolinux
|
||||||
|
;;
|
||||||
|
|
||||||
|
disabled)
|
||||||
|
cp /usr/lib/syslinux/isolinux.bin binary/isolinux
|
||||||
|
;;
|
||||||
|
esac
|
||||||
|
|
||||||
|
cp -r "${TEMPLATES}"/* binary/isolinux
|
||||||
mv binary/isolinux/syslinux.cfg binary/isolinux/isolinux.cfg
|
mv binary/isolinux/syslinux.cfg binary/isolinux/isolinux.cfg
|
||||||
|
|
||||||
# Copying local configuration file
|
# Copying local configuration file
|
||||||
|
@ -380,9 +393,20 @@ case "${LIVE_BINARY_IMAGES}" in
|
||||||
|
|
||||||
net)
|
net)
|
||||||
# Copying syslinux
|
# Copying syslinux
|
||||||
cp chroot/usr/lib/syslinux/pxelinux.0 tftpboot
|
mkdir -p tftpboot
|
||||||
|
|
||||||
|
case "${LIVE_CHROOT_BUILD}" in
|
||||||
|
enabled)
|
||||||
|
cp chroot/usr/lib/syslinux/pxelinux.0 tftpboot
|
||||||
|
;;
|
||||||
|
|
||||||
|
disabled)
|
||||||
|
cp /usr/lib/syslinux/pxelinux.0 tftpboot
|
||||||
|
;;
|
||||||
|
esac
|
||||||
|
|
||||||
mkdir -p tftpboot/pxelinux.cfg
|
mkdir -p tftpboot/pxelinux.cfg
|
||||||
cp -r "${LIVE_TEMPLATES}"/syslinux/* tftpboot/pxelinux.cfg
|
cp -r "${TEMPLATES}"/* tftpboot/pxelinux.cfg
|
||||||
mv tftpboot/pxelinux.cfg/syslinux.cfg tftpboot/pxelinux.cfg/default
|
mv tftpboot/pxelinux.cfg/syslinux.cfg tftpboot/pxelinux.cfg/default
|
||||||
|
|
||||||
# Copying local configuration file
|
# Copying local configuration file
|
||||||
|
@ -439,8 +463,18 @@ case "${LIVE_BINARY_IMAGES}" in
|
||||||
|
|
||||||
# Copying syslinux
|
# Copying syslinux
|
||||||
mkdir -p "${DESTDIR}"
|
mkdir -p "${DESTDIR}"
|
||||||
cp chroot/usr/lib/syslinux/isolinux.bin "${DESTDIR}"/syslinux.bin
|
|
||||||
cp -r "${LIVE_TEMPLATES}"/syslinux/* "${DESTDIR}"
|
case "${LIVE_CHROOT_BUILD}" in
|
||||||
|
enabled)
|
||||||
|
cp chroot/usr/lib/syslinux/isolinux.bin "${DESTDIR}"/syslinux.bin
|
||||||
|
;;
|
||||||
|
|
||||||
|
disabled)
|
||||||
|
cp /usr/lib/syslinux/isolinux.bin "${DESTDIR}"/syslinux.bin
|
||||||
|
;;
|
||||||
|
esac
|
||||||
|
|
||||||
|
cp -r "${TEMPLATES}"/* "${DESTDIR}"
|
||||||
|
|
||||||
# Copying local configuration file
|
# Copying local configuration file
|
||||||
if [ -f config/binary_syslinux/syslinux.cfg ]
|
if [ -f config/binary_syslinux/syslinux.cfg ]
|
||||||
|
@ -472,7 +506,7 @@ case "${LIVE_BINARY_IMAGES}" in
|
||||||
sed -i -e "s/LIVE_VERSION/${VERSION}/" "${DESTDIR}"/f10.txt
|
sed -i -e "s/LIVE_VERSION/${VERSION}/" "${DESTDIR}"/f10.txt
|
||||||
|
|
||||||
# Workaround for syslinux (<< 3.36) which doesn't support long file/path names
|
# Workaround for syslinux (<< 3.36) which doesn't support long file/path names
|
||||||
if [ "${LIVE_DISTRIBUTION}" = "etch" ] && [ "`echo ${LIVE_LINUX_FLAVOURS} | wc -w`" -gt "1" ]
|
if [ "`echo ${LIVE_LINUX_FLAVOURS} | wc -w`" -gt "1" ]
|
||||||
then
|
then
|
||||||
NUMBER="0"
|
NUMBER="0"
|
||||||
|
|
||||||
|
@ -494,6 +528,9 @@ case "${LIVE_BINARY_IMAGES}" in
|
||||||
;;
|
;;
|
||||||
esac
|
esac
|
||||||
|
|
||||||
|
# Saving cache
|
||||||
|
Save_cache cache/packages_binary
|
||||||
|
|
||||||
# Removing depends
|
# Removing depends
|
||||||
Remove_package
|
Remove_package
|
||||||
|
|
||||||
|
|
|
@ -67,6 +67,9 @@ case "${LIVE_BOOTLOADER}" in
|
||||||
;;
|
;;
|
||||||
esac
|
esac
|
||||||
|
|
||||||
|
# Restoring cache
|
||||||
|
Restore_cache cache/packages_binary
|
||||||
|
|
||||||
# Installing depends
|
# Installing depends
|
||||||
Install_package
|
Install_package
|
||||||
|
|
||||||
|
@ -161,6 +164,9 @@ fi
|
||||||
|
|
||||||
mv chroot/binary.img ./
|
mv chroot/binary.img ./
|
||||||
|
|
||||||
|
# Saving cache
|
||||||
|
Save_cache cache/packages_binary
|
||||||
|
|
||||||
# Removing depends
|
# Removing depends
|
||||||
Remove_package
|
Remove_package
|
||||||
|
|
||||||
|
|
|
@ -60,6 +60,9 @@ Check_architecture powerpc ppc64
|
||||||
# Checking depends
|
# Checking depends
|
||||||
Check_package chroot/usr/lib/yaboot/yaboot yaboot
|
Check_package chroot/usr/lib/yaboot/yaboot yaboot
|
||||||
|
|
||||||
|
# Restoring cache
|
||||||
|
Restore_cache cache/packages_binary
|
||||||
|
|
||||||
# Installing depends
|
# Installing depends
|
||||||
Install_package
|
Install_package
|
||||||
|
|
||||||
|
@ -239,8 +242,18 @@ case "${LIVE_BINARY_IMAGES}" in
|
||||||
iso|usb-hdd)
|
iso|usb-hdd)
|
||||||
# Copying yaboot
|
# Copying yaboot
|
||||||
mkdir -p binary/yaboot
|
mkdir -p binary/yaboot
|
||||||
cp chroot/usr/lib/yaboot/yaboot binary/yaboot
|
|
||||||
cp -r "${LIVE_TEMPLATES}"/yaboot/* binary/yaboot
|
case "${LIVE_CHROOT_BUILD}" in
|
||||||
|
enabled)
|
||||||
|
cp chroot/usr/lib/yaboot/yaboot binary/yaboot
|
||||||
|
;;
|
||||||
|
|
||||||
|
disabled)
|
||||||
|
cp /usr/lib/yaboot/yaboot binary/yaboot
|
||||||
|
;;
|
||||||
|
esac
|
||||||
|
|
||||||
|
cp -r "${TEMPLATES}"/* binary/yaboot
|
||||||
|
|
||||||
if [ "${LIVE_BINARY_IMAGES}" = "usb-hdd" ]
|
if [ "${LIVE_BINARY_IMAGES}" = "usb-hdd" ]
|
||||||
then
|
then
|
||||||
|
@ -257,6 +270,9 @@ case "${LIVE_BINARY_IMAGES}" in
|
||||||
;;
|
;;
|
||||||
esac
|
esac
|
||||||
|
|
||||||
|
# Saving cache
|
||||||
|
Save_cache cache/packages_binary
|
||||||
|
|
||||||
# Removing depends
|
# Removing depends
|
||||||
Remove_package
|
Remove_package
|
||||||
|
|
||||||
|
|
|
@ -53,7 +53,7 @@ do
|
||||||
rm -rf chroot
|
rm -rf chroot
|
||||||
|
|
||||||
# Restoring old cache
|
# Restoring old cache
|
||||||
${LH_ROOT_COMMAND} cp -al cache/stages_bootstrap chroot
|
${LH_ROOT_COMMAND} cp -a cache/stages_bootstrap chroot
|
||||||
|
|
||||||
if [ -n "${LH_ROOT_COMMAND}" ]
|
if [ -n "${LH_ROOT_COMMAND}" ]
|
||||||
then
|
then
|
||||||
|
@ -83,7 +83,7 @@ do
|
||||||
|
|
||||||
mkdir -p cache
|
mkdir -p cache
|
||||||
|
|
||||||
${LH_ROOT_COMMAND} cp -al chroot cache/stages_bootstrap
|
${LH_ROOT_COMMAND} cp -a chroot cache/stages_bootstrap
|
||||||
|
|
||||||
if [ -n "${LH_ROOT_COMMAND}" ]
|
if [ -n "${LH_ROOT_COMMAND}" ]
|
||||||
then
|
then
|
||||||
|
|
|
@ -53,7 +53,7 @@ do
|
||||||
rm -rf chroot
|
rm -rf chroot
|
||||||
|
|
||||||
# Restoring old cache
|
# Restoring old cache
|
||||||
${LH_ROOT_COMMAND} cp -al cache/stages_chroot chroot
|
${LH_ROOT_COMMAND} cp -a cache/stages_chroot chroot
|
||||||
|
|
||||||
if [ -n "${LH_ROOT_COMMAND}" ]
|
if [ -n "${LH_ROOT_COMMAND}" ]
|
||||||
then
|
then
|
||||||
|
@ -83,7 +83,7 @@ do
|
||||||
|
|
||||||
mkdir -p cache
|
mkdir -p cache
|
||||||
|
|
||||||
${LH_ROOT_COMMAND} cp -al chroot cache/stages_chroot
|
${LH_ROOT_COMMAND} cp -a chroot cache/stages_chroot
|
||||||
|
|
||||||
if [ -n "${LH_ROOT_COMMAND}" ]
|
if [ -n "${LH_ROOT_COMMAND}" ]
|
||||||
then
|
then
|
||||||
|
|
|
@ -65,7 +65,7 @@ case "${1}" in
|
||||||
|
|
||||||
if [ "${PURGE}" != "true" ] && [ -d cache/stages_bootstrap ]
|
if [ "${PURGE}" != "true" ] && [ -d cache/stages_bootstrap ]
|
||||||
then
|
then
|
||||||
${LH_ROOT_COMMAND} cp -al cache/stages_bootstrap chroot
|
${LH_ROOT_COMMAND} cp -a cache/stages_bootstrap chroot
|
||||||
mkdir -p .stage
|
mkdir -p .stage
|
||||||
touch .stage/bootstrap
|
touch .stage/bootstrap
|
||||||
fi
|
fi
|
||||||
|
@ -79,6 +79,7 @@ case "${1}" in
|
||||||
rm -f binary.iso
|
rm -f binary.iso
|
||||||
rm -f binary.img
|
rm -f binary.img
|
||||||
rm -f binary*.tar.gz
|
rm -f binary*.tar.gz
|
||||||
|
rm -f binary.sh
|
||||||
|
|
||||||
rm -rf binary
|
rm -rf binary
|
||||||
rm -rf tftpboot
|
rm -rf tftpboot
|
||||||
|
|
|
@ -321,6 +321,11 @@ LIVE_BOOTAPPEND="${LIVE_BOOTAPPEND}"
|
||||||
# (Default: ${LIVE_BOOTLOADER})
|
# (Default: ${LIVE_BOOTLOADER})
|
||||||
LIVE_BOOTLOADER="${LIVE_BOOTLOADER}"
|
LIVE_BOOTLOADER="${LIVE_BOOTLOADER}"
|
||||||
|
|
||||||
|
# \${LIVE_CHROOT_BUILD: control if we build binary images chrooted
|
||||||
|
# (Default: ${LIVE_CHROOT_BUILD})
|
||||||
|
# DO NEVER, *NEVER*, *N*E*V*E*R* SET THIS OPTION to disabled.
|
||||||
|
LIVE_CHROOT_BUILD="${LIVE_CHROOT_BUILD}"
|
||||||
|
|
||||||
# \$LIVE_DEBIAN_INSTALLER: set debian-installer
|
# \$LIVE_DEBIAN_INSTALLER: set debian-installer
|
||||||
# (Default: ${LIVE_DEBIAN_INSTALLER})
|
# (Default: ${LIVE_DEBIAN_INSTALLER})
|
||||||
LIVE_DEBIAN_INSTALLER="${LIVE_DEBIAN_INSTALLER}"
|
LIVE_DEBIAN_INSTALLER="${LIVE_DEBIAN_INSTALLER}"
|
||||||
|
|
|
@ -59,7 +59,7 @@ fi
|
||||||
|
|
||||||
# Copy system configuration
|
# Copy system configuration
|
||||||
mkdir -p source/debian-live
|
mkdir -p source/debian-live
|
||||||
cp -al config source/debian-live
|
cp -a config source/debian-live
|
||||||
|
|
||||||
# Create tarball
|
# Create tarball
|
||||||
cd source
|
cd source
|
||||||
|
|
|
@ -1,46 +0,0 @@
|
||||||
Boot Parameters for Debian Live
|
|
||||||
-------------------------------
|
|
||||||
|
|
||||||
Updated for live-initramfs 1.91.3-1 on 2007-07-09.
|
|
||||||
|
|
||||||
These options (can be combined) work from the syslinux bootprompt:
|
|
||||||
|
|
||||||
live access=ACCESS
|
|
||||||
live console=TTY,SPEED
|
|
||||||
live hostname=HOSTNAME
|
|
||||||
live username=USER
|
|
||||||
live userfullname=USERFULLNAME
|
|
||||||
live integrity-check
|
|
||||||
live ip=[CLIENT_IP]:[SERVER_IP]:[GATEWAY_IP]:[NETMASK]:[HOSTNAME]:[DEVICE]:[AUTOCONF] [,[CLIENT_IP]:[SERVER_IP]:[GATEWAY_IP]:[NETMASK]:[HOSTNAME]:[DEVICE]:[AUTOCONF]]*
|
|
||||||
live ip[=frommedia]
|
|
||||||
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/locale}=LOCALE
|
|
||||||
live module=NAME
|
|
||||||
live netboot[=nfs|cifs]
|
|
||||||
live nfsopts=
|
|
||||||
live noautologin
|
|
||||||
live noxautologin
|
|
||||||
live nofastboot
|
|
||||||
live nopersistent
|
|
||||||
live nosudo
|
|
||||||
live noswap
|
|
||||||
live persistent
|
|
||||||
live {preseed/file|file}=FILE
|
|
||||||
live package/question=VALUE
|
|
||||||
live quickreboot
|
|
||||||
live showmounts
|
|
||||||
live timezone=TIMEZONE
|
|
||||||
live todisk=DEVICE
|
|
||||||
live toram
|
|
||||||
live union=unionfs|aufs
|
|
||||||
live xdebconf
|
|
||||||
live xvideomode=RESOLUTION
|
|
|
@ -13,7 +13,7 @@ aview mc nano-tiny qemacs-nox mg vim wdiff
|
||||||
dosfstools dvd+rw-tools e2fsprogs ext2resize genisoimage hdparm blktool ntfsprogs parted partimage reiserfsprogs secure-delete scsitools smartmontools testdisk wodim wipe xfsprogs
|
dosfstools dvd+rw-tools e2fsprogs ext2resize genisoimage hdparm blktool ntfsprogs parted partimage reiserfsprogs secure-delete scsitools smartmontools testdisk wodim wipe xfsprogs
|
||||||
|
|
||||||
## System
|
## System
|
||||||
dmidecode lshw pciutils procinfo read-edid sysutils usbutils
|
dmidecode lshw pciutils procinfo read-edid sysutils usbutils mcelog
|
||||||
|
|
||||||
## Browser
|
## Browser
|
||||||
lynx links2 w3m
|
lynx links2 w3m
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
.TH LH_BINARY 1 "09.07.2007" "1.0~a18" "live\-helper"
|
.TH LH_BINARY 1 "16.07.2007" "1.0~a19" "live\-helper"
|
||||||
|
|
||||||
.SH NAME
|
.SH NAME
|
||||||
lh_binary \- Meta\-Helper f\[:u]r lh_binary_*
|
lh_binary \- Meta\-Helper f\[:u]r lh_binary_*
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
.TH LH_BINARY 1 "2007\-07\-09" "1.0~a18" "live\-helper"
|
.TH LH_BINARY 1 "2007\-07\-16" "1.0~a19" "live\-helper"
|
||||||
|
|
||||||
.SH NAME
|
.SH NAME
|
||||||
lh_binary \- meta\-helper for lh_binary_*
|
lh_binary \- meta\-helper for lh_binary_*
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
.TH LH_BOOTSTRAP 1 "09.07.2007" "1.0~a18" "live\-helper"
|
.TH LH_BOOTSTRAP 1 "16.07.2007" "1.0~a19" "live\-helper"
|
||||||
|
|
||||||
.SH NAME
|
.SH NAME
|
||||||
lh_bootstrap \- Meta\-Helper f\[:u]r lh_bootstrap_*
|
lh_bootstrap \- Meta\-Helper f\[:u]r lh_bootstrap_*
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
.TH LH_BOOTSTRAP 1 "2007\-07\-09" "1.0~a18" "live\-helper"
|
.TH LH_BOOTSTRAP 1 "2007\-07\-16" "1.0~a19" "live\-helper"
|
||||||
|
|
||||||
.SH NAME
|
.SH NAME
|
||||||
lh_bootstrap \- meta\-helper for lh_bootstrap_*
|
lh_bootstrap \- meta\-helper for lh_bootstrap_*
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
.TH LH_BOOTSTRAP_CDEBOOTSTRAP 1 "09.07.2007" "1.0~a18" "live\-helper"
|
.TH LH_BOOTSTRAP_CDEBOOTSTRAP 1 "16.07.2007" "1.0~a19" "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)
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
.TH LH_BOOTSTRAP_CDEBOOTSTRAP 1 "2007\-07\-09" "1.0~a18" "live\-helper"
|
.TH LH_BOOTSTRAP_CDEBOOTSTRAP 1 "2007\-07\-16" "1.0~a19" "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)
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
.TH LH_BOOTSTRAP_DEBOOTSTRAP 1 "09.07.2007" "1.0~a18" "live\-helper"
|
.TH LH_BOOTSTRAP_DEBOOTSTRAP 1 "16.07.2007" "1.0~a19" "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)
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
.TH LH_BOOTSTRAP_DEBOOTSTRAP 1 "2007\-07\-09" "1.0~a18" "live\-helper"
|
.TH LH_BOOTSTRAP_DEBOOTSTRAP 1 "2007\-07\-16" "1.0~a19" "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)
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
.TH LH_BUILD 1 "09.07.2007" "1.0~a18" "live\-helper"
|
.TH LH_BUILD 1 "16.07.2007" "1.0~a19" "live\-helper"
|
||||||
|
|
||||||
.SH NAME
|
.SH NAME
|
||||||
lh_build \- erstellen eines Live-Systemes
|
lh_build \- erstellen eines Live-Systemes
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
.TH LH_BUILD 1 "2007\-07\-09" "1.0~a18" "live\-helper"
|
.TH LH_BUILD 1 "2007\-07\-16" "1.0~a19" "live\-helper"
|
||||||
|
|
||||||
.SH NAME
|
.SH NAME
|
||||||
lh_build \- building a live system
|
lh_build \- building a live system
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
.TH LH_CHROOT 1 "09.07.2007" "1.0~a18" "live\-helper"
|
.TH LH_CHROOT 1 "16.07.2007" "1.0~a19" "live\-helper"
|
||||||
|
|
||||||
.SH NAME
|
.SH NAME
|
||||||
lh_chroot \- Meta\-Helper f\[:u]r lh_chroot_*
|
lh_chroot \- Meta\-Helper f\[:u]r lh_chroot_*
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
.TH LH_CHROOT 1 "2007\-07\-09" "1.0~a18" "live\-helper"
|
.TH LH_CHROOT 1 "2007\-07\-16" "1.0~a19" "live\-helper"
|
||||||
|
|
||||||
.SH NAME
|
.SH NAME
|
||||||
lh_chroot \- meta\-helper for lh_chroot_*
|
lh_chroot \- meta\-helper for lh_chroot_*
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
.TH LH_CLEAN 1 "09.07.2007" "1.0~a18" "live\-helper"
|
.TH LH_CLEAN 1 "16.07.2007" "1.0~a19" "live\-helper"
|
||||||
|
|
||||||
.SH NAME
|
.SH NAME
|
||||||
lh_clean \- r\[:a]umt das Build-Verzeichnis auf
|
lh_clean \- r\[:a]umt das Build-Verzeichnis auf
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
.TH LH_CLEAN 1 "2007\-07\-09" "1.0~a18" "live\-helper"
|
.TH LH_CLEAN 1 "2007\-07\-16" "1.0~a19" "live\-helper"
|
||||||
|
|
||||||
.SH NAME
|
.SH NAME
|
||||||
lh_clean \- clean up system build directories
|
lh_clean \- clean up system build directories
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
.TH LH_SOURCE 1 "09.07.2007" "1.0~a18" "live\-helper"
|
.TH LH_SOURCE 1 "16.07.2007" "1.0~a19" "live\-helper"
|
||||||
|
|
||||||
.SH NAME
|
.SH NAME
|
||||||
lh_source \- Meta\-Helper f\[:u]r lh_source_*
|
lh_source \- Meta\-Helper f\[:u]r lh_source_*
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
.TH LH_SOURCE 1 "2007\-07\-09" "1.0~a18" "live\-helper"
|
.TH LH_SOURCE 1 "2007\-07\-16" "1.0~a19" "live\-helper"
|
||||||
|
|
||||||
.SH NAME
|
.SH NAME
|
||||||
lh_source \- meta\-helper for lh_source_*
|
lh_source \- meta\-helper for lh_source_*
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
.TH LH_TESTROOT 1 "09.07.2007" "1.0~a18" "live\-helper"
|
.TH LH_TESTROOT 1 "16.07.2007" "1.0~a19" "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
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
.TH LH_TESTROOT 1 "2007\-07\-09" "1.0~a18" "live\-helper"
|
.TH LH_TESTROOT 1 "2007\-07\-16" "1.0~a19" "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
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
.TH LIVE\-HELPER 7 "09.07.2007" "1.0~a18" "live\-helper"
|
.TH LIVE\-HELPER 7 "16.07.2007" "1.0~a19" "live\-helper"
|
||||||
|
|
||||||
.SH NAME
|
.SH NAME
|
||||||
live\-helper \- Debian Live Helper-Programme
|
live\-helper \- Debian Live Helper-Programme
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
.TH LIVE\-HELPER 7 "2007\-07\-09" "1.0~a18" "live\-helper"
|
.TH LIVE\-HELPER 7 "2007\-07\-16" "1.0~a19" "live\-helper"
|
||||||
|
|
||||||
.SH NAME
|
.SH NAME
|
||||||
live\-helper \- Debian Live helper programs
|
live\-helper \- Debian Live helper programs
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
.TH MAKE\-LIVE 1 "09.07.2007" "1.0~a18" "live\-helper"
|
.TH MAKE\-LIVE 1 "16.07.2007" "1.0~a19" "live\-helper"
|
||||||
|
|
||||||
.SH NAME
|
.SH NAME
|
||||||
make\-live \- erstellt ein Debian Live-System
|
make\-live \- erstellt ein Debian Live-System
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
.TH MAKE\-LIVE 1 "2007\-07\-09" "1.0~a18" "live\-helper"
|
.TH MAKE\-LIVE 1 "2007\-07\-16" "1.0~a19" "live\-helper"
|
||||||
|
|
||||||
.SH NAME
|
.SH NAME
|
||||||
make\-live \- build a Debian Live system
|
make\-live \- build a Debian Live system
|
||||||
|
|
Loading…
Reference in New Issue