lunar is EOL. Mantic is broken because systemd-gpt-auto-generator
is missing. We can either change the default back to Jammy or move
forward to Noble. Let's go for the second option as Noble will
release in about two months.
- debian
- fedora
- opensuse
- # TODO: Add Ubuntu and CentOS once they have systemd v254 or newer.
+ - ubuntu
+ # TODO: Add CentOS once they have systemd v254 or newer.
exclude:
# pacman and archlinux-keyring are not packaged in OpenSUSE.
- distro: arch
Distribution=ubuntu
[Distribution]
-@Release=lunar
+@Release=noble
Repositories=universe
[Content]
if not vmlinuz.exists():
shutil.copy2(d, vmlinuz)
+ # systemd-gpt-auto-generator is disabled by default in Ubuntu:
+ # https://git.launchpad.net/ubuntu/+source/systemd/tree/debian/systemd.links?h=ubuntu/noble-proposed.
+ # Let's make sure it is enabled by default in our images.
+ (context.root / "etc/systemd/system-generators/systemd-gpt-auto-generator").unlink(missing_ok=True)
+
@classmethod
def remove_packages(cls, context: Context, packages: Sequence[str]) -> None:
@classmethod
def default_release(cls) -> str:
- return "lunar"
+ return "noble"
@staticmethod
@listify
check=False,
)
- if self.config.distribution == Distribution.ubuntu or self.config.distribution.is_centos_variant():
- rc = 0
- else:
- rc = 123
+ rc = 0 if self.config.distribution.is_centos_variant() else 123
if result.returncode != rc:
raise subprocess.CalledProcessError(result.returncode, result.args, result.stdout, result.stderr)
Format=vfat
CopyFiles=/boot:/
CopyFiles=/efi:/
- SizeMinBytes=512M
- SizeMaxBytes=512M
+ SizeMinBytes=1G
+ SizeMaxBytes=1G
"""
)
)