Skip to content

Commit

Permalink
centos: Drop c9s epel requirement for systemd-boot
Browse files Browse the repository at this point in the history
It's available in the base repositories now. We still need epel on
the redhat derivatives for now.
  • Loading branch information
DaanDeMeyer committed Mar 28, 2023
1 parent 33a3396 commit 42a79d9
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion mkosi/distributions/centos.py
Original file line number Diff line number Diff line change
Expand Up @@ -101,14 +101,16 @@ def install(cls, state: MkosiState) -> None:
if not state.config.initrds:
add_packages(state.config, packages, "dracut", "dracut-config-generic")
add_packages(state.config, packages, "systemd-udev", conditional="systemd")
if release >= 9 and state.config.distribution == Distribution.centos:
add_packages(state.config, packages, "systemd-boot", conditional="systemd")
if state.config.ssh:
add_packages(state.config, packages, "openssh-server")

if "epel" in state.config.repositories:
add_packages(state.config, packages, "epel-release")
if state.config.netdev:
add_packages(state.config, packages, "systemd-networkd", conditional="systemd")
if release >= 9:
if release >= 9 and state.config.bootable and state.config.distribution != Distribution.centos:
add_packages(state.config, packages, "systemd-boot", conditional="systemd")

# Make sure we only install the minimal language files by default on CentOS Stream 8 which still
Expand Down

0 comments on commit 42a79d9

Please sign in to comment.