[Piuparts-devel] Bug#466049: piuparts: when called with -b, no policy-rc.d in second chroot

Patrick Schoenfeld schoenfeld at debian.org
Tue Dec 8 15:09:41 UTC 2009


Tags 466049 patch
thanks

Hi,

Marc Haber wrote:
> I think that
> piuparts -a -b piuparts.tar.gz -d etch -d lenny torrus-apache does the
> following:
> 
> (1) unpack tarball
> (2) create exit 101 policy-rc.d
> (3) upgrade etch
> (4) dist-upgrade lenny
> (5) unpack tarball a second time in a second directory
> (6) do not create policy-rc.d

Right. The point is, that after unpacking the tarball a second time
the functions that setup a chroot for use after unpacking are not
called. Thats probably because the chroot is created 'manually' instead
of calling the appropriate function chroot.create().

I'm not exactly sure if replacing that code with a call for chroot.create()
as I now did is the way to go. Holger, would be good if you have a look
at the responding code anyway if this works out.

Best Regards,
Patrick





More information about the Piuparts-devel mailing list