Commit Graph

67 Commits

Author SHA1 Message Date
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
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
Christian Goll
b7e2dbab64 added function CopyUIDGID for file file ownerships
file ownerships are preserved now in overlays
2021-09-01 11:21:11 +02:00
Yong Qin
0346d98d46 Fixed the bug with importing container/vnfs from a directory. 2021-04-07 11:25:57 -07:00
Gregory Kurtzer
8f049f9ba4 Added function for recursive file copy 2021-02-24 21:00:41 -08: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
Shannon V. Davidson
c43fcededc Back up /etc/hosts and allow local changes 2020-12-22 23:08:35 -06:00
Gregory Kurtzer
0095b55624 Updates around VNFS restructure and kernel restructure. More coming. 2020-12-05 16:43:30 -08:00
Gregory Kurtzer
4efb27a82f Added support for tftp service and updated service interface and config 2020-12-04 22:14:29 -08:00
Gregory Kurtzer
2f5fa95d14 Minor updates to add debugging to some utils 2020-12-01 23:34:05 -08:00