Comment 3 for bug 1225113

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

On my phone I still use the cdimage ones as I need to install lots of extra deb packages for development. In that case, /var/log/system-image/ does not exist, and system-image-cli crashes:

phablet@android:/home/phablet $ system-image-cli -i
Traceback (most recent call last):
  File "/usr/bin/system-image-cli", line 9, in <module>
    load_entry_point('system-image==1.4', 'console_scripts', 'system-image-cli')()
  File "/usr/lib/python3/dist-packages/systemimage/main.py", line 123, in main
    initialize(verbosity=args.verbose)
  File "/usr/lib/python3/dist-packages/systemimage/logging.py", line 56, in initialize
    handler = logging.FileHandler(config.system.logfile, encoding='utf-8')
  File "/usr/lib/python3.3/logging/__init__.py", line 966, in __init__
    StreamHandler.__init__(self, self._open())
  File "/usr/lib/python3.3/logging/__init__.py", line 988, in _open
    return open(self.baseFilename, self.mode, encoding=self.encoding)
FileNotFoundError: [Errno 2] No such file or directory: '/var/log/system-image/client.log'

Can you please verify that calling this as phablet user works?

For the classic cdimage builds, reports already contain the InstallationMedia field which gives the contents of /var/log/installer/media-info (which is a real file on desktop, and a symlink to /etc/media-info on touch; which is a misfeature, because that file is not a configuration file, but more like a log).