hotplug: Hotplug is not FHS-compliant

Bug #6783 reported by Debian Bug Importer
6
Affects Status Importance Assigned to Milestone
hotplug (Debian)
Fix Released
Unknown
hotplug (Ubuntu)
Fix Released
Medium
Unassigned

Bug Description

Automatically imported from Debian bug report #245100
http://bugs.debian.org/245100

Revision history for this message
In , Marco d'Itri (md) wrote : tagging 243117, tagging 245100

# Automatically generated email from bts, devscripts version 2.7.95.1
tags 243117 pending
tags 245100 pending

Revision history for this message
In , Peter HAWKINS (phawkins-trinity) wrote : Non-FHS compliance is a serious problem with hotplug.

severity 245100 serious
tags 245100 + sarge sid
thanks

Hi...

The hotplug scripts do not conform to the FHS, which is a policy
violation and therefore a serious bug. The specific problem that I was
having was on a box with an NFS root filesystem:

Starting hotplug subsystem:
   input
   net
   pci
     ignore pci display device on 03:0e.0
   usb
/etc/hotplug/usb.rc: line 1: wc: command not found
/etc/hotplug/usb.rc: line 224: [: -lt: unary operator expected
/etc/hotplug/usb.rc: line 1: which: command not found

The reason for this is very simple:
$ which which
/usr/bin/which
$ which wc
/usr/bin/wc

but /usr is NOT mounted when the hotplug scripts are running!

You cannot use anything from /usr during system boot!

=)
Peter

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

Automatically imported from Debian bug report #245100
http://bugs.debian.org/245100

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

Message-Id: <email address hidden>
Date: Fri, 02 Apr 2004 20:46:16 +0800
From: John <email address hidden>
To: Debian Bug Tracking System <email address hidden>
Subject: hotplug: Hotplug is not FHS-compliant

Package: hotplug
Version: N/A; reported 2004-04-02
Severity: normal

This does not apply specically to the system I'm reporting from. I'm
installing a wireless card, and was horrified to find that its firmware
is expected to be someplace under /usr.

Chap 3 of FHS 2.3 begins:
 Chapter 3. The Root Filesystem
 Purpose

 The contents of the root filesystem must be adequate to boot,
 restore, recover, and/or repair the system.

To be able to perform all these functions you may equire a working
network in order to NFS-mount /usr, working USB/firewire to mount a
memory drive and so on.

If the firmware for some critical device is inaccessible, you simply
cannot perform these critical functions. See
http://www.pathname.com/fhs/pub/fhs-2.3.html#THEROOTFILESYSTEM.

This is why the kernel modules, fdisk etc are in /lib, /bin or /sbin and
why libc is in /lib and not /usr/lib.

-- System Information
Debian Release: testing/unstable
Architecture: i386
Kernel: Linux Dolphin 2.4.18-686 #1 Sun Apr 14 11:32:47 EST 2002 i686
Locale: LANG=C, LC_CTYPE=C

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

Message-Id: <email address hidden>
Date: Sun, 6 Jun 2004 18:29:51 +0200
From: Marco d'Itri <email address hidden>
To: <email address hidden>
Subject: tagging 243117, tagging 245100

# Automatically generated email from bts, devscripts version 2.7.95.1
tags 243117 pending
tags 245100 pending

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

Message-ID: <email address hidden>
Date: Wed, 23 Jun 2004 10:19:46 +1000
From: <email address hidden> (Peter HAWKINS)
To: <email address hidden>
Cc: <email address hidden>
Subject: Non-FHS compliance is a serious problem with hotplug.

severity 245100 serious
tags 245100 + sarge sid
thanks

Hi...

The hotplug scripts do not conform to the FHS, which is a policy
violation and therefore a serious bug. The specific problem that I was
having was on a box with an NFS root filesystem:

Starting hotplug subsystem:
   input
   net
   pci
     ignore pci display device on 03:0e.0
   usb
/etc/hotplug/usb.rc: line 1: wc: command not found
/etc/hotplug/usb.rc: line 224: [: -lt: unary operator expected
/etc/hotplug/usb.rc: line 1: which: command not found

The reason for this is very simple:
$ which which
/usr/bin/which
$ which wc
/usr/bin/wc

but /usr is NOT mounted when the hotplug scripts are running!

You cannot use anything from /usr during system boot!

=)
Peter

Revision history for this message
In , Marco d'Itri (md) wrote : Bug#245100: fixed in hotplug 0.0.20040329-9
Download full text (3.2 KiB)

Source: hotplug
Source-Version: 0.0.20040329-9

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-9.diff.gz
  to pool/main/h/hotplug/hotplug_0.0.20040329-9.diff.gz
hotplug_0.0.20040329-9.dsc
  to pool/main/h/hotplug/hotplug_0.0.20040329-9.dsc
hotplug_0.0.20040329-9_all.deb
  to pool/main/h/hotplug/hotplug_0.0.20040329-9_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 <email address hidden>,
and the maintainer will reopen the bug report if appropriate.

Debian distribution maintenance software
pp.
Marco d'Itri <email address hidden> (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 <email address hidden>)

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

Format: 1.7
Date: Sat, 26 Jun 2004 15:04:09 +0200
Source: hotplug
Binary: hotplug
Architecture: source all
Version: 0.0.20040329-9
Distribution: unstable
Urgency: medium
Maintainer: Fumitoshi UKAI <email address hidden>
Changed-By: Marco d'Itri <email address hidden>
Description:
 hotplug - Linux Hotplug Scripts
Closes: 242012 243117 243702 244337 244510 244615 244617 244954 245100 246074 246765 246911 247658 247972 248836 249170 249457 249542 249600 250513
Changes:
 hotplug (0.0.20040329-9) unstable; urgency=medium
 .
   * Added support for boot time synthesis of isapnp events.
   * patches/blacklist: added usbmouse and usbkbd. closes: Bug#242012
   * patches/blacklist: added all watchdog drivers. closes: Bug#249600
   * hotplug.postinst: do not fail when $STATIC_MODULE_LIST contains a slash.
     closes: #248836
   * Conflict with alsa-base << 1.0.4-2, which blacklists OSS drivers.
     closes: #246765
   * patches/hotplug.functions_typo: fix a typo. closes: #246911
   * New/updated debconf translations: ru, tr, de, ja.
     closes: #250513, #246074, #244510, #244337
   * Search for firmwares in /lib/firmware/ too, to allow firmware loading
     before /usr has been mounted. closes: #245100
   * patches/pci_agent_direct: in pci.rc, call pci.agent instead of
     /sbin/hotplug. closes: #243117
   * patches/050_net.agent_ifupdown updated with new code from Thomas Hood
     to fix many issues in network interfaces handling.
     closes: #244615, #244617, #244954, #249542, #249170
   * Rearranged the messages printed by the init script in the hope they
     will be less confusing. closes: #247658, #247972, #249457
   * patches/012_usb.rc_no_usbmodules: do not depend on the usbmodules
     program when using 2.6 kernels. closes: #243702
Files:
 5b4ff2afa391433a079f26f7d6435202 671 admin standard hotplug_0.0.20040329-9.dsc
 b76173f287d63e9e15a7c28f2cd1a0f9 38521 admin standard hotplug_0.0.20040329-9.diff.gz
 8a9d932c0d1e08bc66d5ceb08a81d9f1 59256 admin standard hotplug_0.0.20040329-9_all.deb

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

iD8DBQFA3bPjFGfw2OHuP7ERAh4EAJ4ugP9KlSt6pWV7IyfHcK76cU...

Read more...

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

Message-Id: <email address hidden>
Date: Sat, 26 Jun 2004 13:47:04 -0400
From: Marco d'Itri <email address hidden>
To: <email address hidden>
Subject: Bug#245100: fixed in hotplug 0.0.20040329-9

Source: hotplug
Source-Version: 0.0.20040329-9

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-9.diff.gz
  to pool/main/h/hotplug/hotplug_0.0.20040329-9.diff.gz
hotplug_0.0.20040329-9.dsc
  to pool/main/h/hotplug/hotplug_0.0.20040329-9.dsc
hotplug_0.0.20040329-9_all.deb
  to pool/main/h/hotplug/hotplug_0.0.20040329-9_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 <email address hidden>,
and the maintainer will reopen the bug report if appropriate.

Debian distribution maintenance software
pp.
Marco d'Itri <email address hidden> (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 <email address hidden>)

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

Format: 1.7
Date: Sat, 26 Jun 2004 15:04:09 +0200
Source: hotplug
Binary: hotplug
Architecture: source all
Version: 0.0.20040329-9
Distribution: unstable
Urgency: medium
Maintainer: Fumitoshi UKAI <email address hidden>
Changed-By: Marco d'Itri <email address hidden>
Description:
 hotplug - Linux Hotplug Scripts
Closes: 242012 243117 243702 244337 244510 244615 244617 244954 245100 246074 246765 246911 247658 247972 248836 249170 249457 249542 249600 250513
Changes:
 hotplug (0.0.20040329-9) unstable; urgency=medium
 .
   * Added support for boot time synthesis of isapnp events.
   * patches/blacklist: added usbmouse and usbkbd. closes: Bug#242012
   * patches/blacklist: added all watchdog drivers. closes: Bug#249600
   * hotplug.postinst: do not fail when $STATIC_MODULE_LIST contains a slash.
     closes: #248836
   * Conflict with alsa-base << 1.0.4-2, which blacklists OSS drivers.
     closes: #246765
   * patches/hotplug.functions_typo: fix a typo. closes: #246911
   * New/updated debconf translations: ru, tr, de, ja.
     closes: #250513, #246074, #244510, #244337
   * Search for firmwares in /lib/firmware/ too, to allow firmware loading
     before /usr has been mounted. closes: #245100
   * patches/pci_agent_direct: in pci.rc, call pci.agent instead of
     /sbin/hotplug. closes: #243117
   * patches/050_net.agent_ifupdown updated with new code from Thomas Hood
     to fix many issues in network interfaces handling.
     closes: #244615, #244617, #244954, #249542, #249170
   * Rearranged the messages printed by the init script in the hope they
     will be less confusing. closes: #247658, #247972, #249457
   * patches/012_usb.rc_no_usbmodules: do not depend on the usbmodules
     program when using 2.6 kernels. closes: #243702
Files:
 5b4ff2afa391433a079f26f7d6435202 671 admin standard hotplug_0.0.20040329-9.dsc
 b76173f287d63e9e15a7c28f2cd1a0f9 38521 admin standard hotplug_0.0.20040329-9.diff....

Read more...

Revision history for this message
Matt Zimmerman (mdz) wrote :

This bug was fixed in Debian hotplug 0.0.20040329-9; Warty has -10 and therefore
includes the fix

Changed in hotplug:
status: Unconfirmed → Rejected
Changed in hotplug:
status: Unknown → Fix Released
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.