Commit Graph

23 Commits

Author SHA1 Message Date
Itxaka
dcad8beac2
Drop those stupid github and vfs deps bumps (#591) 2024-11-06 12:50:14 +01:00
Itxaka
6634e18aa3
Respect user defined/default sizes on upgrade (#587) 2024-11-06 11:34:01 +01:00
Itxaka
e8bb8cf4ff
Move to use kairos-release (#567) 2024-10-07 09:44:05 +00:00
Itxaka
3e99d75331
Move to use our ghw clone (#535) 2024-09-17 15:27:31 +02:00
Itxaka
8e2c8ebb92
Minimize shelling out (#439)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: Dimitris Karakasilis <dimitris@karakasilis.me>
2024-09-10 12:23:15 +02:00
Dimitris Karakasilis
774547e150
Address PR comments
Signed-off-by: Dimitris Karakasilis <dimitris@karakasilis.me>
2024-09-04 12:51:19 +03:00
Dimitris Karakasilis
f9b6a529f3
Use cli options to set the upgrade entry
so that we check if this works (fixed bug)

Signed-off-by: Dimitris Karakasilis <dimitris@karakasilis.me>
2024-09-03 15:30:55 +03:00
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