HEX
Server: Apache/2.4.52 (Ubuntu)
System: Linux mail.btech-izolacje.pl 5.15.0-140-generic #150-Ubuntu SMP Sat Apr 12 06:00:09 UTC 2025 x86_64
User: pewna6876 (1017)
PHP: 8.2.28
Disabled: NONE
Upload Files
File: //usr/share/apport/symptoms/installer.py
# ubuntu-release-upgrader related problems
# Author: Brian Murray <brian.murray@canonical.com>
# (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'