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
4fe584547b
Merge branch 'development' into wwlog-newlines
2022-10-13 14:46:03 +02: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
Christian Goll
72f9fdacbf
Merge pull request #533 from anderbubble/container-build-exclude
...
Fix of container build include/exclude handling
2022-10-12 21:24:05 +02:00
wesley800
6954eefe5e
properly truncate dest file in util.CopyFile
2022-09-19 21:11:51 +08:00
Jonathon Anderson
0b3e862bea
Remove trailing newline from wwlog
...
I noticed that some wwlog calls included a trailing newline, but others
did not. I tested both in isolation and discovered that the behavior was
consistent regardless of whether a trailing newline was included. I
further confirmed in code that wwlog appends a trailing newline
automatically if it is not present; so a trailing newline is unnecessary
in individual calls.
This commit removes trailing newlines from all calls to make them
consistent. It also replaces two calls to wwlog.Printf. (see #534 )
Signed-off-by: Jonathon Anderson <janderson@ciq.co >
2022-09-15 12:38:03 -06: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
Jonathon Anderson
22910958b5
Replace all instances of wwlog.Printf
...
wwlog provides named loggers for each level, which requires
less code and is clearer than wwlog.Printf. The code has
included a mix of both, but this commit consolidates existing
code on the per-level functions.
Signed-off-by: Jonathon Anderson <janderson@ciq.co >
2022-09-11 08:00:23 -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
Christian Goll
2d223b6b67
fixed syntax for io.Copy
2022-02-28 10:29:03 +01:00
jcsiadal
bbdfefabd4
Revert filecopy method to old style
...
Signed-off-by: jcsiadal <jeremy.c.siadal@intel.com >
2022-02-26 22:56:50 +00:00
jcsiadal
ab28e3a42f
Rename FileCopySafe
...
Signed-off-by: jcsiadal <jeremy.c.siadal@intel.com >
2022-02-26 22:39:50 +00: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
Gregory Kurtzer
caf9f4b80f
Have more intelligence on splitting bind paths
2021-09-01 21:13:46 -07:00
Gregory Kurtzer
50e6f0daf4
Format fix.
2021-09-01 19:28:12 -07:00