Hotplug doesn't ignore *.dpkg-old in /etc/hotplug/blacklist.d/

Bug #20611 reported by Thomas Hood
4
Affects Status Importance Assigned to Milestone
hotplug (Debian)
Fix Released
Unknown
hotplug (Ubuntu)
Fix Released
Medium
Scott James Remnant (Canonical)

Bug Description

$ ls /etc/hotplug/blacklist.d
alsa-base libsane libsane.dpkg-old linux-sound-base_noOSS

but hotplug does not ignore .dpkg-old files in /etc/hotplug/blacklist.d/
(Debian bug #299205)

Revision history for this message
In , Marco d'Itri (md) wrote : Re: Bug#299205: Backup files in blacklist.d not ignored

tag 299205 wontfix
thanks

On Mar 12, Thomas Hood <email address hidden> wrote:

> This processes _all_ the files in $HOTPLUG_DIR/blacklist.d/ without
> ignoring those that are backup files, e.g., foo.dpkg-old. The
> hotplug package avoids this sort of problem in other cases by requiring
> a special file suffix. It may be too late to require such a suffix for
> names of files in blacklist.d. Perhaps "run-parts --list" can be used
> to obtain the list of active files in the directory instead of shell
> glob.
I refuse to spawn yet another program in this path, which is already too
slow. I have no plan to fix this.

--
ciao,
Marco

Revision history for this message
In , Thomas Hood (jdthood-yahoo) wrote : submitter
Download full text (3.4 KiB)

submitter 281275 Thomas Hood <email address hidden>
submitter 281360 Thomas Hood <email address hidden>
submitter 291197 Thomas Hood <email address hidden>
submitter 291580 Thomas Hood <email address hidden>
submitter 292343 Thomas Hood <email address hidden>
submitter 292751 Thomas Hood <email address hidden>
submitter 294378 Thomas Hood <email address hidden>
submitter 299205 Thomas Hood <email address hidden>
submitter 302583 Thomas Hood <email address hidden>
submitter 302658 Thomas Hood <email address hidden>
submitter 309454 Thomas Hood <email address hidden>
submitter 313369 Thomas Hood <email address hidden>
submitter 314949 Thomas Hood <email address hidden>
submitter 317007 Thomas Hood <email address hidden>
submitter 317749 Thomas Hood <email address hidden>
submitter 317919 Thomas Hood <email address hidden>
submitter 318568 Thomas Hood <email address hidden>
submitter 113146 Thomas Hood <email address hidden>
submitter 279631 Thomas Hood <email address hidden>
submitter 292967 Thomas Hood <email address hidden>
submitter 292977 Thomas Hood <email address hidden>
submitter 292994 Thomas Hood <email address hidden>
submitter 292996 Thomas Hood <email address hidden>
submitter 293047 Thomas Hood <email address hidden>
submitter 293053 Thomas Hood <email address hidden>
submitter 294758 Thomas Hood <email address hidden>
submitter 294765 Thomas Hood <email address hidden>
submitter 294767 Thomas Hood <email address hidden>
submitter 301278 Thomas Hood <email address hidden>
submitter 302350 Thomas Hood <email address hidden>
submitter 302436 Thomas Hood <email address hidden>
submitter 302514 Thomas Hood <email address hidden>
submitter 303373 Thomas Hood <email address hidden>
submitter 303379 Thomas Hood <email address hidden>
submitter 304984 Thomas Hood <email address hidden>
submitter 307556 Thomas Hood <email address hidden>
submitter 310376 Thomas Hood <email address hidden>
submitter 313341 Thomas Hood <email address hidden>
submitter 314300 Thomas Hood <email address hidden>
submitter 314910 Thomas Hood <email address hidden>
submitter 314911 Thomas Hood <email address hidden>
submitter 315031 Thomas Hood <email address hidden>
submitter 316981 Thomas Hood <email address hidden>
submitter 318955 Thomas Hood <email address hidden>
submitter 283755 Thomas Hood <email address hidden>
submitter 293579 Thomas Hood <email address hidden>
submitter 294962 Thomas Hood <email address hidden>
submitter 303874 Thomas Hood <email address hidden>
submitter 308677 Thomas Hood <email address hidden>
submitter 314293 Thomas Hood <email address hidden>
submitter 318637 Thomas Hood <email address hidden>
submitter 319739 Thomas Hood <email address hidden>
submitter 296131 Thomas Hood <email address hidden>
submitter 289008 Thomas Hood <email address hidden>
submitter 314908 Thomas Hood <email address hidden>
submitter 316099 Thomas Hood <email address hidden>
submitter 314951 Thomas Hood <email address hidden>
submitter 318857 Thomas Hood <email address hidden>
submitter 321238 Thomas Hood <email address hidden>
submitter 310168 Thomas Hood <email address hidden>
submitter 313402 Thomas Hood <email address hidden>
submitter 290946 Thomas Hood <email address hidden>
submitter 292983 Thomas Hood <jdthood@...

Read more...

Revision history for this message
Thomas Hood (jdthood) wrote :

$ ls /etc/hotplug/blacklist.d
alsa-base libsane libsane.dpkg-old linux-sound-base_noOSS

but hotplug does not ignore .dpkg-old files in /etc/hotplug/blacklist.d/
(Debian bug #299205)

Revision history for this message
Scott James Remnant (Canonical) (canonical-scott) wrote :

Yeah, hotplug needs fixing *sigh*

Revision history for this message
Debian Bug Importer (debzilla) wrote :

Message-Id: <20050312153249.3E20110D591@localhost>
Date: Sat, 12 Mar 2005 16:32:48 +0100
From: Thomas Hood <email address hidden>
To: Debian Bug Tracking System <email address hidden>
Subject: Backup files in blacklist.d not ignored

Package: hotplug
Version: 0.0.20040329-17
Severity: normal

/etc/hotplug/hotplug.functions:

    if grep -q "^$(echo $MODULE|sed -e 's/[-_]/[-_]/g')\$" $HOTPLUG_DIR/blacklist $HOTPLUG_DIR/blacklist.d/* >/dev/null 2>&1; then

This processes _all_ the files in $HOTPLUG_DIR/blacklist.d/ without
ignoring those that are backup files, e.g., foo.dpkg-old. The
hotplug package avoids this sort of problem in other cases by requiring
a special file suffix. It may be too late to require such a suffix for
names of files in blacklist.d. Perhaps "run-parts --list" can be used
to obtain the list of active files in the directory instead of shell
glob.

-- System Information:
Debian Release: 3.1
  APT prefers testing
  APT policy: (500, 'testing'), (50, 'unstable'), (1, 'experimental')
Architecture: i386 (i686)
Kernel: Linux 2.6.10
Locale: LANG=en_IE@euro, LC_CTYPE=en_IE@euro (charmap=ISO-8859-15)

Versions of packages hotplug depends on:
ii debconf 1.4.32 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.27-0.1 Linux module utilities
ii procps 1:3.2.3-1 The /proc file system utilities

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

Revision history for this message
Debian Bug Importer (debzilla) wrote :

Message-ID: <email address hidden>
Date: Sat, 12 Mar 2005 16:56:27 +0100
From: <email address hidden> (Marco d'Itri)
To: Thomas Hood <email address hidden>, <email address hidden>
Cc: <email address hidden>
Subject: Re: Bug#299205: Backup files in blacklist.d not ignored

--tThc/1wpZn/ma/RB
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

tag 299205 wontfix
thanks

On Mar 12, Thomas Hood <email address hidden> wrote:

> This processes _all_ the files in $HOTPLUG_DIR/blacklist.d/ without
> ignoring those that are backup files, e.g., foo.dpkg-old. The
> hotplug package avoids this sort of problem in other cases by requiring
> a special file suffix. It may be too late to require such a suffix for
> names of files in blacklist.d. Perhaps "run-parts --list" can be used
> to obtain the list of active files in the directory instead of shell
> glob.
I refuse to spawn yet another program in this path, which is already too
slow. I have no plan to fix this.

--=20
ciao,
Marco

--tThc/1wpZn/ma/RB
Content-Type: application/pgp-signature; name="signature.asc"
Content-Description: Digital signature
Content-Disposition: inline

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

iD8DBQFCMxErFGfw2OHuP7ERAjVLAKCAS4HRrPfQhFqB3AXn4AZtrCUNBwCdFglW
5DutU5lophvOF1KiFZtBHAM=
=HYBq
-----END PGP SIGNATURE-----

--tThc/1wpZn/ma/RB--

Revision history for this message
Debian Bug Importer (debzilla) wrote :
Download full text (3.6 KiB)

Message-ID: <email address hidden>
Date: Fri, 19 Aug 2005 14:18:51 +0200
From: Thomas Hood <email address hidden>
To: <email address hidden>
Subject: submitter

submitter 281275 Thomas Hood <email address hidden>
submitter 281360 Thomas Hood <email address hidden>
submitter 291197 Thomas Hood <email address hidden>
submitter 291580 Thomas Hood <email address hidden>
submitter 292343 Thomas Hood <email address hidden>
submitter 292751 Thomas Hood <email address hidden>
submitter 294378 Thomas Hood <email address hidden>
submitter 299205 Thomas Hood <email address hidden>
submitter 302583 Thomas Hood <email address hidden>
submitter 302658 Thomas Hood <email address hidden>
submitter 309454 Thomas Hood <email address hidden>
submitter 313369 Thomas Hood <email address hidden>
submitter 314949 Thomas Hood <email address hidden>
submitter 317007 Thomas Hood <email address hidden>
submitter 317749 Thomas Hood <email address hidden>
submitter 317919 Thomas Hood <email address hidden>
submitter 318568 Thomas Hood <email address hidden>
submitter 113146 Thomas Hood <email address hidden>
submitter 279631 Thomas Hood <email address hidden>
submitter 292967 Thomas Hood <email address hidden>
submitter 292977 Thomas Hood <email address hidden>
submitter 292994 Thomas Hood <email address hidden>
submitter 292996 Thomas Hood <email address hidden>
submitter 293047 Thomas Hood <email address hidden>
submitter 293053 Thomas Hood <email address hidden>
submitter 294758 Thomas Hood <email address hidden>
submitter 294765 Thomas Hood <email address hidden>
submitter 294767 Thomas Hood <email address hidden>
submitter 301278 Thomas Hood <email address hidden>
submitter 302350 Thomas Hood <email address hidden>
submitter 302436 Thomas Hood <email address hidden>
submitter 302514 Thomas Hood <email address hidden>
submitter 303373 Thomas Hood <email address hidden>
submitter 303379 Thomas Hood <email address hidden>
submitter 304984 Thomas Hood <email address hidden>
submitter 307556 Thomas Hood <email address hidden>
submitter 310376 Thomas Hood <email address hidden>
submitter 313341 Thomas Hood <email address hidden>
submitter 314300 Thomas Hood <email address hidden>
submitter 314910 Thomas Hood <email address hidden>
submitter 314911 Thomas Hood <email address hidden>
submitter 315031 Thomas Hood <email address hidden>
submitter 316981 Thomas Hood <email address hidden>
submitter 318955 Thomas Hood <email address hidden>
submitter 283755 Thomas Hood <email address hidden>
submitter 293579 Thomas Hood <email address hidden>
submitter 294962 Thomas Hood <email address hidden>
submitter 303874 Thomas Hood <email address hidden>
submitter 308677 Thomas Hood <email address hidden>
submitter 314293 Thomas Hood <email address hidden>
submitter 318637 Thomas Hood <email address hidden>
submitter 319739 Thomas Hood <email address hidden>
submitter 296131 Thomas Hood <email address hidden>
submitter 289008 Thomas Hood <email address hidden>
submitter 314908 Thomas Hood <email address hidden>
submitter 316099 Thomas Hood <email address hidden>
submitter 314951 Thomas Hood <email address hidden>
submitter 318857 Thomas Hood <email address hidden>
submitter 321238 Thomas Hood <email address hidden>
submitter 3101...

Read more...

Revision history for this message
Scott James Remnant (Canonical) (canonical-scott) wrote :

It's an interesting point that with udev, we won't be doing any form of module
blacklisting ... we should think about that a bit -- modprobe $MODALIAS may not
be quite enough, we'd have to make sure we still have support for blacklisting
things.

Revision history for this message
Scott James Remnant (Canonical) (canonical-scott) wrote :

hotplug doesn't exist, and modprobe doesn't use those files.

Revision history for this message
Thomas Hood (jdthood) wrote :

(In reply to comment #6)
> hotplug doesn't exist, and modprobe doesn't use those files.

In Debian modprobe does respect hotplug blacklist files. Is Dapper different?

Revision history for this message
Scott James Remnant (Canonical) (canonical-scott) wrote :

(In reply to comment #7)
> (In reply to comment #6)
> > hotplug doesn't exist, and modprobe doesn't use those files.
>
> In Debian modprobe does respect hotplug blacklist files. Is Dapper different?
>
Yes, see ubuntu-devel-announce post for the full details, but in summary we're
not supporting the old-format files until Beta because we want to make sure
nothing in Ubuntu itself relies on them; and the easiest way is to break things.

For beta, we may re-enable the files, or convert them automatically... I'm
increasingly leaning towards the latter because it's a simple enough process and
if we can automate it, it's better for our users.

Revision history for this message
Thomas Hood (jdthood) wrote :

I have just updated linux-sound-base (in svn) so that it generates
modprobe blacklist files as well as hotplug and discover blacklist
files. The latter could probably be removed, but I'll do that later.

--
Thomas Hood

Revision history for this message
In , Martin Michlmayr (tbm) wrote : Removed

This package has been removed from Debian unstable. I'm therefore
closing this bug report. The package has been removed because it
has been superseded by udev. It's quite unlikely that your bug still
exists in udev, but if it does, please let me know.

--
Martin Michlmayr
http://www.cyrius.com/

Changed in hotplug:
status: Confirmed → Fix Released
Revision history for this message
In , Debbugs Internal Request (owner-bugs) wrote : Internal Control

# A New Hope
# A log time ago, in a galaxy far, far away
# something happened.
#
# Magically this resulted in the following
# action being taken, but this fake control
# message doesn't tell you why it happened
#
# The action:
# Bug archived.
thanks
# This fakemail brought to you by your local debbugs
# administrator

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.