HEX
Server: nginx/1.26.1
System: Linux main-vm 5.15.0-153-generic #163-Ubuntu SMP Thu Aug 7 16:37:18 UTC 2025 x86_64
User: root (0)
PHP: 8.2.19
Disabled: NONE
Upload Files
File: //proc/thread-self/root/usr/share/apport/symptoms/installer.py
# ubuntu-release-upgrader related problems
# Author: Brian Murray <[email protected]>
# (C) 2020 Canonical Ltd.
# License: GPL v3 or later.

import os

def run(report, ui):
    if not os.path.exists('/var/log/installer'):
        return
    with os.scandir('/var/log/installer') as entries:
        for entry in entries:
            if entry.name.startswith('subiquity'):
                return 'subiquity'
            elif entry.name == 'telemetry':
                return 'ubiquity'
            # d-i leaves a few unique things including
            # lsb-release, hardware-summary, status
            elif entry.name == 'status':
                return 'debian-installer'