Debian Bug report logs - #297705
hotplug fails on purge

version graph

Package: hotplug; Maintainer for hotplug is (unknown);

Reported by: Rasmus B Hansen <moffe@smaug.amagerkollegiet.dk>

Date: Wed, 2 Mar 2005 12:18:01 UTC

Severity: normal

Found in version 0.0.20040329-17

Fixed in version hotplug/0.0.20040329-20

Done: Marco d'Itri <md@linux.it>

Bug is archived. No further changes may be made.

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to debian-bugs-dist@lists.debian.org, Fumitoshi UKAI <ukai@debian.or.jp>:
Bug#297705; Package hotplug. (full text, mbox, link).


Acknowledgement sent to Rasmus B Hansen <moffe@smaug.amagerkollegiet.dk>:
New Bug report received and forwarded. Copy sent to Fumitoshi UKAI <ukai@debian.or.jp>. (full text, mbox, link).


Message #5 received at submit@bugs.debian.org (full text, mbox, reply):

From: Rasmus B Hansen <moffe@smaug.amagerkollegiet.dk>
To: Debian Bug Tracking System <submit@bugs.debian.org>
Subject: hotplug fails on purge
Date: Wed, 02 Mar 2005 13:05:45 +0100
Package: hotplug
Version: 0.0.20040329-17
Severity: normal


hotplug fails on postrm with purge:

---
7812-smaug:~# apt-get remove --purge hotplug
Reading Package Lists... Done
Building Dependency Tree... Done
The following packages will be REMOVED:
  hotplug*
0 upgraded, 0 newly installed, 1 to remove and 0 not upgraded.
Need to get 0B of archives.
After unpacking 393kB disk space will be freed.
Do you want to continue? [Y/n]
(Reading database ... 22313 files and directories currently installed.)
Removing hotplug ...
Purging configuration files for hotplug ...
rmdir: `/etc/hotplug/.run/': No such file or directory
rmdir: `/etc/hotplug/': No such file or directory
dpkg: error processing hotplug (--purge):
 subprocess post-removal script returned error exit status 1
Errors were encountered while processing:
 hotplug
E: Sub-process /usr/bin/dpkg returned an error code (1)
---

The directories mentioned by rmdir does not exist. udev was never
installed on this machine (sarge).

Removing the offending rmdir in /var/lib/dpkg/info/hotplug.postrm makes
the package uninstall and purge cleanly.

Regards
/Rasmus

-- System Information:
Debian Release: 3.1
  APT prefers testing
  APT policy: (500, 'testing')
Architecture: i386 (i686)
Kernel: Linux 2.6.11
Locale: LANG=en_DK, LC_CTYPE=en_DK (charmap=ISO-8859-1)

Versions of packages hotplug depends on:
ii  debconf                      1.4.30.11   Debian configuration management sy
ii  grep                         2.5.1.ds1-4 GNU grep, egrep and fgrep
ii  module-init-tools            3.2-pre1-2  tools for managing Linux kernel mo
ii  modutils                     2.4.26-1.2  Linux module utilities
ii  procps                       1:3.2.1-2   The /proc file system utilities

-- debconf information:
* hotplug/ignore_pci_class_display: false
* hotplug/net_agent_policy: hotplug
* hotplug/static_module_list:
  hotplug/x11_usbmice_hack: false



Information forwarded to debian-bugs-dist@lists.debian.org, Fumitoshi UKAI <ukai@debian.or.jp>:
Bug#297705; Package hotplug. (full text, mbox, link).


Acknowledgement sent to Thomas Hood <jdthood@aglu.demon.nl>:
Extra info received and forwarded to list. Copy sent to Fumitoshi UKAI <ukai@debian.or.jp>. (full text, mbox, link).


Message #10 received at 297705@bugs.debian.org (full text, mbox, reply):

From: Thomas Hood <jdthood@aglu.demon.nl>
To: 297705@bugs.debian.org
Subject: rmdir not needed
Date: Sat, 12 Mar 2005 15:56:54 +0100
The postrm includes:

       rmdir --ignore-fail-on-non-empty /etc/hotplug/.run/ /etc/hotplug/

These directories are included in the package and therefore should not
be removed in the postrm; dpkg will take care of them.

While we are on the subject ...

I would actually prefer it if /etc/hotplug/.run/ were not included in
the package but were handled the way ifupdown handles /etc/network/run/.
This entails deleting it in the postrm and creating it in the postinst
if it is not already a directory or symlink; and creating the target of
the symlink both in the postinst and in the initscript prior to the
point in time at which the directory is used.

-- 
Thomas Hood <jdthood@aglu.demon.nl>




Information forwarded to debian-bugs-dist@lists.debian.org, Fumitoshi UKAI <ukai@debian.or.jp>:
Bug#297705; Package hotplug. (full text, mbox, link).


Acknowledgement sent to md@Linux.IT (Marco d'Itri):
Extra info received and forwarded to list. Copy sent to Fumitoshi UKAI <ukai@debian.or.jp>. (full text, mbox, link).


Message #15 received at 297705@bugs.debian.org (full text, mbox, reply):

From: md@Linux.IT (Marco d'Itri)
To: Thomas Hood <jdthood@aglu.demon.nl>, 297705@bugs.debian.org
Subject: Re: Bug#297705: rmdir not needed
Date: Sat, 12 Mar 2005 16:13:42 +0100
[Message part 1 (text/plain, inline)]
On Mar 12, Thomas Hood <jdthood@aglu.demon.nl> wrote:

> The postrm includes:
> 
>        rmdir --ignore-fail-on-non-empty /etc/hotplug/.run/ /etc/hotplug/
> 
> These directories are included in the package and therefore should not
> be removed in the postrm; dpkg will take care of them.
/etc/default/hotplug and /etc/hotplug/.run/net.enable are deleted in
postrm too, so dpkg cannot unlink the directories because when it tries
to do it they are not empty.

> I would actually prefer it if /etc/hotplug/.run/ were not included in
> the package but were handled the way ifupdown handles /etc/network/run/.
Why?

-- 
ciao,
Marco
[signature.asc (application/pgp-signature, inline)]

Information forwarded to debian-bugs-dist@lists.debian.org, Fumitoshi UKAI <ukai@debian.or.jp>:
Bug#297705; Package hotplug. (full text, mbox, link).


Acknowledgement sent to Thomas Hood <jdthood@aglu.demon.nl>:
Extra info received and forwarded to list. Copy sent to Fumitoshi UKAI <ukai@debian.or.jp>. (full text, mbox, link).


Message #20 received at 297705@bugs.debian.org (full text, mbox, reply):

From: Thomas Hood <jdthood@aglu.demon.nl>
To: 297705@bugs.debian.org
Subject: Re: Bug#297705: rmdir not needed
Date: Sat, 12 Mar 2005 16:52:07 +0100
On Sat, 2005-03-12 at 16:13 +0100, Marco d'Itri wrote:
> /etc/default/hotplug and /etc/hotplug/.run/net.enable are deleted in
> postrm too, so dpkg cannot unlink the directories because when it tries
> to do it they are not empty.


dpkg removes the directories after the postrm runs.


> > I would actually prefer it if /etc/hotplug/.run/ were not included in
> > the package but were handled the way ifupdown handles /etc/network/run/.
> Why?


So that /etc/hotplug/.run can be a symlink to /dev/shm/hotplug .

-- 
Thomas Hood <jdthood@aglu.demon.nl>




Information forwarded to debian-bugs-dist@lists.debian.org, Fumitoshi UKAI <ukai@debian.or.jp>:
Bug#297705; Package hotplug. (full text, mbox, link).


Acknowledgement sent to md@Linux.IT (Marco d'Itri):
Extra info received and forwarded to list. Copy sent to Fumitoshi UKAI <ukai@debian.or.jp>. (full text, mbox, link).


Message #25 received at 297705@bugs.debian.org (full text, mbox, reply):

From: md@Linux.IT (Marco d'Itri)
To: Thomas Hood <jdthood@aglu.demon.nl>, 297705@bugs.debian.org
Subject: Re: Bug#297705: rmdir not needed
Date: Sat, 12 Mar 2005 18:10:21 +0100
[Message part 1 (text/plain, inline)]
On Mar 12, Thomas Hood <jdthood@aglu.demon.nl> wrote:

> > /etc/default/hotplug and /etc/hotplug/.run/net.enable are deleted in
> > postrm too, so dpkg cannot unlink the directories because when it tries
> > to do it they are not empty.
> dpkg removes the directories after the postrm runs.
People on #debian-devel disagree too.

> > > I would actually prefer it if /etc/hotplug/.run/ were not included in
> > > the package but were handled the way ifupdown handles /etc/network/run/.
> > Why?
> So that /etc/hotplug/.run can be a symlink to /dev/shm/hotplug .
Please send a patch (which should also move /etc/hotplug/.run/ to
/dev/shm/).

-- 
ciao,
Marco
[signature.asc (application/pgp-signature, inline)]

Information forwarded to debian-bugs-dist@lists.debian.org, Fumitoshi UKAI <ukai@debian.or.jp>:
Bug#297705; Package hotplug. (full text, mbox, link).


Acknowledgement sent to Thomas Hood <jdthood@aglu.demon.nl>:
Extra info received and forwarded to list. Copy sent to Fumitoshi UKAI <ukai@debian.or.jp>. (full text, mbox, link).


Message #30 received at 297705@bugs.debian.org (full text, mbox, reply):

From: Thomas Hood <jdthood@aglu.demon.nl>
To: 297705@bugs.debian.org
Subject: Re: Bug#297705: rmdir not needed
Date: Sat, 12 Mar 2005 18:31:12 +0100
On Sat, 2005-03-12 at 18:10 +0100, Marco d'Itri wrote:
> People on #debian-devel disagree too.


Try it.  I did.


> > > > I would actually prefer it if /etc/hotplug/.run/ were not included in
> > > > the package but were handled the way ifupdown handles /etc/network/run/.
> > > Why?
> > So that /etc/hotplug/.run can be a symlink to /dev/shm/hotplug .
> Please send a patch (which should also move /etc/hotplug/.run/ to
> /dev/shm/).


I don't mind preparing a patch.  Note that /dev/shm/ can't be used on
devfs systems, which is one reason why we have been making the location
of run directories configurable by means of symlinks.
-- 
Thomas Hood <jdthood@aglu.demon.nl>




Information forwarded to debian-bugs-dist@lists.debian.org, Fumitoshi UKAI <ukai@debian.or.jp>:
Bug#297705; Package hotplug. (full text, mbox, link).


Acknowledgement sent to Thomas Hood <jdthood@aglu.demon.nl>:
Extra info received and forwarded to list. Copy sent to Fumitoshi UKAI <ukai@debian.or.jp>. (full text, mbox, link).


Message #35 received at 297705@bugs.debian.org (full text, mbox, reply):

From: Thomas Hood <jdthood@aglu.demon.nl>
To: 297705@bugs.debian.org
Subject: But woody's dpkg _was_ broken in this respect
Date: Sat, 12 Mar 2005 18:45:07 +0100
I think that directory removal by dpkg may have been broken in woody
(whose dpkg was version 1.9.21); perhaps that has to be taken into
account.

dpkg (1.10.11) unstable; urgency=low

  * Anthony Towns <aj@azure.humbug.org.au>:
    Retry removing empty dirs during purge.  Closes: #112386

-- 
Thomas Hood <jdthood@aglu.demon.nl>




Information forwarded to debian-bugs-dist@lists.debian.org, Fumitoshi UKAI <ukai@debian.or.jp>:
Bug#297705; Package hotplug. (full text, mbox, link).


Acknowledgement sent to md@Linux.IT (Marco d'Itri):
Extra info received and forwarded to list. Copy sent to Fumitoshi UKAI <ukai@debian.or.jp>. (full text, mbox, link).


Message #40 received at 297705@bugs.debian.org (full text, mbox, reply):

From: md@Linux.IT (Marco d'Itri)
To: Thomas Hood <jdthood@aglu.demon.nl>, 297705@bugs.debian.org
Subject: Re: Bug#297705: But woody's dpkg _was_ broken in this respect
Date: Sat, 12 Mar 2005 19:47:21 +0100
[Message part 1 (text/plain, inline)]
On Mar 12, Thomas Hood <jdthood@aglu.demon.nl> wrote:

> I think that directory removal by dpkg may have been broken in woody
> (whose dpkg was version 1.9.21); perhaps that has to be taken into
> account.
Yes, this explains it. I will remove the rmdirs from all of my packages
post-sarge.

-- 
ciao,
Marco
[signature.asc (application/pgp-signature, inline)]

Information forwarded to debian-bugs-dist@lists.debian.org, Fumitoshi UKAI <ukai@debian.or.jp>:
Bug#297705; Package hotplug. (full text, mbox, link).


Acknowledgement sent to jdthood@aglu.demon.nl:
Extra info received and forwarded to list. Copy sent to Fumitoshi UKAI <ukai@debian.or.jp>. (full text, mbox, link).


Message #45 received at 297705@bugs.debian.org (full text, mbox, reply):

From: jdthood@aglu.demon.nl
To: 297705@bugs.debian.org, 297705-submitter@bugs.debian.org
Subject: Fixed?
Date: Wed, 16 Mar 2005 08:55:42 GMT
I believe that this was fixed in 0.0.20040329-18:

Changes: 
 hotplug (0.0.20040329-18) unstable; urgency=high
 .
   * workaound fix to load firmware problem for sarge release.
     closes: Bug#297481, Bug#299154
     /sbin/hotplug may have potential problem in hotplug event multiplexing,
     but /sbin/udevsend has grave problem in firmware loading in old kernel,
     so I add workaround fix to this.
     Recommends upgrade kernel 2.6.10 or later.
   * fix purge problem in
hotplug.postrm.




Message sent on to Rasmus B Hansen <moffe@smaug.amagerkollegiet.dk>:
Bug#297705. (full text, mbox, link).


Information forwarded to debian-bugs-dist@lists.debian.org, Fumitoshi UKAI <ukai@debian.or.jp>:
Bug#297705; Package hotplug. (full text, mbox, link).


Acknowledgement sent to moffe@zz9.dk (Rasmus Bøg Hansen):
Extra info received and forwarded to list. Copy sent to Fumitoshi UKAI <ukai@debian.or.jp>. (full text, mbox, link).


Message #53 received at 297705@bugs.debian.org (full text, mbox, reply):

From: moffe@zz9.dk (Rasmus Bøg Hansen)
To: jdthood@aglu.demon.nl
Cc: 297705@bugs.debian.org
Subject: Re: Bug#297705: Fixed?
Date: Wed, 16 Mar 2005 14:07:46 +0100
jdthood@aglu.demon.nl hit the keyboard.
Afterwards the following was on the screen:

> I believe that this was fixed in 0.0.20040329-18:

It sure is. I just tried purging - I got a warning about
/etc/hotplug/.run did not exist, but the uninstall proceeded just
fine.

Regards
/Rasmus

-- 
-- [ Rasmus "Møffe" Bøg Hansen ] ---------------------------------------
A surplus means there'll be money left over.
Otherwise, it wouldn't be called a surplus.
----------------------------------------------[ moffe at zz9 dot dk ] --




Reply sent to Marco d'Itri <md@linux.it>:
You have taken responsibility. (full text, mbox, link).


Notification sent to Rasmus B Hansen <moffe@smaug.amagerkollegiet.dk>:
Bug acknowledged by developer. (full text, mbox, link).


Message #58 received at 297705-close@bugs.debian.org (full text, mbox, reply):

From: Marco d'Itri <md@linux.it>
To: 297705-close@bugs.debian.org
Subject: Bug#297705: fixed in hotplug 0.0.20040329-20
Date: Sun, 20 Mar 2005 09:32:10 -0500
Source: hotplug
Source-Version: 0.0.20040329-20

We believe that the bug you reported is fixed in the latest version of
hotplug, which is due to be installed in the Debian FTP archive:

hotplug_0.0.20040329-20.diff.gz
  to pool/main/h/hotplug/hotplug_0.0.20040329-20.diff.gz
hotplug_0.0.20040329-20.dsc
  to pool/main/h/hotplug/hotplug_0.0.20040329-20.dsc
hotplug_0.0.20040329-20_all.deb
  to pool/main/h/hotplug/hotplug_0.0.20040329-20_all.deb



A summary of the changes between this version and the previous one is
attached.

Thank you for reporting the bug, which will now be closed.  If you
have further comments please address them to 297705@bugs.debian.org,
and the maintainer will reopen the bug report if appropriate.

Debian distribution maintenance software
pp.
Marco d'Itri <md@linux.it> (supplier of updated hotplug package)

(This message was generated automatically at their request; if you
believe that there is a problem with it please contact the archive
administrators by mailing ftpmaster@debian.org)


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Format: 1.7
Date: Sun, 20 Mar 2005 15:04:42 +0100
Source: hotplug
Binary: hotplug
Architecture: source all
Version: 0.0.20040329-20
Distribution: unstable
Urgency: medium
Maintainer: Fumitoshi UKAI <ukai@debian.or.jp>
Changed-By: Marco d'Itri <md@linux.it>
Description: 
 hotplug    - Linux Hotplug Scripts
Closes: 272947 295738 296640 297226 297705 298353 299215 299946 300113
Changes: 
 hotplug (0.0.20040329-20) unstable; urgency=medium
 .
   * Fixed postrm failure when removing already removed directories.
     (Closes: #297705)
   * Sort the modules in the debconf question, patch by Sean Finney.
     (Closes: #295738)
   * Added patch scsi.agent_cleanup implementing support for loading the sg
     driver and the blacklist check. (Closes: #272947)
     Also added a scsi.rc script, by Jeff Bailey of Ubuntu.
   * Added versioned dependencies on bash and sed. (Closes: #300113, #299946)
   * Removed patch pci_agent_removers, because $DEVPATH does not exist
     anymore after a device has been removed. (Closes: #298353)
     (Actually this was a patch to usb.agent.)
   * Consolidated the patches 010_load_drivers_module_name,
     013_load_drivers_check_module_dup, 014_load_drivers_blacklist_dir and
     052_module_name_for_blacklist in the new patch 010_functions_misc.
     This also fixes another -/_ mismatch in modules names. (Closes: #299215)
   * Removed patch 007_more_logging which has been merged in
     015_load_drivers_mesg_format.
   * Added de4x5 and am53c974 to the blacklist. (See: #294867, #296199)
   * Modified postinst to add an example of the QUIET variable to
     /etc/default/hotplug if not present. (Closes: #297226)
   * Fixed an init script bug which made it ignore scripts not in $RC_ORDER.
   * Moved net.rc to a new init script hotplug-net run at S41.
     (Closes: #296640)
   * Removed the useless workaround introduced in -18.
Files: 
 e96913e4bad1b78d991bd32ba97aa1b9 668 admin standard hotplug_0.0.20040329-20.dsc
 d86d4092cd7a20e83ad019d19b5f459a 48963 admin standard hotplug_0.0.20040329-20.diff.gz
 b744d1521fc5a04aa19022084ac9f3d7 67594 admin standard hotplug_0.0.20040329-20_all.deb

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.0 (GNU/Linux)

iD8DBQFCPYUDFGfw2OHuP7ERAmp5AJ9j2MR1XX5mUZCRz3clWtUmLROGNQCfT5WZ
KT2Hmkr7AVqC7WiGKEwvEtI=
=Huc6
-----END PGP SIGNATURE-----




Send a report that this bug log contains spam.


Debian bug tracking system administrator <owner@bugs.debian.org>. Last modified: Fri Jan 23 19:50:27 2026; Machine Name: buxtehude

Debian Bug tracking system

Debbugs is free software and licensed under the terms of the GNU General Public License version 2. The current version can be obtained from https://bugs.debian.org/debbugs-source/.

Copyright © 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson, 2005-2017 Don Armstrong, and many other contributors.