Commit Graph

1869 Commits

Author SHA1 Message Date
Jonathon Anderson
cc2ae4b5fb Merge pull request #893 from mslacken/fixCocer
remove and ignore *.coverprofile
2023-08-15 21:01:27 -06:00
Christian Goll
ede1a9149e remove and ignore *.coverprofile
Signed-off-by: Christian Goll <cgoll@suse.com>
2023-08-15 17:16:08 +02:00
Christian Goll
baa8254dd5 Merge pull request #871 from mslacken/RealyReboot
reboot also without systemd
2023-08-15 12:49:15 +02:00
Christian Goll
0f48516eb7 Merge pull request #890 from anderbubble/makefile-refactor
Makefile refactor
2023-08-15 12:48:27 +02:00
Christian Goll
244cecf693 Merge pull request #891 from mslacken/NodeSpecificFiles
added example for host specific files
2023-08-15 12:48:10 +02:00
Christian Goll
320c92e55e added example for host specific files
Signed-off-by: Christian Goll <cgoll@suse.com>
2023-08-14 11:38:16 +02:00
Jonathon Anderson
9a453c1702 Capture proto dependency installs as targets
Signed-off-by: Jonathon Anderson <janderson@ciq.com>
2023-08-11 16:15:33 -06:00
Jonathon Anderson
d4c0e11a92 Merge pull request #854 from MatthewHink/mhink-build
Build fixes for API
2023-08-10 17:09:31 -06:00
Jonathon Anderson
526c96fb5e Update changelog to reflect Makefile changes
Signed-off-by: Jonathon Anderson <janderson@ciq.com>
2023-08-10 11:45:10 -06:00
Jonathon Anderson
b6c774c4b5 Use no config file when generating completions
Signed-off-by: Jonathon Anderson <janderson@ciq.com>
2023-08-10 11:43:46 -06:00
Jonathon Anderson
b3b7591796 Audit Makefile clean target and gitignore
Signed-off-by: Jonathon Anderson <janderson@ciq.com>
2023-08-10 11:43:46 -06:00
Jonathon Anderson
9ea3381b9d Remove extraneous backup file
Signed-off-by: Jonathon Anderson <janderson@ciq.com>
2023-08-10 11:43:46 -06:00
Jonathon Anderson
d2b63ecb75 Simplier dist generation prep
Signed-off-by: Jonathon Anderson <janderson@ciq.com>
2023-08-10 11:43:46 -06:00
Jonathon Anderson
0561c3009a Improve specification of command builds
Signed-off-by: Jonathon Anderson <janderson@ciq.com>
2023-08-10 11:43:46 -06:00
Jonathon Anderson
5ff899293e Manage examples, ipxe, and overlays with install
Signed-off-by: Jonathon Anderson <janderson@ciq.com>
2023-08-10 11:43:46 -06:00
Jonathon Anderson
0b9702a7d3 Separate out bash completions in Makefile
Signed-off-by: Jonathon Anderson <janderson@ciq.com>
2023-08-10 11:43:46 -06:00
Jonathon Anderson
daab6075d7 Remove extraneous rm from clean Makefile target
Signed-off-by: Jonathon Anderson <janderson@ciq.com>
2023-08-10 11:43:46 -06:00
Jonathon Anderson
1c3b566d43 Test targets depend on config
Signed-off-by: Jonathon Anderson <janderson@ciq.com>
2023-08-10 11:43:46 -06:00
Jonathon Anderson
081ead8c9b Use zero-led octals for all install permissions
Signed-off-by: Jonathon Anderson <janderson@ciq.com>
2023-08-10 11:43:46 -06:00
Jonathon Anderson
bf3995d6f5 Clean up test targets in Makefile
Most notably, replaces the test-it target with a more simply named test
target.

Signed-off-by: Jonathon Anderson <janderson@ciq.com>
2023-08-10 11:43:46 -06:00
Jonathon Anderson
ec15f0fe36 Generate defaults.conf explicitly in Makefile
Signed-off-by: Jonathon Anderson <janderson@ciq.com>
2023-08-10 11:43:46 -06:00
Jonathon Anderson
7e31e45a0f Ignore extracted dists
When testing manual mock builds, built dists are extracted in the
current directory. This commit ignores those extracted dists so they are
not erroneously committed to the repository.

Signed-off-by: Jonathon Anderson <janderson@ciq.com>
2023-08-10 11:43:46 -06:00
Jonathon Anderson
1fdd3742c3 Improve the generation of man pages
Signed-off-by: Jonathon Anderson <janderson@ciq.com>
2023-08-10 11:43:46 -06:00
Jonathon Anderson
f375ff32cb Remove unused debian targets from Makefile
Signed-off-by: Jonathon Anderson <janderson@ciq.com>
2023-08-10 11:43:46 -06:00
Jonathon Anderson
88001ecfb0 Remove extraneous whitespace
Signed-off-by: Jonathon Anderson <janderson@ciq.com>
2023-08-10 11:43:46 -06:00
Jonathon Anderson
3ef88f8fb0 Collapse files target into install
Signed-off-by: Jonathon Anderson <janderson@ciq.com>
2023-08-10 11:43:46 -06:00
Jonathon Anderson
c1d56885ac Refactor Makefile config / Defaults.mk
Makefile has included a Defaults.mk file to store variable configuration
from one run for implicit inclusion in future runs, but the creation of
this file has been automatic and opaque, and the state of it managed by
a series of PHONY targets (e.g., config, genconfig, rm_config). This
commit refactors config to name its files explicitly (so they can be
more properly monitored by make) and makes the generation of Defaults.mk
explicit so that its behavior is more obvious.

Signed-off-by: Jonathon Anderson <janderson@ciq.com>
2023-08-10 11:43:46 -06:00
Jonathon Anderson
64fd43bb86 Apply PHONY and remove extraneous comments
Several of the targets in Makefile don't create a file of their name,
and PHONY identifies these targets to make. Alongside, several comments
in Makefile don't provide additional details beyond what is
self-documented by the command or target name itself.

Signed-off-by: Jonathon Anderson <janderson@ciq.com>
2023-08-10 10:50:29 -06:00
Jonathon Anderson
315b78bcce Remove echo and hidden commands from Makefile
Signed-off-by: Jonathon Anderson <janderson@ciq.com>
2023-08-10 10:49:09 -06:00
Jonathon Anderson
a8a68e47ad Change Warewulf version to 4.5.x
Future releases from the development branch will be 4.5.x. Additional
4.4.x versions would be tagged from the 4.4.x branch.
Signed-off-by: Jonathon Anderson <janderson@ciq.com>
2023-08-10 10:46:52 -06:00
Jonathon Anderson
94e80b17d7 Split Makefile variables into a separate file
Signed-off-by: Jonathon Anderson <janderson@ciq.com>
2023-08-10 10:46:13 -06:00
Christian Goll
741add0a00 Merge pull request #889 from anderbubble/config-noreplace-nodes-conf
Restore %config(noreplace) to nodes.conf
2023-08-10 09:37:17 +02:00
Jonathon Anderson
97248797f5 Restore %config(noreplace) to nodes.conf
The previous PR #888 erroneously removed the %config(noreplace) macro from the
nodes.conf file. This PR restores it.

Signed-off-by: Jonathon Anderson <janderson@ciq.com>
2023-08-09 11:50:10 -06:00
Matthew Hink
2094533894 Build fixes for API
- Updated the linter from 1.50 to 1.53.2 because the previous version
  was falling over (likely OOM).

- Updated protoc build command for newer version of protobuf.

The make command below should work now:

```shell
make clean setup proto all build wwapid wwapic wwapird ; echo $?
```

Signed-off-by: MatthewHink <matthew_hink@ciq.com>
2023-08-09 11:42:37 -06:00
Christian Goll
5af850e198 Merge pull request #887 from hpcng/want-to-container
Fix a typo in container delete confirmation prompt
2023-08-09 09:10:02 +02:00
Christian Goll
0cbf710027 Merge pull request #888 from hpcng/rpm-spec-duplicates
Fix duplicate entries in rpm %files
2023-08-09 09:08:47 +02:00
Christian Goll
56b02923b1 Merge pull request #839 from anderbubble/syncuids-refactor
Refactor syncuids and fix GID chown
2023-08-09 09:07:41 +02:00
Jonathon Anderson
abd3e21aa0 Fix a typo in container delete confirmation prompt
Signed-off-by: Jonathon Anderson <janderson@ciq.com>
2023-08-08 19:31:02 -06:00
Jonathon Anderson
7093d722a5 Fix formatting of LICENSE.md
Signed-off-by: Jonathon Anderson <janderson@ciq.com>
2023-08-08 19:16:24 -06:00
Jonathon Anderson
7b2f278f94 Refactor and fix bugs in syncuids
Closes #840

* SyncUids can now return applicable errors even during showOnly, so
  updated ContainerImport to ignore errors during showOnly.
* Fixed handling of file gids during SyncUids

Signed-off-by: Jonathon Anderson <janderson@ciq.com>
2023-08-08 11:25:09 -06:00
Jonathon Anderson
92f94a6630 Fix duplicate entries in rpm %files
The inclusion of %{_sysconfdir}/warewulf/* and
%{_sysconfdir}/warewulf/nodes.conf caused nodes.conf to be listed twice,
generating a warning.

The inclusion of %{srvdir}/warewulf, which is redundant with
%{_sharedstatedir}/warewulf, caused all files in
%{_sharedstatedir}/warewulf/overlays to be listed twice, generating a
warning.

Signed-off-by: Jonathon Anderson <janderson@ciq.com>
2023-08-08 09:59:40 -06:00
Christian Goll
d272c32f8e Merge pull request #883 from griznog/development
Improved overlay image naming
2023-08-03 08:49:35 +02:00
griznog
13c426de1c Add an argument to the runtime/system overlay related functions to carry the context to getOverlayFile() for building the img name. 2023-07-27 07:27:20 -05:00
griznog
e05438fdc0 Use warewulf.conf from build instead of installed warewulf.conf. 2023-07-26 11:46:13 -05:00
griznog
082eddc0f7 Update CHANGELOG. 2023-07-26 07:22:43 -05:00
John Hanks
6a53b9aa19 Replace deprecated io.ioutil functions with new os versions. 2023-07-25 18:54:06 -05:00
John Hanks
22df58eab4 More aggressive cleaning based on contents of .gitignore. 2023-07-25 18:53:14 -05:00
Christian Goll
546007423c Merge pull request #873 from ArnaudDevelopper/development
Addind information related to node status checkup during provisiong p…
2023-06-28 11:39:10 +02:00
Arnaud Lecomte
9934f2a1b1 Addind information related to node status checkup during provisiong process 2023-06-28 11:01:10 +02:00
Christian Goll
2cf928d6b7 reboot also without systemd
Signed-off-by: Christian Goll <cgoll@suse.com>
2023-06-27 14:28:16 +02:00