diff options
author | Daniel Baumann <daniel@debian.org> | 2009-02-13 10:17:29 +0100 |
---|---|---|
committer | Daniel Baumann <daniel@debian.org> | 2011-03-09 19:09:42 +0100 |
commit | 9a8304d03b6b8e006b9e6187eb47199b1f2cab96 (patch) | |
tree | bce083e0406f2f9d5f65127184567993f548de55 /helpers | |
parent | b405a9d58fda5913426f8d82aa48626d8c268c62 (diff) | |
download | vyos-live-build-9a8304d03b6b8e006b9e6187eb47199b1f2cab96.tar.gz vyos-live-build-9a8304d03b6b8e006b9e6187eb47199b1f2cab96.zip |
Adding new setting for binary indices: If set to none, no indices are included at all.
Diffstat (limited to 'helpers')
-rwxr-xr-x | helpers/lh_chroot_sources | 16 | ||||
-rwxr-xr-x | helpers/lh_config | 2 |
2 files changed, 7 insertions, 11 deletions
diff --git a/helpers/lh_chroot_sources b/helpers/lh_chroot_sources index 51716d1c7..d5e640ce3 100755 --- a/helpers/lh_chroot_sources +++ b/helpers/lh_chroot_sources @@ -403,16 +403,12 @@ case "${1}" in rm -rf chroot/var/cache/apt mkdir -p chroot/var/cache/apt/archives/partial - for LIST in ${LH_PACKAGES_LISTS} - do - case "${LIST}" in - stripped|minimal) - # Cleaning apt package lists - rm -rf chroot/var/lib/apt/lists - mkdir -p chroot/var/lib/apt/lists/partial - ;; - esac - done + # Cleaning apt package lists + if [ "${LH_BINARY_INDICES}" = "none" ] + then + rm -rf chroot/var/lib/apt/lists + mkdir -p chroot/var/lib/apt/lists/partial + fi # Remove local package repository rm -rf chroot/root/local-packages diff --git a/helpers/lh_config b/helpers/lh_config index 4b4118699..6e6a330a6 100755 --- a/helpers/lh_config +++ b/helpers/lh_config @@ -38,7 +38,7 @@ USAGE="${PROGRAM} [--apt apt|aptitude]\n\ \t [-a|--architecture ARCHITECTURE]\n\ \t [-b|--binary-images iso|net|tar|usb-hdd]\n\ \t [--binary-filesystem fat16|fat32]\n\ -\t [--binary-indices enabled|disabled]\n\ +\t [--binary-indices enabled|disabled|none]\n\ \t [--bootappend-install PARAMETER|\"PARAMETERS\"]\n\ \t [--bootappend-live PARAMETER|\"PARAMETERS\"]\n\ \t [--bootloader grub|syslinux|yaboot]\n\ |