Package installation fails with read-only /usr/local

Bug #14963 reported by Debian Bug Importer
4
Affects Status Importance Assigned to Milestone
hotplug (Debian)
Fix Released
Unknown
hotplug (Ubuntu)
Invalid
High
Unassigned

Bug Description

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

Revision history for this message
In , Marco d'Itri (md) wrote : Bug#300726: fixed in hotplug 0.0.20040329-21

Source: hotplug
Source-Version: 0.0.20040329-21

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-21.diff.gz
  to pool/main/h/hotplug/hotplug_0.0.20040329-21.diff.gz
hotplug_0.0.20040329-21.dsc
  to pool/main/h/hotplug/hotplug_0.0.20040329-21.dsc
hotplug_0.0.20040329-21_all.deb
  to pool/main/h/hotplug/hotplug_0.0.20040329-21_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: Thu, 24 Mar 2005 11:23:04 +0100
Source: hotplug
Binary: hotplug
Architecture: source all
Version: 0.0.20040329-21
Distribution: unstable
Urgency: medium
Maintainer: Fumitoshi UKAI <email address hidden>
Changed-By: Marco d'Itri <email address hidden>
Description:
 hotplug - Linux Hotplug Scripts
Closes: 300726
Changes:
 hotplug (0.0.20040329-21) unstable; urgency=medium
 .
   * Remove net.rc on upgrades. (See #296640)
   * Depend on a newer bash package. (See #300113)
   * Create /usr/local/lib/firmware/. (Closes: #300726)
Files:
 0af1a97180fa57b18a8f8d75784c3503 668 admin standard hotplug_0.0.20040329-21.dsc
 f41db2ac2b93a58b9a2c985e1b26fd9a 49073 admin standard hotplug_0.0.20040329-21.diff.gz
 562776d79d4eef5eff3c9e241756c8f5 67710 admin standard hotplug_0.0.20040329-21_all.deb

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

iD8DBQFCQpsxFGfw2OHuP7ERAg7SAKCbYnMsLLZo4msGpVSj9q4N2jaliQCfaKM4
HS5jaX0u84DGFj23ZsDHmLU=
=l6ez
-----END PGP SIGNATURE-----

Revision history for this message
In , David I. Lehn (dlehn) wrote : hotplug: don't fail on creating /usr/local/lib/firmware

Package: hotplug
Version: 0.0.20040329-21
Followup-For: Bug #300726

The latest hotplug tries to create /usr/local/lib/firmware which is
valid according to policy 9.1.2, but it doesn't use a method which
handles /usr/local mounted read-only. This can cause a failure to
install. Please change the postinst code to create this dir to
something similar to what is suggested in 9.1.2. Thanks.

-- System Information:
Debian Release: 3.1
  APT prefers unstable
  APT policy: (500, 'unstable')
Architecture: i386 (i686)
Kernel: Linux 2.6.10-1-686
Locale: LANG=C, LC_CTYPE=C (charmap=ANSI_X3.4-1968)

Versions of packages hotplug depends on:
ii bash 3.0-14 The GNU Bourne Again SHell
ii debconf 1.4.46 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.5-1 /proc file system utilities
ii sed 4.1.4-2 The GNU sed stream editor

-- debconf information excluded

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

# Automatically generated email from bts, devscripts version 2.8.10
tags 300726 pending

Revision history for this message
In , C.Huhn (c-huhn) wrote : hotplug: don't fail on creating /usr/local/lib/firmware

Package: hotplug
Version: 0.0.20040329-21
Severity: normal
Tags: patch
Followup-For: Bug #300726

Debian policy 9.1.2: "These scripts must not fail if either of these operations fail."

-- System Information:
Debian Release: 3.1
  APT prefers testing
  APT policy: (900, 'testing'), (100, 'unstable')
Architecture: i386 (i686)
Kernel: Linux 2.6.8-reiser4
Locale: LANG=C, LC_CTYPE=de_DE (charmap=ISO-8859-1)

Versions of packages hotplug depends on:
ii bash 2.05b-24 The GNU Bourne Again SHell
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
ii sed 4.1.2-8 The GNU sed stream editor

-- debconf information excluded

*** /tmp/hotplug.postinst.diff
--- hotplug.postinst.orig 2005-04-04 12:51:39.180941066 +0200
+++ hotplug.postinst 2005-04-04 12:52:29.213034302 +0200
@@ -88,7 +88,7 @@
 case "$1" in
     configure)
  create_config_file
- [ -e /usr/local/lib/firmware/ ] || mkdir -p /usr/local/lib/firmware/
+ [ -e /usr/local/lib/firmware/ ] || mkdir -p /usr/local/lib/firmware/ || true
     ;;

     abort-upgrade|abort-remove|abort-deconfigure)

Revision history for this message
In , Dominic Hargreaves (dom) wrote : hotplug

clone 300726 -1
retitle -1 Package installation fails with read-only /usr/local
reopen -1
severity -1 serious
thanks

--
Dominic Hargreaves | http://www.larted.org.uk/~dom/
PGP key 5178E2A5 from the.earth.li (keyserver,web,email)

Revision history for this message
In , C.Huhn (c-huhn) wrote : reopen 300726

reopen 300726 !

Revision history for this message
In , Dominic Hargreaves (dom) wrote : not pending

tags 303046 - pending
thanks

--
Dominic Hargreaves | http://www.larted.org.uk/~dom/
PGP key 5178E2A5 from the.earth.li (keyserver,web,email)

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

# Automatically generated email from bts, devscripts version 2.8.14
tags 300726 pending
tags 303046 pending

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

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

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

Message-Id: <email address hidden>
Date: Mon, 21 Mar 2005 23:50:04 +1100
From: Anand Kumria <email address hidden>
To: Debian Bug Tracking System <email address hidden>
Subject: hotplug: no /usr/local/lib/firmware

Package: hotplug
Version: 0.0.20040329-17
Severity: minor

Hi,

/etc/hotplug/firmware.agent mentions /usr/local/lib/firmware but that
directory is not created by the package. As per the Debian policy
manual 9.1.2 it is okay for packages to create empty directories under
/usr/local

Please consider creating the /usr/local/lib/firmware directory.

Thanks,
Anand

-- System Information:
Debian Release: 3.1
  APT prefers testing
  APT policy: (500, 'testing')
Architecture: i386 (i686)
Kernel: Linux 2.6.8-2-686
Locale: LANG=en_AU.UTF-8, LC_CTYPE=en_AU.UTF-8 (charmap=UTF-8)

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: true
  hotplug/net_agent_policy: hotplug
  hotplug/static_module_list:
  hotplug/x11_usbmice_hack: false

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

Message-Id: <email address hidden>
Date: Thu, 24 Mar 2005 06:02:03 -0500
From: Marco d'Itri <email address hidden>
To: <email address hidden>
Subject: Bug#300726: fixed in hotplug 0.0.20040329-21

Source: hotplug
Source-Version: 0.0.20040329-21

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-21.diff.gz
  to pool/main/h/hotplug/hotplug_0.0.20040329-21.diff.gz
hotplug_0.0.20040329-21.dsc
  to pool/main/h/hotplug/hotplug_0.0.20040329-21.dsc
hotplug_0.0.20040329-21_all.deb
  to pool/main/h/hotplug/hotplug_0.0.20040329-21_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: Thu, 24 Mar 2005 11:23:04 +0100
Source: hotplug
Binary: hotplug
Architecture: source all
Version: 0.0.20040329-21
Distribution: unstable
Urgency: medium
Maintainer: Fumitoshi UKAI <email address hidden>
Changed-By: Marco d'Itri <email address hidden>
Description:
 hotplug - Linux Hotplug Scripts
Closes: 300726
Changes:
 hotplug (0.0.20040329-21) unstable; urgency=medium
 .
   * Remove net.rc on upgrades. (See #296640)
   * Depend on a newer bash package. (See #300113)
   * Create /usr/local/lib/firmware/. (Closes: #300726)
Files:
 0af1a97180fa57b18a8f8d75784c3503 668 admin standard hotplug_0.0.20040329-21.dsc
 f41db2ac2b93a58b9a2c985e1b26fd9a 49073 admin standard hotplug_0.0.20040329-21.diff.gz
 562776d79d4eef5eff3c9e241756c8f5 67710 admin standard hotplug_0.0.20040329-21_all.deb

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

iD8DBQFCQpsxFGfw2OHuP7ERAg7SAKCbYnMsLLZo4msGpVSj9q4N2jaliQCfaKM4
HS5jaX0u84DGFj23ZsDHmLU=
=l6ez
-----END PGP SIGNATURE-----

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

Message-Id: <E1DF4oz-0002Mj-Ru@anamika>
Date: Sat, 26 Mar 2005 01:30:57 -0500
From: "David I. Lehn" <email address hidden>
To: Debian Bug Tracking System <email address hidden>
Subject: hotplug: don't fail on creating /usr/local/lib/firmware

Package: hotplug
Version: 0.0.20040329-21
Followup-For: Bug #300726

The latest hotplug tries to create /usr/local/lib/firmware which is
valid according to policy 9.1.2, but it doesn't use a method which
handles /usr/local mounted read-only. This can cause a failure to
install. Please change the postinst code to create this dir to
something similar to what is suggested in 9.1.2. Thanks.

-- System Information:
Debian Release: 3.1
  APT prefers unstable
  APT policy: (500, 'unstable')
Architecture: i386 (i686)
Kernel: Linux 2.6.10-1-686
Locale: LANG=C, LC_CTYPE=C (charmap=ANSI_X3.4-1968)

Versions of packages hotplug depends on:
ii bash 3.0-14 The GNU Bourne Again SHell
ii debconf 1.4.46 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.5-1 /proc file system utilities
ii sed 4.1.4-2 The GNU sed stream editor

-- debconf information excluded

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

Message-Id: <email address hidden>
Date: Sat, 26 Mar 2005 17:06:49 +0100
From: Marco d'Itri <email address hidden>
To: <email address hidden>
Subject: tagging 300726

# Automatically generated email from bts, devscripts version 2.8.10
tags 300726 pending

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

Message-Id: <email address hidden>
Date: Mon, 04 Apr 2005 13:55:32 +0200
From: Christopher Huhn <email address hidden>
To: Debian Bug Tracking System <email address hidden>
Subject: hotplug: don't fail on creating /usr/local/lib/firmware

Package: hotplug
Version: 0.0.20040329-21
Severity: normal
Tags: patch
Followup-For: Bug #300726

Debian policy 9.1.2: "These scripts must not fail if either of these operations fail."

-- System Information:
Debian Release: 3.1
  APT prefers testing
  APT policy: (900, 'testing'), (100, 'unstable')
Architecture: i386 (i686)
Kernel: Linux 2.6.8-reiser4
Locale: LANG=C, LC_CTYPE=de_DE (charmap=ISO-8859-1)

Versions of packages hotplug depends on:
ii bash 2.05b-24 The GNU Bourne Again SHell
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
ii sed 4.1.2-8 The GNU sed stream editor

-- debconf information excluded

*** /tmp/hotplug.postinst.diff
--- hotplug.postinst.orig 2005-04-04 12:51:39.180941066 +0200
+++ hotplug.postinst 2005-04-04 12:52:29.213034302 +0200
@@ -88,7 +88,7 @@
 case "$1" in
     configure)
  create_config_file
- [ -e /usr/local/lib/firmware/ ] || mkdir -p /usr/local/lib/firmware/
+ [ -e /usr/local/lib/firmware/ ] || mkdir -p /usr/local/lib/firmware/ || true
     ;;

     abort-upgrade|abort-remove|abort-deconfigure)

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

Message-ID: <email address hidden>
Date: Mon, 04 Apr 2005 14:11:19 +0200
From: Christopher Huhn <email address hidden>
To: <email address hidden>
Subject: reopen 300726

reopen 300726 !

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

Message-ID: <email address hidden>
Date: Mon, 4 Apr 2005 13:10:56 +0100
From: Dominic Hargreaves <email address hidden>
To: <email address hidden>
Subject: hotplug

clone 300726 -1
retitle -1 Package installation fails with read-only /usr/local
reopen -1
severity -1 serious
thanks

--
Dominic Hargreaves | http://www.larted.org.uk/~dom/
PGP key 5178E2A5 from the.earth.li (keyserver,web,email)

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

Message-ID: <email address hidden>
Date: Mon, 4 Apr 2005 14:08:45 +0100
From: Dominic Hargreaves <email address hidden>
To: <email address hidden>
Subject: not pending

tags 303046 - pending
thanks

--
Dominic Hargreaves | http://www.larted.org.uk/~dom/
PGP key 5178E2A5 from the.earth.li (keyserver,web,email)

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

Message-Id: <email address hidden>
Date: Mon, 4 Apr 2005 15:10:54 +0200
From: Marco d'Itri <email address hidden>
To: <email address hidden>
Subject: tagging 300726, tagging 303046

# Automatically generated email from bts, devscripts version 2.8.14
tags 300726 pending
tags 303046 pending

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

Very confused bug, but in the end doesn't affect us

Revision history for this message
In , Marco d'Itri (md) wrote : Bug#303046: fixed in hotplug 0.0.20040329-22

Source: hotplug
Source-Version: 0.0.20040329-22

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-22.diff.gz
  to pool/main/h/hotplug/hotplug_0.0.20040329-22.diff.gz
hotplug_0.0.20040329-22.dsc
  to pool/main/h/hotplug/hotplug_0.0.20040329-22.dsc
hotplug_0.0.20040329-22_all.deb
  to pool/main/h/hotplug/hotplug_0.0.20040329-22_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: Thu, 7 Apr 2005 17:51:13 +0200
Source: hotplug
Binary: hotplug
Architecture: source all
Version: 0.0.20040329-22
Distribution: unstable
Urgency: high
Maintainer: Fumitoshi UKAI <email address hidden>
Changed-By: Marco d'Itri <email address hidden>
Description:
 hotplug - Linux Hotplug Scripts
Closes: 253936 301533 302709 302991 303046
Changes:
 hotplug (0.0.20040329-22) unstable; urgency=high
 .
   * Fixed postinst to not fail if /usr/local is read only. (Closes: #303046)
   * Fixed postinst to generate a correct $STATIC_MODULE_LIST even in some
     obscure corner case. (Closes: #301533)
   * Updated the spanish debconf translation. (Closes: #302991)
   * Finally /etc/modprobe.d/isapnp is installed with the correct name.
   * Made net.agent ignore ppp* interfaces, to support the pppd persist option.
     (Closes: #253936, #302709)
   * Added a link for S89hotplug-net in rc[06].d. (See #303161.)
Files:
 b6f8252ee1953c5aba345680af8c61c7 668 admin standard hotplug_0.0.20040329-22.dsc
 d87deaef59642b51509d23676c5efd2b 50061 admin standard hotplug_0.0.20040329-22.diff.gz
 750afe8502d606cbf461578149f22cd2 68454 admin standard hotplug_0.0.20040329-22_all.deb

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

iD8DBQFCVWHJFGfw2OHuP7ERAuw2AJ9+6Fh1UwAg7tQgTvFKRFtc3j2SCQCfQtxO
Y6B1V+4nCuYfufBH8O2E/h0=
=0UjO
-----END PGP SIGNATURE-----

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

Message-Id: <email address hidden>
Date: Thu, 07 Apr 2005 13:47:06 -0400
From: Marco d'Itri <email address hidden>
To: <email address hidden>
Subject: Bug#303046: fixed in hotplug 0.0.20040329-22

Source: hotplug
Source-Version: 0.0.20040329-22

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-22.diff.gz
  to pool/main/h/hotplug/hotplug_0.0.20040329-22.diff.gz
hotplug_0.0.20040329-22.dsc
  to pool/main/h/hotplug/hotplug_0.0.20040329-22.dsc
hotplug_0.0.20040329-22_all.deb
  to pool/main/h/hotplug/hotplug_0.0.20040329-22_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: Thu, 7 Apr 2005 17:51:13 +0200
Source: hotplug
Binary: hotplug
Architecture: source all
Version: 0.0.20040329-22
Distribution: unstable
Urgency: high
Maintainer: Fumitoshi UKAI <email address hidden>
Changed-By: Marco d'Itri <email address hidden>
Description:
 hotplug - Linux Hotplug Scripts
Closes: 253936 301533 302709 302991 303046
Changes:
 hotplug (0.0.20040329-22) unstable; urgency=high
 .
   * Fixed postinst to not fail if /usr/local is read only. (Closes: #303046)
   * Fixed postinst to generate a correct $STATIC_MODULE_LIST even in some
     obscure corner case. (Closes: #301533)
   * Updated the spanish debconf translation. (Closes: #302991)
   * Finally /etc/modprobe.d/isapnp is installed with the correct name.
   * Made net.agent ignore ppp* interfaces, to support the pppd persist option.
     (Closes: #253936, #302709)
   * Added a link for S89hotplug-net in rc[06].d. (See #303161.)
Files:
 b6f8252ee1953c5aba345680af8c61c7 668 admin standard hotplug_0.0.20040329-22.dsc
 d87deaef59642b51509d23676c5efd2b 50061 admin standard hotplug_0.0.20040329-22.diff.gz
 750afe8502d606cbf461578149f22cd2 68454 admin standard hotplug_0.0.20040329-22_all.deb

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

iD8DBQFCVWHJFGfw2OHuP7ERAuw2AJ9+6Fh1UwAg7tQgTvFKRFtc3j2SCQCfQtxO
Y6B1V+4nCuYfufBH8O2E/h0=
=0UjO
-----END PGP SIGNATURE-----

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.