diff options
author | Daniel Baumann <daniel@debian.org> | 2008-08-16 03:15:40 +0200 |
---|---|---|
committer | Daniel Baumann <daniel@debian.org> | 2008-08-16 03:15:40 +0200 |
commit | 5a5ee8d1520c2ec2e53018d0cc08da938f7ad661 (patch) | |
tree | 6354c93f127c94492261d245c2f47a88e07c6392 | |
parent | bdc4ff6457437eaaaccc80fc44c70dee0af8f5bf (diff) | |
download | vyos-live-build-5a5ee8d1520c2ec2e53018d0cc08da938f7ad661.tar.gz vyos-live-build-5a5ee8d1520c2ec2e53018d0cc08da938f7ad661.zip |
Preserve changed apt settings (pdiffs, recommends, and secure) in binary image (Closes: #494640).
-rwxr-xr-x | helpers/lh_chroot_apt | 15 |
1 files changed, 12 insertions, 3 deletions
diff --git a/helpers/lh_chroot_apt b/helpers/lh_chroot_apt index a7a12d803..111adb969 100755 --- a/helpers/lh_chroot_apt +++ b/helpers/lh_chroot_apt @@ -162,16 +162,25 @@ case "${1}" in rm -f chroot/etc/apt/apt.conf.d/00http-proxy # Deconfiguring aptitude pdiffs - rm -f chroot/etc/apt/apt.conf.d/00pdiffs + if [ "${LH_APT_PDIFFS}" = "enabled" ] + then + rm -f chroot/etc/apt/apt.conf.d/00pdiffs + fi # Deconfiguring aptitude pipeline rm -f chroot/etc/apt/apt.conf.d/00pipeline # Deconfiguring aptitude recommends - rm -f chroot/etc/apt/apt.conf.d/00recommends + if [ "${LH_APT_RECOMMENDS}" = "enabled" ] + then + rm -f chroot/etc/apt/apt.conf.d/00recommends + fi # Deconfiguring aptitude secure - rm -f chroot/etc/apt/apt.conf.d/00secure + if [ "${LH_APT_SECURE}" = "enabled" ] + then + rm -f chroot/etc/apt/apt.conf.d/00secure + fi # Deconfiguring apt preferences if [ -f chroot/etc/apt/preferences.orig ] |