Jonathon Anderson
b0164c36b9
Remove Chdir from util.FindFiles
...
Signed-off-by: Jonathon Anderson <janderson@ciq.com >
2024-12-25 08:48:14 -07:00
Jonathon Anderson
170f055c20
Log cpio errors more prominently
...
Previously, cpio output would only be shown as a debug message. Now it is shown
as an error message if cpio returns an error.
Signed-off-by: Jonathon Anderson <janderson@ciq.com >
2024-12-25 00:34:38 -07:00
Jonathon Anderson
07f6402520
Use a sentinel file to determine container readonly state. #1447
...
Signed-off-by: Jonathon Anderson <janderson@ciq.com >
2024-11-29 10:37:52 -07:00
Jonathon Anderson
e80c639b11
Convert config to *bool
...
Supports leaving booleans unspecified in YAML.
Boolean methods allow the templates to continue using previous names for
boolean values.
Signed-off-by: Jonathon Anderson <janderson@ciq.com >
2024-11-11 00:09:48 -07:00
Christian Goll
0dd0317740
replaced errors.Wrap with fmt.Errorf
...
Signed-off-by: Christian Goll <cgoll@suse.com >
2024-11-07 22:57:29 -07:00
Jonathon Anderson
b331fd12af
Remove dead code
...
Verified with
```
deadcode -test ./...
```
Followed-up with a lint check.
Signed-off-by: Jonathon Anderson <janderson@ciq.com >
2024-10-18 15:09:01 -06:00
Christian Goll
28a7b9fe84
removed NodeInfo and using NodeConf instead
...
This is a significant change in the undelying data model!
nodeDb, err := node.New()
will result in a structure which contains the on disk
values. Only
nodeDb.FindAllNodes() or nodeDb.GetNode(id) will give
the nodes with its merged in profiles.
Signed-off-by: Christian Goll <cgoll@suse.com >
2024-10-17 13:35:42 -04:00
Jonathon Anderson
75d9ac5fb2
Capture "broken" symlinks during container build
...
- Fixes #1267
Signed-off-by: Jonathon Anderson <janderson@ciq.com >
2024-07-01 17:12:25 -06:00
Tobias Ribizel
a6a0538f42
Fix FindFilterFiles
...
There are two bugs in the handling of exclusion patterns:
- The paths being checked against patterns are relative,
so leading / need to be stripped
- filepath.Match only does a string comparison,
and the paths we traverse don't include trailing /
Signed-off-by: Tobias Ribizel <mail@ribizel.de >
2024-06-17 00:01:04 +02:00
Jonathon Anderson
a1832ad8c1
Complete transfer of Warewulf from HPCng
...
Warewulf is now being maintained in its own GitHub organization at
github.com/warewulf
Signed-off-by: Jonathon Anderson <janderson@ciq.com >
2024-01-26 21:35:04 -07:00
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
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
Christian Goll
d23e67970d
Support importing container with symlinked shell
...
Fixes #797
Signed-off-by: Christian Goll <cgoll@suse.com >
2023-12-09 01:59:05 -07:00
Christian Goll
d30d523866
respect read only rootfs for containers
2023-01-31 16:04:07 +01:00
Jeffrey Frey
17d6448180
Fix unhandled return value from Wait()
...
Discard return error from proc.Wait() to pass lint tests
2022-11-30 16:08:58 -05:00
Jeffrey Frey
8c6f85a0a9
Update util.go
2022-11-29 15:13:00 -05:00
Jeffrey Frey
fd1f197468
Update util.go
2022-11-29 15:09:14 -05:00
Jeffrey Frey
52b932081c
Scoping issue with err
...
Use of := inside conditional body overrode scope of return value `err`
2022-11-29 14:40:06 -05:00
Jeffrey Frey
e9d7432e79
Fixup spacing
...
Tabs, not spaces.
2022-11-29 14:10:16 -05:00
Jeffrey Frey
9c3cc59d85
Missing --keep option, older versions of gzip
...
Older versions of the `gzip` utility do not understand the `--keep` flag. If `gzip` is used and initially exits in error with the text "unrecognized option" produced on stderr, use the write-to-stdout behavior for `gzip` and open and attach the desired output file to that command's stdout.
2022-11-29 14:03:58 -05:00
Christian Goll
fab7e09aeb
Merge branch 'development' into container-info2
2022-10-13 10:53:49 +02:00
Christian Goll
396f3238c1
added size of containers
2022-10-13 10:35:17 +02:00
Jonathon Anderson
ff54fbc8d7
Simplify util.FindFilterFiles
...
Signed-off-by: Jonathon Anderson <janderson@ciq.co >
2022-09-11 19:25:40 -06:00
Jonathon Anderson
cac614a4b7
Correct handling of exclude patterns
...
Signed-off-by: Jonathon Anderson <janderson@ciq.co >
2022-09-11 19:25:40 -06:00
Carter Dodd
7eae65e13f
Add process max reserve
2022-06-06 17:43:33 -05:00
Carter Dodd
3242d2998e
fixups
2022-06-05 17:37:23 -05:00
Carter Dodd
30ba916703
Move overlay build logic to util, add limit to spawned processes
2022-06-05 17:28:14 -05:00
Carter Dodd
f14f339576
fixups
2022-06-04 11:42:16 -05:00
Carter Dodd
fc8d3863d8
use wwctl to re-build provision overlays, update to pass overlaynames
2022-06-04 11:14:48 -05:00
Carter Dodd
42cc91162d
Fix error handling in goroutine
2022-05-13 23:03:04 -05:00
Carter Dodd
a27be52e3f
Fix unhandled errors
2022-05-13 22:33:29 -05:00
Carter Dodd
a36467b2a8
Merge upstream
2022-05-13 19:42:18 -05: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
bfec010e5d
only build assigned overlays
...
If a overlay should be build, check if the overlay is assigned to
a node, and return error if otherwise.
2022-04-26 10:24:52 +02:00
Christian Goll
7f1636c9a9
created syncuids.go with code from utils.go
2022-04-06 21:44:00 +02:00
Christian Goll
29074f34ea
fixed recusrive call and SliceAppendUniq
2022-03-11 16:22:26 +01:00
Christian Goll
afac77dbbe
allow multiple generic and wwinit overlays
2022-03-11 11:50:38 +01:00
jcsiadal
bfc48f7c72
Clean up show and add safe copy
...
Signed-off-by: jcsiadal <jeremy.c.siadal@intel.com >
2022-02-26 22:39:50 +00:00
jcsiadal
67b8018d69
TFTP update
...
Signed-off-by: jcsiadal <jeremy.c.siadal@intel.com >
2022-02-26 22:39:50 +00:00
Yoshiaki SENDA
761acf6a3a
symbolic links breaks filepath.Walk
2021-11-01 06:37:25 +00:00
Yoshiaki SENDA
67ac992cda
use ctime instead of mtime to detect file owner/permission change
2021-10-29 00:32:01 -04:00
Gregory Kurtzer
6b12edc122
Add ability to increment an IPv4 address
2021-10-15 21:37:03 -07:00
Gregory Kurtzer
e5e6dee51a
minor error message fix
2021-09-17 21:31:33 -07:00
Gregory M. Kurtzer
7bfe61d629
Merge pull request #114 from gmkurtzer/overlay_chown
...
Added overlay chown subcommand
2021-09-08 16:11:53 -07:00
WestleyR
4edc16953e
Fix linting issues
2021-09-07 20:48:51 -07:00
Gregory Kurtzer
16843d8b4e
Fixed issue where util.IsFile() was returning true for directories
2021-09-06 17:37:50 -07:00
Gregory Kurtzer
5c4e1e2ecd
Fixed logging and cleaned up util package
2021-09-06 11:01:59 -07:00
Gregory Kurtzer
4c8edc16fe
Changed API name to valid path
2021-09-02 15:34:19 -07:00
Gregory Kurtzer
3665e06cb1
Add ability to escape a split path as well
2021-09-01 21:20:36 -07:00