Commit Graph

406 Commits

Author SHA1 Message Date
Itxaka
d7b0a90d02 Fix hooks under encrypted partitions (#702)
* Fix hooks under encrypted partitions

We had a mess of mounting and unmounting things around when we try to
copy things to persistent.

Part of the changes (using the by-label to mount the persistent) are due
to the change in kcrypt. As we set the same label to the encrypted fs
and unencrypted fs, our utils.Mount could get mistaken and return the
first hit, which usually its the encrypted one, and we cannot mount that
one.

This patch brings it up to date.

 - Makes bundles and logs hooks work when we have encrypted persistent.
   It didnt work before.
 - Makes both workflows the same.
 - Locks everything once its over, to not leave encrypted parts around
 - Mounts OEM so kcrypt can read the config if we are using a remote
   server for encryption
 - Mounts by label so there is not a change of getting the wrong device
 - Uses the mount syscall directly. The util can mistake and return the
   actual encrypted part if they both have the same label and finds it
   first

---------

Signed-off-by: Itxaka <itxaka@kairos.io>
(cherry picked from commit b5869b4017)
2025-03-13 12:37:30 +01:00
Dimitris Karakasilis
76899b7b77
Merge pull request #509 from kairos-io/add-test-and-fix-recovery-upgrade
Add test and fix recovery upgrade
2024-09-04 13:22:47 +03:00
renovate[bot]
f56b7a9c93
fix(deps): update module github.com/twpayne/go-vfs/v4 to v5 (#514)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-09-04 00:55:37 +00:00
renovate[bot]
5281bebba0
fix(deps): update module github.com/google/go-github/v63 to v64 (#513)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-09-04 00:55:19 +00:00
renovate[bot]
6d2d0cd4fb
fix(deps): update module github.com/twpayne/go-vfs/v4 to v5 (#512)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-09-03 23:22:16 +00:00
renovate[bot]
6b4f625577
fix(deps): update module github.com/google/go-github/v63 to v64 (#511)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-09-03 23:22:00 +00:00
dependabot[bot]
77b42c4ef0
Bump github.com/opencontainers/runc (#510)
Bumps the go_modules group with 1 update in the / directory: [github.com/opencontainers/runc](https://github.com/opencontainers/runc).


Updates `github.com/opencontainers/runc` from 1.1.13 to 1.1.14
- [Release notes](https://github.com/opencontainers/runc/releases)
- [Changelog](https://github.com/opencontainers/runc/blob/main/CHANGELOG.md)
- [Commits](https://github.com/opencontainers/runc/compare/v1.1.13...v1.1.14)

---
updated-dependencies:
- dependency-name: github.com/opencontainers/runc
  dependency-type: indirect
  dependency-group: go_modules
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-09-03 19:56:35 +00:00
Dimitris Karakasilis
773b1e7d59
Add test for image size calculation and respect --recovery flag
Signed-off-by: Dimitris Karakasilis <dimitris@karakasilis.me>
2024-09-03 13:38:47 +03:00
renovate[bot]
eac394da0f
fix(deps): update module github.com/twpayne/go-vfs/v4 to v5 (#507)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-08-30 01:48:49 +00:00
renovate[bot]
e09a62f220
fix(deps): update module github.com/google/go-github/v63 to v64 (#506)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-08-30 01:48:44 +00:00
renovate[bot]
9edc60aaec
fix(deps): update module github.com/masterminds/sprig/v3 to v3.3.0 (#505)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-08-29 21:12:06 +00:00
renovate[bot]
f61b9e9803
fix(deps): update module github.com/twpayne/go-vfs/v4 to v5 (#503)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-08-29 02:23:55 +00:00
renovate[bot]
033b4f0155
fix(deps): update module github.com/google/go-github/v63 to v64 (#502)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-08-29 02:23:49 +00:00
renovate[bot]
8dc1357160 fix(deps): update module github.com/onsi/gomega to v1.34.2 2024-08-29 02:23:31 +00:00
renovate[bot]
402a21270a fix(deps): update module github.com/onsi/ginkgo/v2 to v2.20.2 2024-08-28 21:09:52 +00:00
renovate[bot]
cf35379f3d
fix(deps): update module github.com/google/go-github/v63 to v64 (#497)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-08-28 01:19:15 +00:00
renovate[bot]
d03feb6e5b
fix(deps): update module github.com/twpayne/go-vfs/v4 to v5 (#498)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-08-28 01:19:07 +00:00
renovate[bot]
b3af472150
fix(deps): update module github.com/masterminds/semver/v3 to v3.3.0 (#496)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-08-27 23:00:48 +00:00
renovate[bot]
be49b671a1
fix(deps): update module github.com/twpayne/go-vfs/v4 to v5 (#494)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-08-26 21:15:39 +00:00
renovate[bot]
8337ade547
fix(deps): update module github.com/google/go-github/v63 to v64 (#493)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-08-26 21:15:29 +00:00
renovate[bot]
9e12ecf9c1
fix(deps): update module github.com/twpayne/go-vfs/v4 to v5 (#492)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-08-26 13:52:51 +00:00
renovate[bot]
b172603f0a
fix(deps): update module github.com/google/go-github/v63 to v64 (#491)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-08-25 13:11:02 +00:00
renovate[bot]
99f3522af3
fix(deps): update module github.com/twpayne/go-vfs/v4 to v5 (#490)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-08-25 13:05:33 +00:00
renovate[bot]
25e86006d4
fix(deps): update module github.com/google/go-github/v63 to v64 (#489)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-08-25 13:00:13 +00:00
renovate[bot]
aa85711003
fix(deps): update module github.com/twpayne/go-vfs/v4 to v5 (#488)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-08-25 12:55:22 +00:00
renovate[bot]
017b41ccaa
fix(deps): update module github.com/google/go-github/v63 to v64 (#487)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-08-25 09:49:11 +00:00
renovate[bot]
d4d6084271
fix(deps): update module github.com/twpayne/go-vfs/v4 to v5 (#486)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-08-25 09:44:15 +00:00
renovate[bot]
a373b23fd8
fix(deps): update module github.com/google/go-github/v63 to v64 (#485)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-08-25 08:29:17 +00:00
renovate[bot]
cd331967f8
fix(deps): update module github.com/twpayne/go-vfs/v4 to v5 (#484)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-08-25 08:24:17 +00:00
renovate[bot]
2212b72f2c
fix(deps): update module github.com/google/go-github/v63 to v64 (#483)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-08-25 04:18:37 +00:00
renovate[bot]
989476c528
fix(deps): update module github.com/twpayne/go-vfs/v4 to v5 (#482)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-08-25 04:13:47 +00:00
renovate[bot]
ad742904c5
fix(deps): update module github.com/google/go-github/v63 to v64 (#481)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-08-25 02:21:42 +00:00
renovate[bot]
7e87f2c19a
fix(deps): update module github.com/twpayne/go-vfs/v4 to v5 (#480)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-08-25 02:16:48 +00:00
renovate[bot]
d70f140253
fix(deps): update module github.com/google/go-github/v63 to v64 (#479)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-08-24 23:34:16 +00:00
renovate[bot]
5df0a4687d
fix(deps): update module github.com/twpayne/go-vfs/v4 to v5 (#478)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-08-24 23:29:05 +00:00
renovate[bot]
568f765b59
fix(deps): update module github.com/google/go-github/v63 to v64 (#477)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-08-24 19:36:09 +00:00
renovate[bot]
b4f77a621b
fix(deps): update module github.com/twpayne/go-vfs/v4 to v5 (#476)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-08-24 19:30:56 +00:00
renovate[bot]
457f19af92
fix(deps): update module github.com/google/go-github/v63 to v64 (#475)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-08-24 16:15:07 +00:00
renovate[bot]
aee34ef6a1
fix(deps): update module github.com/twpayne/go-vfs/v4 to v5 (#474)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-08-24 16:10:13 +00:00
renovate[bot]
dfc346daf4
fix(deps): update module github.com/google/go-github/v63 to v64 (#473)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-08-24 12:52:47 +00:00
renovate[bot]
9bb7321b3e
fix(deps): update module github.com/twpayne/go-vfs/v4 to v5 (#472)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-08-24 12:48:09 +00:00
renovate[bot]
457a14c314
fix(deps): update module github.com/google/go-github/v63 to v64 (#471)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-08-24 10:57:43 +00:00
renovate[bot]
9c2cfc941f
fix(deps): update module github.com/twpayne/go-vfs/v4 to v5 (#470)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-08-24 10:52:41 +00:00
renovate[bot]
dbf4cf9c36
fix(deps): update module github.com/google/go-github/v63 to v64 (#469)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-08-24 08:55:01 +00:00
renovate[bot]
0e32706e31
fix(deps): update module github.com/twpayne/go-vfs/v4 to v5 (#468)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-08-24 08:50:11 +00:00
renovate[bot]
475c84f064
fix(deps): update module github.com/google/go-github/v63 to v64 (#466)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-08-24 01:15:31 +00:00
renovate[bot]
a329960805
fix(deps): update module github.com/twpayne/go-vfs/v4 to v5 (#465)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-08-24 01:10:19 +00:00
renovate[bot]
dc230f3689
fix(deps): update module github.com/google/go-github/v63 to v64 (#464)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-08-23 21:43:29 +00:00
renovate[bot]
aefff7c3f9
fix(deps): update module github.com/twpayne/go-vfs/v4 to v5 (#463)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-08-23 21:38:03 +00:00
renovate[bot]
bb69a4437c
fix(deps): update module github.com/google/go-github/v63 to v64 (#462)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-08-23 04:46:13 +00:00