Package: live-helper Version: 1.0.1-1 Severity: wishlist Tags: patch
I'm interested in file exclusion mecanism when building Debian Live filesystem from chroot. I've looked at 1.0.0-2 live-helper version about using "-wildcards" to mksquashfs to achieve this, but it is used only when LH_CHROOT_BUILD=disabled. I use the default value of this parameter, "enabled" (I don't understand what it stands for), and I see in config : # ${LH_CHROOT_BUILD: control if we build binary images chrooted # (Default: enabled) # DO NEVER, *NEVER*, *N*E*V*E*R* SET THIS OPTION to disabled. LH_CHROOT_BUILD="enabled" So I didn't change it. Instead, I've modified a bit the other mecanism set to exclude file in Debian Live filesystem generation to also support wildcards, so that it works wichever LH_CHROOT_BUILD's value. -- Package-specific info: -- System Information: Debian Release: 4.0 APT prefers etch APT policy: (990, 'etch'), (990, 'stable'), (800, 'unstable'), (800, 'testing') Architecture: i386 (i686) Shell: /bin/sh linked to /bin/bash Kernel: Linux 2.6.24-svi Locale: LANG=fr_FR.UTF-8, LC_CTYPE=fr_FR.UTF-8 (charmap=UTF-8) Versions of packages live-helper depends on: ii cdebootstrap 0.3.15 Bootstrap a Debian system ii debootstrap 0.3.3.2etch1 Bootstrap a basic Debian system ii gettext-base 0.16.1-1 GNU Internationalization utilities live-helper recommends no packages. -- no debconf information
--- /root/lh_binary_rootfs.normal 2008-09-26 10:50:37.000000000 +0200 +++ /usr/bin/lh_binary_rootfs 2008-09-26 15:09:53.000000000 +0200 @@ -94,7 +94,7 @@ if [ -f config/binary_rootfs/excludes ] then cp config/binary_rootfs/excludes chroot/chroot/excludes - chroot chroot/chroot /usr/bin/env -i xargs --arg-file=/excludes rm -rf + chroot chroot/chroot /usr/bin/env -i xargs --verbose --arg-file=/excludes -I FILE bash -c 'rm -rf FILE' rm -f chroot/chroot/excludes fi