Commit Graph

249 Commits

Author SHA1 Message Date
Itxaka
98ccb57799 debug extension
Signed-off-by: Itxaka <itxaka@kairos.io>
2023-09-15 14:33:41 +02:00
renovate[bot]
18d937d227 Update dependency cypress to v12.17.4 (#138)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2023-09-14 17:14:33 +02:00
Dimitris Karakasilis
bf40c48812 Move checkRoot to main
Signed-off-by: Dimitris Karakasilis <dimitris@karakasilis.me>
2023-09-14 16:06:41 +03:00
Dimitris Karakasilis
fddbf3f657 Check root permissions in commands that need it
Otherwise the error shown is not helpful (it fails too late with
confusing errors).

Signed-off-by: Dimitris Karakasilis <dimitris@karakasilis.me>
2023-09-14 16:06:38 +03:00
renovate[bot]
df1c49ea7f Update dependency @fortawesome/fontawesome-free to v6.4.2 (#114)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2023-09-06 11:20:59 +02:00
Itxaka
7c060a764e Fix manual-install reboot/poweroff flags (#131) 2023-08-18 12:54:42 +02:00
Itxaka
dffef50ca0 Several improvements for size calculation (#129) 2023-08-17 13:53:45 +02:00
Itxaka
1a72f56d67 Restore loading env from config file (#124) 2023-08-08 18:52:04 +02:00
Itxaka
3e9befa230 Add recovery upgrade flag to upgrade command + msg (#123) 2023-08-07 16:11:13 +02:00
Itxaka
f5c01f73a4 Make unattended reset work (#110)
Our current example for cloud images on the docs on how to use the reset
with a cloud-config and a stage does not actually work as the tty
adquisition and such seems to be failing due tto not being properly run
in a tty.

This pathc introduces 2 new flags to the reset command.

reboot: Enable reboot after reset, overriding any config in the system.
This is only a enable switch, so if the flag is disabled but the config
says reset it will NOT override it.

unattended: Disables printing stuff into the screen, locking the
terminal and falling back to a new tty on run. Also enables fast mode
automatically.

Signed-off-by: Itxaka <itxaka@kairos.io>
2023-08-04 20:39:22 +02:00
renovate[bot]
ff9dbc5ead Update dependency alpinejs to v3.12.3 (#80)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2023-08-03 20:00:46 +02:00
renovate[bot]
d8679f5a2c Update dependency bootstrap to v5.3.1 (#54)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2023-08-03 20:00:32 +02:00
renovate[bot]
091fd32c0c Update dependency codemirror to v5.65.14 (#86)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2023-08-03 20:00:03 +02:00
renovate[bot]
8400023fca Update dependency jquery to v3.7.0 (#94)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2023-08-03 19:59:17 +02:00
renovate[bot]
df9d94767d Update dependency cypress to v12.17.3 (#92)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2023-08-03 19:58:40 +02:00
Itxaka
00eae4c029 Make interactive installer use the collector as well (#113) 2023-08-03 19:49:09 +02:00
Itxaka
822222a645 Drop override of message options after install (#112) 2023-08-03 19:46:13 +02:00
Itxaka
d44bc2e898 Rework install workflow for event stuff (#106) 2023-08-01 12:33:40 +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
bca3277b7d Rework install a bit more (#100)
Co-authored-by: Dimitris Karakasilis <dimitris@karakasilis.me>
2023-07-25 09:12:39 +02:00
Itxaka
956f86f99c Rework reboot/shutdown to use the hooks (#96) 2023-07-24 12:28:59 +02:00
Itxaka
922d35b4f1 Merge data from events into reset (#91) 2023-07-21 10:37:53 +02:00
Itxaka
9bff3742c1 Load elemental config/spec from cloud config (#82) 2023-07-20 15:53:48 +02:00
Itxaka
1ab0898c2c Fix releases coming from the bus (#90) 2023-07-20 12:02:43 +02:00
renovate[bot]
6b0e1c0af4 Update dependency cypress to v12.17.1 (#66)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2023-07-19 11:13:36 +02:00
Itxaka
9c5731baa2 Rename go module kairos-agent (#81) 2023-07-10 14:39:48 +02:00
Mauro Morales
62eee9ffbf Refactor
Signed-off-by: Dimitris Karakasilis <dimitris@spectrocloud.com>
2023-06-30 11:37:50 +03:00
Mauro Morales
609c274636 Remove validation of os-release attribute when source has been given for upgrades
Signed-off-by: Mauro Morales <mauro.morales@spectrocloud.com>
2023-06-29 15:40:40 +02:00
Itxaka
629a0b2eee Set debug flag in the main app (#64) 2023-06-21 09:42:11 +02:00
Itxaka
b126f7ab00 Drop --local flag for image sources (#63) 2023-06-21 09:39:59 +02:00
Itxaka
75586ad601 Install improvements (#62) 2023-06-20 09:58:01 +03:00
Itxaka
ed372395d2 Drop collector package and use sdk for it (#59) 2023-06-14 14:44:22 +02:00
Itxaka
14e562bb16 🐛 Read upgrade/install values from config (#55)
We were ignoring the values in the /etc/elemental/config.yaml file that
we loaded into viper by not reading those values and their keys into the
final spec.

This meant that for example the defautl entry name was being lost as we
generated a new install spec from scratch and ignored those values that
we read on the config

Signed-off-by: Itxaka <itxaka.garcia@spectrocloud.com>
2023-06-08 09:50:19 +00:00
renovate[bot]
c711e8eed9 Update dependency codemirror to v5.65.13 (#12)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: Itxaka <itxaka.garcia@spectrocloud.com>
2023-06-07 16:16:08 +02:00
renovate[bot]
bd2899f784 Update dependency alpinejs to v3.12.2 (#26)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: Itxaka <itxaka.garcia@spectrocloud.com>
2023-06-07 16:05:24 +02:00
renovate[bot]
f2e3f9d8c1 Update dependency @popperjs/core to v2.11.8 (#42)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2023-06-07 16:03:49 +02:00
renovate[bot]
1d572bf797 Update dependency cypress to v12.13.0 (#11)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2023-06-07 15:54:55 +02:00
Dimitris Karakasilis
a113147f8a 1225 config collector elemental (#32)
Co-authored-by: Mauro Morales <mauro.morales@spectrocloud.com>
Co-authored-by: Itxaka <itxaka.garcia@spectrocloud.com>
Co-authored-by: Dimitris Karakasilis <dimitris@spectrocloud.com>
2023-06-07 11:28:37 +02:00
Itxaka
1e1638f258 Modify upgrade image flag to accept more formats (#39)
Co-authored-by: Mauro Morales <mauro.morales@spectrocloud.com>
2023-06-05 13:19:39 +00:00
Itxaka
ba72c14346 Add extended version command (#37) 2023-06-05 12:40:23 +02:00
Itxaka
b55e3e0800 🐛 Fix the cleanup of ssh users (#38) 2023-06-05 12:40:13 +02:00
Dimitris Karakasilis
0ae57a99aa Don't let "elemental" reboot
because the Lifecycle hook will do that

Fixes https://github.com/kairos-io/kairos/issues/1460

Signed-off-by: Dimitris Karakasilis <dimitris@karakasilis.me>
2023-05-31 12:42:44 +03:00
Mauro Morales
e23346ae44 Extract schema validation to SDK
Signed-off-by: Mauro Morales <mauro.morales@spectrocloud.com>
2023-05-26 12:38:54 +02:00
Itxaka
8e456ec8b6 Run the user in initramfs if we dont need network (#33) 2023-05-26 09:48:11 +02:00
Itxaka
3c484d9885 Add debug flag in root cmd (#31) 2023-05-24 10:39:17 +02:00
Itxaka
1afe3c2dbd Run stages directly from code instead of shelling out (#23)
Signed-off-by: Itxaka <itxaka.garcia@spectrocloud.com>
2023-05-16 18:06:49 +02: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
cda46877ba Mount OEM during kcrypt hook (#18) 2023-05-09 21:57:16 +02:00
Itxaka
c449a1ae43 🐛 Using the wrong method to generate the upgrade spec (#15) 2023-05-08 15:00:56 +02:00