Christian Goll
bd54993e16
refactored FindFiles
...
Previous version relied on fspath.Math which didn't match
nested sub directories.
Signed-off-by: Christian Goll <cgoll@suse.com >
2024-01-17 23:23:15 -07:00
Christian Goll
11b26e7e8c
added symlink testing
...
Signed-off-by: Christian Goll <cgoll@suse.com >
2024-01-17 23:23:15 -07:00
Christian Goll
36686d4455
fixed kmod creation
...
Signed-off-by: Christian Goll <cgoll@suse.com >
2024-01-17 23:23:15 -07:00
Christian Goll
67e526d726
added test and reafctorred kernel.Build
...
Signed-off-by: Christian Goll <cgoll@suse.com >
2024-01-17 23:23:15 -07:00
Jonathon Anderson
42842aeee1
Format entire source code using make fmt
...
Signed-off-by: Jonathon Anderson <janderson@ciq.com >
2023-10-23 17:56:20 -06:00
Jonathon Anderson
70292276e2
Rename BaseConf.New to BaseConf.Get
...
Since BaseConf.New could return a cached BaseConf, rather than always
constructing a new struct, I've renamed it to Get to more accurately
reflect its use. A new New() method is called by Get and always
initializes a new struct.
Signed-off-by: Jonathon Anderson <janderson@ciq.co >
2023-04-19 14:02:43 -06:00
Jonathon Anderson
c461e65a98
Rename pkg/warewulfconf to pkg/config
...
Signed-off-by: Jonathon Anderson <janderson@ciq.co >
2023-04-19 14:02:43 -06:00
Christian Goll
ce43dfa0b7
removed getters as configs must exportable
...
Signed-off-by: Christian Goll <cgoll@suse.de >
2023-03-06 10:20:00 +01:00
Christian Goll
377702a179
make the configuration to be based in warewulf.conf
...
defaults will be se by the Makefile
Signed-off-by: Christian Goll <cgoll@suse.de >
2023-03-03 16:02:41 +01:00
mslacken
ab0ee87629
updated linter and fixed deprecated stuff
2022-10-14 17:40:16 +02:00
Carter Dodd
379faad51d
Refactor of server, logging, building of images, template updates
...
* Combine provision response handling, add hwaddr and interface to dhcp
* Simplify stage cases, add backward compatible uri parse
* Move control of image compression to client
* Fix kernel search path for ubuntu, buffer template generation
* Implement cpio and gz as functions, add log named functions
* Generalize fs image creation routine
* Combine daemonLogf to generalized wwlog
* Fix template newline insertion, update dhcp and hosts tmpl
* Update IPXE template to handle non-compressed files
* Update DHCP template to set network interfaces and server IP assignment
* Update DHCP/hosts templates to choose a host-name self-consistently
2022-05-13 16:52:59 -05:00
Christian Goll
3e0e462dce
fix typo in kernel import
2022-04-09 13:06:58 +02:00
Gregory M. Kurtzer
88832420ca
Merge pull request #306 from gmkurtzer/container_kernel_integration
...
Utilize containerized kernel by default
2022-02-27 18:03:25 -08:00
Gregory Kurtzer
a72942590f
include /lib/firmware in kernel build
2022-02-24 22:05:45 -08:00
TerranWorks
b18e0bc0b2
added kernal search path for arch compatibility
2022-02-17 15:13:18 -06:00
Gregory Kurtzer
104bc7527d
Restored deleted kernel components for overrides
2022-02-17 06:21:40 +00:00
Gregory Kurtzer
5a0c13225e
Utilize containerized kernel and remove kernel Support
2022-02-15 06:49:24 +00:00
Michael L. Young
502a970ec8
Add dereference option when importing the kernel.
...
Due to the nature of provisioning nodes, when there are symbolic
links involved we want to copy the file that they point to instead
of copying the link.
2022-02-08 18:20:18 -05:00
Christian Goll
4eabb957bb
added option for automatic kernel detection
2022-02-03 11:12:59 +01:00
Gregory Kurtzer
690d6bb4d2
Minor fix of path.Join() usage
2022-01-19 06:15:11 +00:00
Gregory M. Kurtzer
7fbbb92173
Merge pull request #241 from mslacken/fix-kernel-imprt
...
fixups for kernel import
2022-01-18 22:13:31 -08:00
Gregory Kurtzer
d35f368b21
Build configs should not be globally writable (thanks Jeremy)
2022-01-19 06:01:33 +00:00
Christian Goll
558f5ef65b
fixed kernel import from container
2022-01-18 15:34:29 +01:00
Gregory Kurtzer
8da7dd415a
Extend and optimize relocatable build config infrastructure
2022-01-15 04:00:18 +00:00
jcsiadal
8e626e9a62
Add config option for shared state dir
...
Signed-off-by: jcsiadal <jeremy.c.siadal@intel.com >
Changes default share to /srv/warewulf
Update specfile
Some changes to match Golang standards
2022-01-11 05:52:58 +00:00
Gregory M. Kurtzer
8101c497a4
Merge pull request #164 from gmkurtzer/kernel_find
...
Better logic to locate kernels
2021-12-28 15:16:08 -08:00
Gregory Kurtzer
26a5eae20d
Use a slice array for the kernel search path
2021-12-28 14:52:39 -08:00
Christian Goll
7c6c96fc4f
kernel import must not have absolute path
2021-10-14 11:52:14 +02:00
Gregory Kurtzer
93b0631121
Better logic to locate kernels
2021-10-01 20:56:03 -07:00
Gregory M. Kurtzer
411e51f272
Merge pull request #139 from mslacken/kernel-tag
...
handling kernels by name
2021-09-29 20:47:42 -07:00
Christian Goll
341bdc2019
fixed linting errors
2021-09-20 13:06:43 +02:00
Christian Goll
dfd6ce3735
handling k ernels by nme
...
version is also stored, kernel name defaults to its version
2021-09-20 12:22:36 +02:00
Gregory Kurtzer
8ddebe8d77
Attempt to implement #120
2021-09-17 21:32:03 -07:00
WestleyR
4edc16953e
Fix linting issues
2021-09-07 20:48:51 -07:00
Gregory Kurtzer
c60be743ba
Update sources to use upstream errors package
2021-09-06 14:50:27 -07:00
Gregory Kurtzer
4732868966
Slight modification to Yong's pigz conditional
2021-04-25 12:25:34 -07:00
Yong Qin
2e1017ca63
When available, use "pigz" to speedup compression.
2021-04-24 21:00:22 -07:00
Gregory Kurtzer
1e0b86b71c
Cleanups in kernel go
2021-04-24 16:37:40 -07:00
Gregory Kurtzer
083c7bbe33
Compress the kmods and overlays
2021-04-24 16:36:22 -07:00
Yong Qin
a3e94473cb
Added "kernel delete" command.
2021-04-07 15:23:37 -07:00
Ian Kaneshiro
846b45524c
Tidy up
...
- Ran goimports to format code and imports
- Removed unused module from go.mod
- Added .editorconfig to keep formatting standard across contributors
2021-02-16 11:54:12 -08:00
Gregory Kurtzer
30c6b64413
Support importing a kernel from a chroot directory
2021-02-04 18:06:46 -08:00
Gregory Kurtzer
62a1abaab3
Cleanups and minor fixups
2020-12-13 22:45:08 -08:00
Gregory Kurtzer
0095b55624
Updates around VNFS restructure and kernel restructure. More coming.
2020-12-05 16:43:30 -08:00
Gregory Kurtzer
4af41736ab
Fixups for new API
2020-12-03 17:28:58 -08:00
Gregory Kurtzer
942dd77323
Updates to kernel for new nodeDB updates
2020-11-26 19:16:13 -08:00
Gregory Kurtzer
724e1de14c
Setup kernel support
2020-11-18 21:52:03 -08:00