[Piuparts-devel] Bug#440183: Bug#440183: Bug#440183: piuparts: wrongly complains if processes are running inside chroot

Lucas Nussbaum lucas at lucas-nussbaum.net
Thu Aug 30 18:04:12 UTC 2007


On 30/08/07 at 19:16 +0200, Ana Guerrero wrote:
> On Thu, Aug 30, 2007 at 06:40:08PM +0300, Lars Wirzenius wrote:
> > to, 2007-08-30 kello 15:45 +0200, Lucas Nussbaum kirjoitti:
> > > During an upgrade test, in the second chroot (the one used to install
> > > the package):
> > > - piuparts installs the package to test in etch
> > > - piuparts upgrades the chroot
> > > - piuparts tests for running processes <-- THIS IS WRONG!
> > > - piuparts removes and purges packages
> > > 
> > > Testing for running processes after the upgrade is wrong. If the package
> > > is a daemon, or depends on daemons, of course, it will still be running
> > > after the upgrade! It should only test for running processes after the
> > > purge.
> > 
> > Unless things have changed since I last looked at piuparts in detail,
> > which they of course may well have done, 
> 
> Well, it has more features now, but I have to say it has not changed 
> dramatically.
> 
> >it is wrong for any processes
> > to exist in the chroot, after a package is installed, since piuparts
> > does its best to prevent daemons from starting up at all. Thus, I would
> > not classify this as a bug in piuparts.
> 
> I concur with Lars here. Plus, I can not reproduce this problem with ud,
> log attached.

OK, my chroot didn't have /usr/sbin/policy-rc.d, which explains. It
would be great if piuparts would check if that file exists, especially
for people using chroots from other tools (sbuild, pbuilder, etc).

Also, I'm not sure that it's a good idea to not start daemons: how are
you going to check that they are properly stopped when the package is
removed?
-- 
| Lucas Nussbaum
| lucas at lucas-nussbaum.net   http://www.lucas-nussbaum.net/ |
| jabber: lucas at nussbaum.fr             GPG: 1024D/023B3F4F |




More information about the Piuparts-devel mailing list