#!/usr/bin/python3 """ Ubuntu 25.04 (Plucky Puffin) Runner Optimized for Ubuntu 25.04 LTS release """ import subprocess import sys import os from osbuild import api from osbuild.util import runners def setup_ubuntu_environment(): """Setup Ubuntu 25.04 specific environment""" # Set Ubuntu-specific environment variables os.environ['DEBIAN_FRONTEND'] = 'noninteractive' os.environ['DEBCONF_NONINTERACTIVE_SEEN'] = 'true' os.environ['UBUNTU_CODENAME'] = 'plucky' os.environ['UBUNTU_VERSION'] = '25.04' # Ubuntu LTS specific settings os.environ['UBUNTU_LTS'] = '1' # Ensure apt is properly configured for Ubuntu 25.04 if os.path.exists('/etc/apt/sources.list'): # Backup existing sources if not os.path.exists('/etc/apt/sources.list.backup'): subprocess.run(['cp', '/etc/apt/sources.list', '/etc/apt/sources.list.backup'], check=False) # Update package lists for Ubuntu 25.04 subprocess.run(['apt-get', 'update'], check=False) if __name__ == "__main__": with api.exception_handler(): # Ubuntu-specific setup setup_ubuntu_environment() # Standard runner operations runners.ldconfig() runners.sysusers() runners.tmpfiles() runners.nsswitch() r = subprocess.run(sys.argv[1:], check=False) sys.exit(r.returncode)