AlaK4X
Linux lhjmq-records 5.15.0-118-generic #128-Ubuntu SMP Fri Jul 5 09:28:59 UTC 2024 x86_64



Your IP : 3.144.123.61


Current Path : /usr/share/apport/symptoms/
Upload File :
Current 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'