Commit Graph

16 Commits

Author SHA1 Message Date
Dimitris Karakasilis
3c9ba426e6 Fix test
Signed-off-by: Dimitris Karakasilis <dimitris@karakasilis.me>
2024-09-03 15:16:57 +03:00
Dimitris Karakasilis
2570a1848b Extract login into a method
Signed-off-by: Dimitris Karakasilis <dimitris@karakasilis.me>
2024-09-03 13:52:12 +03: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
Dimitris Karakasilis
c0c419cce8 Fix unit tests
Signed-off-by: Dimitris Karakasilis <dimitris@karakasilis.me>
2024-08-26 16:33:46 +03:00
Itxaka
abf92beac8 Bump to use vfs4 (#240) 2024-03-18 11:57:34 +01:00
Itxaka
2e0af77fbc Use new logger facilities (#236) 2024-03-01 12:27:26 +01:00
Dimitris Karakasilis
80f83ba676 Run sanitization outside the spec building functions
To limit responsibility or those functions and to keep the tests passing
(because they assumed no sanitization)

Signed-off-by: Dimitris Karakasilis <dimitris@karakasilis.me>
2023-10-02 10:57:11 +03:00
Itxaka
442973526e Track active/passive boot for upgrade workflow (#133)
* Track active/passive boot for upgrade workflow

Track what are we booting from during upgrade in order to not backup
active into passive if we are booting from passive.

If we are booting from active or recovery the workflow keeps as it was,
backup active into passive, and then move the transition image into
active.

Signed-off-by: Itxaka <itxaka@kairos.io>
2023-09-01 15:19:28 +02:00
Itxaka
f7bdba2dda Merge elemental config into agent config (#102) 2023-07-25 15:21:34 +02:00
Itxaka
5b945303c9 Drop runconfig in favour of config (#101) 2023-07-25 11:08:27 +02:00
Itxaka
956f86f99c Rework reboot/shutdown to use the hooks (#96) 2023-07-24 12:28:59 +02:00
Itxaka
9c5731baa2 Rename go module kairos-agent (#81) 2023-07-10 14:39:48 +02:00
Itxaka
9dd1dbddbe Fix getting lvm recovery (#70) 2023-06-23 14:49:38 +02:00
Dimitris Karakasilis
f225315a5a Use lsblk to detect partitions
like we did here:

https://github.com/kairos-io/kairos-sdk/pull/28/files

because ghw doesn't play well with lvm

Signed-off-by: Dimitris Karakasilis <dimitris@karakasilis.me>
2023-06-21 10:52:08 +03:00
Itxaka
ddfa30a4c6 Drop luet, image extractor, drop build code and multiarch images (#20)
Co-authored-by: Mauro Morales <mauro.morales@spectrocloud.com>
2023-05-16 16:06:49 +02:00
Itxaka
002b8ba51f Bring elemental-cli code into the agent (#13) 2023-05-05 18:43:21 +02:00