From 44057766e75de96a7d75c1f77d15232270a02cc7 Mon Sep 17 00:00:00 2001 From: Timothy Middelkoop Date: Wed, 1 Oct 2025 13:50:31 -0500 Subject: [PATCH] Add OpenEuler support Signed-off-by: Timothy Middelkoop --- CHANGELOG.md | 1 + warewulf.spec.in | 4 ++-- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 57c24e4b..0d774a79 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -9,6 +9,7 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/). ### Changed - Renamed debian.interfaces overlay to ifupdown +- Change the DHCP server package used on openeuler 24.03 to dnsmasq ## v4.6.4, 2025-09-05 diff --git a/warewulf.spec.in b/warewulf.spec.in index 6c311bd6..85afdd03 100644 --- a/warewulf.spec.in +++ b/warewulf.spec.in @@ -65,7 +65,7 @@ Requires: ipxe-bootimgs-aarch64 %endif %endif -%if 0%{?rhel} >= 10 +%if 0%{?rhel} >= 10 || 0%{?openEuler} Requires: dnsmasq %else %if 0%{?rhel} >= 8 || 0%{?suse_version} || 0%{?fedora} @@ -125,7 +125,7 @@ export NO_BRP_STALE_LINK_ERROR=yes make install \ DESTDIR=%{buildroot} -%if 0%{?rhel} >= 10 +%if 0%{?rhel} >= 10 || 0%{?openEuler} sed -i ' s/systemd name: dhcpd/systemd name: dnsmasq/ s/systemd name: tftp/systemd name: dnsmasq/