diff options
author | Daniel Baumann <daniel@debian.org> | 2007-09-23 10:04:41 +0200 |
---|---|---|
committer | Daniel Baumann <daniel@debian.org> | 2007-09-23 10:04:41 +0200 |
commit | 9be72d4e6933c6ec0c611d75d53a9dfd8dbf676e (patch) | |
tree | ec480b64ed7197038b63eebb23f2b9f1829408c3 /helpers | |
parent | cee1de85c8b7c3576ae9a899a0f9a6482f7c339f (diff) | |
download | live-build-9be72d4e6933c6ec0c611d75d53a9dfd8dbf676e.zip live-build-9be72d4e6933c6ec0c611d75d53a9dfd8dbf676e.tar.gz |
Adding live-package 0.99.24-1.
Diffstat (limited to 'helpers')
-rwxr-xr-x | helpers/lh_configapt | 5 | ||||
-rwxr-xr-x | helpers/lh_debootstrap | 7 | ||||
-rwxr-xr-x | helpers/lh_genrootfs | 7 | ||||
-rwxr-xr-x | helpers/lh_installapt | 2 | ||||
-rwxr-xr-x | helpers/lh_installlinux | 11 |
5 files changed, 20 insertions, 12 deletions
diff --git a/helpers/lh_configapt b/helpers/lh_configapt index 81ff23a..cf8a91f 100755 --- a/helpers/lh_configapt +++ b/helpers/lh_configapt @@ -19,6 +19,11 @@ case "${1}" in apply-recommends) # Configure recommends + if [ ! -d "${LIVE_CHROOT}"/etc/apt/apt.conf.d ] + then + mkdir -p "${LIVE_CHROOT}"/etc/apt/apt.conf.d + fi + if [ "${LIVE_RECOMMENDS}" = "yes" ] then echo "Aptitude::Recommends-Important \"true\";" > "${LIVE_CHROOT}"/etc/apt/apt.conf.d/00make-live_recommends.conf diff --git a/helpers/lh_debootstrap b/helpers/lh_debootstrap index 738179b..fd43b16 100755 --- a/helpers/lh_debootstrap +++ b/helpers/lh_debootstrap @@ -8,7 +8,12 @@ then mkdir -p "${LIVE_CHROOT}" fi - debootstrap --arch="${LIVE_ARCHITECTURE}" --variant=buildd "${LIVE_DISTRIBUTION}" "${LIVE_CHROOT}" "${LIVE_MIRROR}" + if [ -n "${LIVE_BOOTSTRAP_CONFIG}" ]; + then + LIVE_DEBOOTSTRAP_SCRIPT="/usr/lib/debootstrap/scripts/${LIVE_BOOTSTRAP_CONFIG}" + fi + + debootstrap --arch="${LIVE_ARCHITECTURE}" --variant=buildd "${LIVE_DISTRIBUTION}" "${LIVE_CHROOT}" "${LIVE_MIRROR}" "${LIVE_DEBOOTSTRAP_SCRIPT}" # Touching stage file if [ ! -d "${LIVE_ROOT}"/.stage ] diff --git a/helpers/lh_genrootfs b/helpers/lh_genrootfs index 9ba4b31..5853ed2 100755 --- a/helpers/lh_genrootfs +++ b/helpers/lh_genrootfs @@ -47,7 +47,12 @@ case "${LIVE_FILESYSTEM}" in rm "${LIVE_ROOT}"/binary/casper/filesystem.squashfs fi - mksquashfs "${LIVE_CHROOT}" "${LIVE_ROOT}"/binary/casper/filesystem.squashfs + if [ "${LIVE_FLAVOUR}" = "minimal" ] || [ "${LIVE_FLAVOUR}" = "mini" ] + then + mksquashfs "${LIVE_CHROOT}" "${LIVE_ROOT}"/binary/casper/filesystem.squashfs -e "${LIVE_CHROOT}"/boot/vmlinuz* "${LIVE_CHROOT}"/boot/initrd.img* "${LIVE_CHROOT}"/vmlinuz "${LIVE_CHROOT}"/initrd.img "${LIVE_CHROOT}"/boot/config-* "${LIVE_CHROOT}"/boot/System.map-* + else + mksquashfs "${LIVE_CHROOT}" "${LIVE_ROOT}"/binary/casper/filesystem.squashfs + fi if [ -n "$LIVE_ENCRYPTION" ] then diff --git a/helpers/lh_installapt b/helpers/lh_installapt index 024303d..ec19931 100755 --- a/helpers/lh_installapt +++ b/helpers/lh_installapt @@ -23,7 +23,7 @@ then if [ -n "${REPOSITORY_KEYRING}" ] then - lh_chroot "aptiude install ${REPOSITORY_KEYRING}" + lh_chroot "aptitude install ${REPOSITORY_KEYRING}" elif [ -n "${REPOSITORY_KEY}" ] then lh_chroot "wget ${REPOSITORY_KEY}" diff --git a/helpers/lh_installlinux b/helpers/lh_installlinux index 40897d8..24dd7d1 100755 --- a/helpers/lh_installlinux +++ b/helpers/lh_installlinux @@ -21,12 +21,5 @@ case "${1}" in esac # Installing linux image -if [ "${LIVE_FLAVOUR}" = "minimal" ] || [ "${LIVE_FLAVOUR}" = "mini" ] -then - mv "${LIVE_CHROOT}"/boot/vmlinuz* "${DESTDIR}"/vmlinuz - mv "${LIVE_CHROOT}"/boot/initrd.img* "${DESTDIR}"/initrd.gz - rm -f "${LIVE_CHROOT}"/vmlinuz "${LIVE_CHROOT}"/initrd.img -else - cp "${LIVE_CHROOT}"/boot/vmlinuz* "${DESTDIR}"/vmlinuz - cp "${LIVE_CHROOT}"/boot/initrd.img* "${DESTDIR}"/initrd.gz -fi +cp "${LIVE_CHROOT}"/boot/vmlinuz* "${DESTDIR}"/vmlinuz +cp "${LIVE_CHROOT}"/boot/initrd.img* "${DESTDIR}"/initrd.gz |