hybrid-detect changes file in /usr

Bug #976779 reported by Stéphane Graber
10
This bug affects 1 person
Affects Status Importance Assigned to Milestone
nvidia-common (Ubuntu)
Fix Released
Medium
Alberto Milone
Precise
Fix Released
Undecided
Unassigned

Bug Description

[Impact]
hybrid-detect writes to /usr/share, which not be written to after package installation. hybrid-detect may fail to function properly if used on hybrid systems with read-only /usr partitions.

[Fix]
Write to /var/lib instead.

[Regression Potential]
Scope of possible regression is very limited; this only affects the hybrid-detect utility, which is only relevant on certain kinds of hybrid systems.

[Original Report]
When running debsums on my system I noticed the following entry:
debsums: changed file /usr/share/nvidia-common/last_gfx_boot (from nvidia-common package)

I tracked it down to hybrid-detect changing that file at runtime. This is definitely wrong as nothing should ever write to /usr after package installation. I'd suggest moving this to /var/lib instead.

Changed in nvidia-common (Ubuntu):
assignee: nobody → Alberto Milone (albertomilone)
importance: Undecided → Medium
status: New → Triaged
Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package nvidia-common - 1:0.2.45

---------------
nvidia-common (1:0.2.45) quantal; urgency=low

  * Don't write to /usr/share for hybrid graphics
    detection, use /var/lib instead (LP: #976779).
 -- Alberto Milone <email address hidden> Tue, 15 May 2012 14:30:07 +0200

Changed in nvidia-common (Ubuntu):
status: Triaged → Fix Released
Bryce Harrington (bryce)
description: updated
Revision history for this message
Adam Conrad (adconrad) wrote : Please test proposed package

Hello Stéphane, or anyone else affected,

Accepted nvidia-common into precise-proposed. The package will build now and be available at http://launchpad.net/ubuntu/+source/nvidia-common/1:0.2.44.1 in a few hours, and then in the -proposed repository.

Please help us by testing this new package. See https://wiki.ubuntu.com/Testing/EnableProposed for documentation how to enable and use -proposed. Your feedback will aid us getting this update out to other Ubuntu users.

If this package fixes the bug for you, please change the bug tag from verification-needed to verification-done. If it does not, change the tag to verification-failed. In either case, details of your testing will help us make a better decision.

Further information regarding the verification process can be found at https://wiki.ubuntu.com/QATeam/PerformingSRUVerification . Thank you in advance!

Changed in nvidia-common (Ubuntu Precise):
status: New → Fix Committed
tags: added: verification-needed
Revision history for this message
Bryce Harrington (bryce) wrote :

I've installed this package on a precise-proposed/nouveau (non-hybrid) system, installed nvidia-173 through jockey, and confirm the fix has taken effect, with the file now existing in /var/lib. Running hybrid-detect on this system does not crash, and produces correct output.

tags: added: verification-done
removed: verification-needed
Revision history for this message
Chris Halse Rogers (raof) wrote :

Hello Stéphane, or anyone else affected,

Accepted nvidia-common into precise-proposed. The package will build now and be available at http://launchpad.net/ubuntu/+source/nvidia-common/1:0.2.44.2 in a few hours, and then in the -proposed repository.

Please help us by testing this new package. See https://wiki.ubuntu.com/Testing/EnableProposed for documentation how to enable and use -proposed. Your feedback will aid us getting this update out to other Ubuntu users.

If this package fixes the bug for you, please change the bug tag from verification-needed to verification-done. If it does not, change the tag to verification-failed. In either case, details of your testing will help us make a better decision.

Further information regarding the verification process can be found at https://wiki.ubuntu.com/QATeam/PerformingSRUVerification . Thank you in advance!

tags: removed: verification-done
tags: added: verification-needed
Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package nvidia-common - 1:0.2.44.2

---------------
nvidia-common (1:0.2.44.2) precise-proposed; urgency=low

  * NvidiaDetector/nvidiadetector.py: When a package has multiple words
    separated with -'s, use only the last element as the driver version.
    (LP: #1047681)

nvidia-common (1:0.2.44.1) precise-proposed; urgency=low

  [Alberto Milone]
  * NvidiaDetector/nvidiadetector.py:
    - Add support for -experimental flavours (LP: #1047681).
  * Don't write to /usr/share for hybrid graphics
    detection, use /var/lib instead (LP: #976779).

  [Bryce Harrington]
  * nvidia-common.templates: Fix lintian error (trailing whitespace)
 -- Bryce Harrington <email address hidden> Thu, 27 Sep 2012 22:27:56 -0700

Changed in nvidia-common (Ubuntu Precise):
status: Fix Committed → Fix Released
Revision history for this message
Chris Halse Rogers (raof) wrote : Update Released

The verification of this Stable Release Update has completed successfully and the package has now been released to -updates. Subsequently, the Ubuntu Stable Release Updates Team is being unsubscribed and will not receive messages about this bug report. In the event that you encounter a regression using the package from -updates please report a new bug using ubuntu-bug and tag the bug report regression-update so we can easily find any regresssions.

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.