kairos-agent/internal
Itxaka b5869b4017
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>
2025-03-13 11:22:26 +01:00
..
agent Fix hooks under encrypted partitions (#702) 2025-03-13 11:22:26 +01:00
bus arrow_up: Bump go in Earthly and workflows to ^1.20 (#1213) 2023-03-30 16:42:25 +02:00
cmd Rename go module kairos-agent (#81) 2023-07-10 14:39:48 +02:00
common Add extended version command (#37) 2023-06-05 12:40:23 +02:00
kairos art: Rebranding (#130) 2022-09-17 18:43:51 +02:00
webui chore(deps): update dependency cypress to v14.1.0 (#693) 2025-02-26 03:11:17 +00:00