Package: live-build
Version: 5.0~a2-1
Tags: patch

As discussed in the mailing list [1], when the user supplies a set of
packages to install in their local config, a list of these packages is
generated for installation purposes; but while the chroot stage
chroot_install-packages script processes and deletes this list, it gets
recreated in the installer stage, and never deleted, thus it incorrectly
ends up in the final live OS filesystem image.

Patch attached to correct this.

This will require the addition of the #775989 patch to ensure it always
works.

1]1 https://lists.debian.org/debian-live/2015/01/msg00192.html
commit 0d38493e85f616b32a28e8971146991f64b317a0
Author: jnqnfe <jnq...@gmail.com>
Date:   Thu Jan 22 12:39:22 2015 +0000

    Ensure chroot/root/packages.chroot package list is removed

diff --git a/scripts/build/chroot_archives b/scripts/build/chroot_archives
index 8c2e192..82810c2 100755
--- a/scripts/build/chroot_archives
+++ b/scripts/build/chroot_archives
@@ -802,6 +802,9 @@ EOF
                        Chroot chroot apt-key del ${_LB_LOCAL_KEY_EMAIL}
                fi
 
+               # Ensure package list is removed
+               rm -f chroot/root/packages.chroot
+
                # Removing stage file
                rm -f .build/chroot_archives
                ;;

Reply via email to