Fix systemd unit failing because of missing warewulf group

This commit is contained in:
Brian Clemens
2021-03-04 19:03:45 +09:00
parent 8094e95eee
commit da192d95b6
3 changed files with 5 additions and 4 deletions

View File

@@ -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

View File

@@ -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

View File

@@ -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