Add support for EL10
* Upadate dev container to use EL10 * Update CI to use EL10 * Update spec file for EL10 * Add `make rpm` target for building RPMs * Use `mktemp` for `make dist` to use devcontainer filesystem * Set default dhcpd and tftpd to dnsmasq for EL10 * Fix dnsmasq template tftp paths to use basename Signed-off-by: Timothy Middelkoop <tmiddelkoop@internet2.edu>
This commit is contained in:
@@ -50,7 +50,9 @@ BuildRequires: system-release
|
||||
BuildRequires: systemd
|
||||
BuildRequires: golang >= 1.16
|
||||
BuildRequires: firewalld-filesystem
|
||||
%if ! (0%{?rhel} >= 10)
|
||||
Requires: tftp-server
|
||||
%endif
|
||||
Requires: nfs-utils
|
||||
%if 0%{?rhel} < 8
|
||||
Requires: ipxe-bootimgs
|
||||
@@ -60,12 +62,16 @@ Requires: ipxe-bootimgs-aarch64
|
||||
%endif
|
||||
%endif
|
||||
|
||||
%if 0%{?rhel} >= 10
|
||||
Requires: dnsmasq
|
||||
%else
|
||||
%if 0%{?rhel} >= 8 || 0%{?suse_version} || 0%{?fedora}
|
||||
Requires: dhcp-server
|
||||
%else
|
||||
# rhel < 8
|
||||
# rhel < 8 and others
|
||||
Requires: dhcp
|
||||
%endif
|
||||
%endif
|
||||
|
||||
BuildRequires: git
|
||||
BuildRequires: make
|
||||
@@ -116,6 +122,14 @@ export NO_BRP_STALE_LINK_ERROR=yes
|
||||
make install \
|
||||
DESTDIR=%{buildroot}
|
||||
|
||||
%if 0%{?rhel} >= 10
|
||||
sed -i '
|
||||
s/systemd name: dhcpd/systemd name: dnsmasq/
|
||||
s/systemd name: tftp/systemd name: dnsmasq/
|
||||
/- dsa/d' \
|
||||
-i %{buildroot}%{_sysconfdir}/warewulf/warewulf.conf
|
||||
%endif
|
||||
|
||||
%if 0%{?suse_version} || 0%{?sle_version}
|
||||
yq e '
|
||||
.tftp.ipxe."00:00" = "undionly.kpxe" |
|
||||
|
||||
Reference in New Issue
Block a user