use distribution ipxe binaries
exclude .github and .vscode for make dist honor git tag when generating spec file Signed-off-by: Christian Goll <cgoll@suse.com>
This commit is contained in:
committed by
Jonathon Anderson
parent
8cbeb25c8b
commit
7e1cb014c2
@@ -117,6 +117,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
|||||||
- Make configured paths available in overlays as `.Path` #960
|
- Make configured paths available in overlays as `.Path` #960
|
||||||
- Introduced IPXESOURCE environment variable which allows to specify the path to iPXE
|
- Introduced IPXESOURCE environment variable which allows to specify the path to iPXE
|
||||||
binaries not provided by warewulf
|
binaries not provided by warewulf
|
||||||
|
- use distrubtion ipxe binaries in the rpm
|
||||||
|
|
||||||
## [4.4.0] 2023-01-18
|
## [4.4.0] 2023-01-18
|
||||||
|
|
||||||
|
|||||||
2
Makefile
2
Makefile
@@ -148,7 +148,7 @@ init:
|
|||||||
dist:
|
dist:
|
||||||
rm -rf .dist/ $(WAREWULF)-$(VERSION).tar.gz
|
rm -rf .dist/ $(WAREWULF)-$(VERSION).tar.gz
|
||||||
mkdir -p .dist/$(WAREWULF)-$(VERSION)
|
mkdir -p .dist/$(WAREWULF)-$(VERSION)
|
||||||
rsync -a --exclude=".*" --exclude "*~" * .dist/$(WAREWULF)-$(VERSION)/
|
rsync -a --exclude=".github" --exclude=".vscode" --exclude "*~" * .dist/$(WAREWULF)-$(VERSION)/
|
||||||
cd .dist; tar -czf ../$(WAREWULF)-$(VERSION).tar.gz $(WAREWULF)-$(VERSION)
|
cd .dist; tar -czf ../$(WAREWULF)-$(VERSION).tar.gz $(WAREWULF)-$(VERSION)
|
||||||
rm -rf .dist
|
rm -rf .dist
|
||||||
|
|
||||||
|
|||||||
@@ -39,7 +39,7 @@ ifneq ($(OS),)
|
|||||||
endif
|
endif
|
||||||
|
|
||||||
# System directory paths
|
# System directory paths
|
||||||
VARLIST += PREFIX BINDIR SYSCONFDIR SRVDIR DATADIR MANDIR DOCDIR LOCALSTATEDIR
|
VARLIST += PREFIX BINDIR SYSCONFDIR SRVDIR DATADIR MANDIR DOCDIR LOCALSTATEDIR RELEASE
|
||||||
PREFIX ?= /usr/local
|
PREFIX ?= /usr/local
|
||||||
BINDIR ?= $(PREFIX)/bin
|
BINDIR ?= $(PREFIX)/bin
|
||||||
SYSCONFDIR ?= $(PREFIX)/etc
|
SYSCONFDIR ?= $(PREFIX)/etc
|
||||||
|
|||||||
@@ -39,9 +39,11 @@ BuildRequires: go >= 1.16
|
|||||||
BuildRequires: firewall-macros
|
BuildRequires: firewall-macros
|
||||||
BuildRequires: firewalld
|
BuildRequires: firewalld
|
||||||
BuildRequires: tftp
|
BuildRequires: tftp
|
||||||
|
BuildRequires: yq
|
||||||
Requires: tftp
|
Requires: tftp
|
||||||
Requires: nfs-kernel-server
|
Requires: nfs-kernel-server
|
||||||
Requires: firewalld
|
Requires: firewalld
|
||||||
|
Requires: ipxe-bootimgs
|
||||||
%else
|
%else
|
||||||
# Assume Red Hat/Fedora build
|
# Assume Red Hat/Fedora build
|
||||||
BuildRequires: system-release
|
BuildRequires: system-release
|
||||||
@@ -102,6 +104,15 @@ make install \
|
|||||||
|
|
||||||
%pre
|
%pre
|
||||||
getent group %{wwgroup} >/dev/null || groupadd -r %{wwgroup}
|
getent group %{wwgroup} >/dev/null || groupadd -r %{wwgroup}
|
||||||
|
# use ipxe images from the distribution
|
||||||
|
%if 0%{?suse_version} || 0%{?sle_version}
|
||||||
|
yq e '
|
||||||
|
.tftp.ipxe."00:00" = "ipxe/undionly.kpxe" |
|
||||||
|
.tftp.ipxe."00:07" = "ipxe/ipxe-x86_64.efi" |
|
||||||
|
.tftp.ipxe."00:09" = "ipxe/ipxe-x86_64.efi" |
|
||||||
|
.tftp.ipxe."00:0B" = "ipxe/snp-arm64.efi" ' \
|
||||||
|
-i %{buildroot}%{_sysconfdir}/warewulf/warewulf.conf
|
||||||
|
%endif
|
||||||
|
|
||||||
|
|
||||||
%post
|
%post
|
||||||
|
|||||||
Reference in New Issue
Block a user