Bug 8700 - (int-155196) Fragile OSSO_* environment initialisation in /etc/osso-af-init/af-defines.sh
(int-155196)
: Fragile OSSO_* environment initialisation in /etc/osso-af-init/af-defines.sh
Status: NEW
Product: Desktop platform
startup-shutdown
: 5.0/(2.2009.51-1)
: All Maemo
: Unspecified normal (vote)
: ---
Assigned To: unassigned
: startup-shutdown-bugs
:
:
:
:
  Show dependency tree
 
Reported: 2010-01-30 19:43 UTC by Lucas Maneos
Modified: 2010-02-01 18:29 UTC (History)
1 user (show)

See Also:


Attachments


Note

You need to log in before you can comment on or make changes to this bug.


Description Lucas Maneos (reporter) 2010-01-30 19:43:58 UTC
SOFTWARE VERSION:
2.2009.51-1

EXACT STEPS LEADING TO PROBLEM: 
1. Introduce a script that sources /etc/osso-af-init/af-defines.sh early in the
boot sequence, before dbus is fully up.  See bug 8148 for a real example.

EXPECTED OUTCOME:
Nothing out of the ordinary.

ACTUAL OUTCOME:
osso-product-info can't talk to the SysInfo service so the OSSO_* variables are
initialised to "<unknown>".  The result stays in /tmp/.opi.tmp and is reused
until the system is rebooted.  Side effects range from the cosmetic (<unknown>
shown in settings -> about) to blockers such as inability to make backups and
probably all sorts of MMC related breakage.

REPRODUCIBILITY:
Always.

EXTRA SOFTWARE INSTALLED:
fmtx-faker 0.2 is a good test case.

OTHER COMMENTS:
Rather than rely on every consumer of af-defines.sh to be careful it would be
safer to put some safeguards in the script itself.  At the very least it should
check the result before moving /tmp/.opi.tmp.tmp to /tmp/.opi.tmp to avoid
propagating the problem.