HAL requires /usr to be mounted read/write

Bug #248649 reported by hunger
2
Affects Status Importance Assigned to Milestone
hal (Ubuntu)
Fix Released
Undecided
Martin Pitt

Bug Description

I have /usr mounted read-only and starting HAL fails with the following error message:
rm: cannot remove "/usr/share/hal/fdi/policy/gparted-disable-automount.fdi": Read-only file system

This happens after upgrading to intrepid, HAL deb is at version 0.5.11-1ubuntu1.

Workaround: For now I am mounting /usr rw.

Tags: intrepid

Related branches

Revision history for this message
hunger (hunger) wrote :

This happens due to line 38 in /etc/init.d/hal: That is where the offending rm is located.

I changed the line to start with 'test -w "/u/s/h/f/p/gparted-disable-automount.fdi" && ' and that seems to work well enough...

The actual rm is there as a aworkaround to LP #134712 (or so it seems), so only removing the file if it exists and is actually writeable is OK... in a ro /usr gparted should never have created the file in the first place anyway.

Revision history for this message
hunger (hunger) wrote :

I'd really like to know whay this never was an issue in hardy for me... Seems like the rm hack was introduced in gutsy.

Revision history for this message
Martin Pitt (pitti) wrote :

Fixed in trunk.

Changed in hal:
assignee: nobody → pitti
status: New → Fix Committed
Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package hal - 0.5.11-3~ubuntu1

---------------
hal (0.5.11-3~ubuntu1) intrepid; urgency=low

  [ Steve Kowalik ]
  * 05_removable_block_acl_support.patch: Add, adds support for adding ACLs to
    removable block devices (such as USB keys) on insertion.

  [ Martin Pitt ]
  * Merge latest changes from Debian.
  * debian/hal.preinst: Clean up the old Debian/Ubuntu specific hal rules
    file. This needs to be kept until after the next LTS.
  * debian/hal.init: Ignore failure of removing gparted-disable-automount.fdi,
    which happens if /usr is read-only. (LP: #248649)

hal (0.5.11-3) UNRELEASED; urgency=low

  * Remove our custom udev rules file and use the one provided by upstream.
    - debian/hal.udev.rules: Remove, no longer needed.
    - debian/rules: Remove the installation of the udev rules file.
    - debian/hal.links: No longer create the symlink
      /etc/udev/rules.d/z99_hal.rules. The upstream udev rules file is now
      directly installed as /etc/udev/rules.d/90-hal.rules.
    - debian/hal.preinst: Remove the conffile /etc/udev/hal.rules and the
      z99_hal.rules symlink on upgrades.
  * debian/control
    - Bump Standards-Version to 3.8.0. No further changes.

hal (0.5.11-2) unstable; urgency=low

  * debian/patches/01_hal_debian_dbuspolicy.patch
    - Update security policy to allow access for root. (Closes: #482123)
  * debian/preferences.fdi
    - Remove outdated examples. (Closes: #484461)

 -- Martin Pitt <email address hidden> Tue, 15 Jul 2008 17:43:21 +0100

Changed in hal:
status: Fix Committed → 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.