Fix systemd unit failing because of missing warewulf group
This commit is contained in:
5
Makefile
5
Makefile
@@ -65,8 +65,9 @@ files: all
|
|||||||
# restorecon -r /var/lib/tftpboot/warewulf
|
# restorecon -r /var/lib/tftpboot/warewulf
|
||||||
|
|
||||||
services: files
|
services: files
|
||||||
# sudo systemctl enable tftp
|
groupadd -r warewulf
|
||||||
# sudo systemctl restart tftp
|
systemctl daemon-reload
|
||||||
|
systemctl enable --now warewulfd
|
||||||
|
|
||||||
wwctl:
|
wwctl:
|
||||||
cd cmd/wwctl; go build -mod vendor -tags "$(WW_BUILD_GO_BUILD_TAGS)" -o ../../wwctl
|
cd cmd/wwctl; go build -mod vendor -tags "$(WW_BUILD_GO_BUILD_TAGS)" -o ../../wwctl
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
[Unit]
|
[Unit]
|
||||||
Description=Warewulf cluster management daemon
|
Description=Warewulf cluster management daemon
|
||||||
Documentation=https://warewulf.readthedocs.io
|
Documentation=https://docs.ctrliq.com/warewulf
|
||||||
After=network-online.target
|
After=network-online.target
|
||||||
AssertFileIsExecutable=/usr/bin/wwctl
|
AssertFileIsExecutable=/usr/bin/wwctl
|
||||||
|
|
||||||
|
|||||||
@@ -24,7 +24,7 @@ make all
|
|||||||
%{__make} install DESTDIR=$RPM_BUILD_ROOT %{?mflags_install}
|
%{__make} install DESTDIR=$RPM_BUILD_ROOT %{?mflags_install}
|
||||||
|
|
||||||
#%pre
|
#%pre
|
||||||
#groupadd -r warewulf >/dev/null 2>&1 || :
|
groupadd -r warewulf >/dev/null 2>&1 || :
|
||||||
|
|
||||||
%post
|
%post
|
||||||
%if %{?rhel}%{!?rhel:0} >= 7
|
%if %{?rhel}%{!?rhel:0} >= 7
|
||||||
|
|||||||
Reference in New Issue
Block a user