Bug#500677: live-helper: update lh_binary_rootfs to better support wildcards in file exclusion

2008-10-12 Thread Daniel Baumann
tags 500677 +pending
thanks

applied in git, thanks ;)

-- 
Address:Daniel Baumann, Burgunderstrasse 3, CH-4562 Biberist
Email:  [EMAIL PROTECTED]
Internet:   http://people.panthera-systems.net/~daniel-baumann/



-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]



Bug#500677: live-helper: update lh_binary_rootfs to better support wildcards in file exclusion

2008-09-30 Thread Frederic Boiteux
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  cdebootstrap0.3.15   Bootstrap a Debian system
ii  debootstrap 0.3.3.2etch1 Bootstrap a basic Debian system
ii  gettext-base0.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.0 +0200
+++ /usr/bin/lh_binary_rootfs   2008-09-26 15:09:53.0 +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
 


Bug#500677: live-helper: update lh_binary_rootfs to better support wildcards in file exclusion

2008-09-30 Thread Daniel Baumann
Frederic Boiteux wrote:
 about using -wildcards to mksquashfs to achieve this, but it is used only
 when LH_CHROOT_BUILD=disabled.

...because if you build chrooted, you can just remove the files, since
the 'temporary' chroot inside the chroot to generate the rootfs is
trashed right after creating the rootfs image anyway.

 I use the default value of this
 parameter, enabled (I don't understand what it stands for)

it controls wheter the host systems tools are used to generate the
rootfs or not.

if you're using the host systems tools, you are possibly tainting the
image if you the host system is not the exact same distribution as the
target system is.

 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.

i'll have a look at that in the evening.

-- 
Address:Daniel Baumann, Burgunderstrasse 3, CH-4562 Biberist
Email:  [EMAIL PROTECTED]
Internet:   http://people.panthera-systems.net/~daniel-baumann/



-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]



Bug#500677: live-helper: update lh_binary_rootfs to better support wildcards in file exclusion

2008-09-30 Thread Frédéric BOITEUX
Le mar 30 sep 2008 13:56:50 CEST, Daniel Baumann [EMAIL PROTECTED] a
écrit :

 Frederic Boiteux wrote:
  about using -wildcards to mksquashfs to achieve this, but it is used only
  when LH_CHROOT_BUILD=disabled.
 
 ...because if you build chrooted, you can just remove the files, since
 the 'temporary' chroot inside the chroot to generate the rootfs is
 trashed right after creating the rootfs image anyway.
ok.

  I use the default value of this
  parameter, enabled (I don't understand what it stands for)
 
 it controls wheter the host systems tools are used to generate the
 rootfs or not.
 
 if you're using the host systems tools, you are possibly tainting the
 image if you the host system is not the exact same distribution as the
 target system is.
It was the missing information, thanks ! I'll indeed keep this parameter
with enabled, as I sometimes generate Live systems for other
distributions.

 
  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.
 
 i'll have a look at that in the evening.

I've tested here succesfully.

  with regards,
Fred.



--
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]