Commit Graph

817 Commits

Author SHA1 Message Date
Itxaka
274701a3ac Also install fonts when installing grub (#144) 2023-09-13 11:07:28 +02:00
renovate[bot]
0afdf76278 Update module github.com/mudler/yip to v1.4.2 (#142)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
v2.2.11
2023-09-12 09:46:37 +02:00
Itxaka
cfc9f6572f Bump yip to latest (#141)
Signed-off-by: Itxaka <itxaka@kairos.io>
v2.2.10
2023-09-07 15:39:37 +02:00
renovate[bot]
44f97ac6a2 Update actions/checkout action to v4 (#140)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2023-09-07 15:26:35 +02:00
renovate[bot]
417f8ce438 Update module github.com/mudler/yip to v1.4.0 (#135)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2023-09-06 11:22:02 +02: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
renovate[bot]
ccd7872045 Update module golang.org/x/oauth2 to v0.12.0 (#127)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2023-09-06 11:20:45 +02:00
Itxaka
307eabbb36 Bump to latest yip (#134)
Signed-off-by: Itxaka <itxaka@kairos.io>
v2.2.9
2023-09-04 09:56:15 +02: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
ca4cf5059d Fix recovery image calculation (#132) v2.2.8 2023-08-21 16:42:57 +02:00
Itxaka
7c060a764e Fix manual-install reboot/poweroff flags (#131) 2023-08-18 12:54:42 +02:00
Itxaka
28dd23c4f4 Adjust size to take into account upgrades (#130) v2.2.7 2023-08-18 12:18:10 +02:00
Itxaka
dffef50ca0 Several improvements for size calculation (#129) v2.2.6 2023-08-17 13:53:45 +02:00
Itxaka
1cf9813f43 Fix space calculation on recovery (#128) v2.2.5 2023-08-16 22:59:50 +02:00
Itxaka
1a72f56d67 Restore loading env from config file (#124) v2.2.4 2023-08-08 18:52:04 +02:00
Itxaka
b5e1e7a8ee Fix goreleaser artifact names (#125) 2023-08-08 18:18:57 +02:00
Itxaka
3a6bd03e24 Update unit-tests.yml 2023-08-08 18:18:16 +02:00
renovate[bot]
639e787706 Update module github.com/pterm/pterm to v0.12.65 (#120)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2023-08-08 15:26:46 +02:00
renovate[bot]
1048a5b5f7 Update module github.com/labstack/echo/v4 to v4.11.1 (#117)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: Itxaka <itxaka.garcia@spectrocloud.com>
2023-08-08 15:26:11 +02:00
renovate[bot]
7d8de3b15a Update module github.com/onsi/gomega to v1.27.10 (#99)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: Itxaka <itxaka.garcia@spectrocloud.com>
2023-08-08 15:25:16 +02:00
Itxaka
e05c2a35b8 Update .codecov.yaml 2023-08-08 12:40:17 +02:00
Itxaka
4108aa929e Auto calculate image size on actions (#122) 2023-08-08 10:44:42 +02:00
Itxaka
3e9befa230 Add recovery upgrade flag to upgrade command + msg (#123) 2023-08-07 16:11:13 +02:00
Itxaka
48095b619f Auto calculate partiton size on install (#121) 2023-08-07 14:35:15 +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>
v2.2.3
2023-08-04 20:39:22 +02:00
Dimitris Karakasilis
d98a0047d9 Merge pull request #119 from kairos-io/improve-error-message
Improve error message
2023-08-04 14:26:11 +03:00
Dimitris Karakasilis
e2e70565a7 Improve error message
Signed-off-by: Dimitris Karakasilis <dimitris@karakasilis.me>
2023-08-04 10:06:08 +03:00
renovate[bot]
c42ca694d2 Update module k8s.io/mount-utils to v0.27.4 (#93)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
v2.2.2
2023-08-03 20:01:10 +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
26140a46d3 Tests and improve createExtraDirsInRootfs (#111) 2023-08-03 12:16:35 +02:00
Itxaka
8feaf648e0 Extra cleanup for install partitions (#108) 2023-08-02 19:11:50 +02:00
Itxaka
f5f3d3f221 Allow creating dirs in rootfs via cc (#109) 2023-08-02 19:11:25 +02:00
renovate[bot]
a28acbf63a Update module github.com/kairos-io/kairos-sdk to v0.0.11 (#107)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
v2.2.1
2023-08-01 12:36:30 +02:00
Itxaka
d44bc2e898 Rework install workflow for event stuff (#106) 2023-08-01 12:33:40 +02:00
Itxaka
a2ebd3fb2b Drop logrusWrapper (#105) 2023-07-27 10:51:15 +02:00
Itxaka
dffa755ad4 Add tests for Platform (#104) v2.2.0 2023-07-26 12:02:47 +02:00
Itxaka
fbcf26fdca Workaround for "auto" device propagating to spec properly
Signed-off-by: Itxaka <itxaka.garcia@spectrocloud.com>
v2.2.0-rc6
2023-07-26 00:22:14 +02:00
Itxaka
beb04baa75 Fix wrong spec loaded for upgrade
Signed-off-by: Itxaka <itxaka.garcia@spectrocloud.com>
v2.2.0-rc5
2023-07-25 22:15:46 +02:00
Itxaka
3c2697a6ad Fix config loading, install device and call sanitize (#103)
* Fix config loading, install device and call sanitize

Syncs the cfg.install.device to the installspec.target
As on manual-install the device can actually come from a flag and its
not on the cloud-config, we need to initialize the InstallSpec with the
value of the cfg.Install.Device as by that time we already have the
final value of the install target.

Also calls sanitize on config and specs and warns if anything goes wrong

Signed-off-by: Itxaka <itxaka.garcia@spectrocloud.com>

* Fix platform override and tests

The sanitize method for Config was never called so we never noticed that
its overriding the platform, even if we pass the WithPLatform option.

This patch fixes it by only overriding platform by default on sanitize
if the platform is empty, otherwise leave the platform on it values.

Also fixes the tests to use test facilities and a small fix to not try
to load the platform values form yaml

Signed-off-by: Itxaka <itxaka.garcia@spectrocloud.com>

* Init the Install in the Config init

Just in case something tries to access it so they dont find a nil

Also adjusts some more tests

Signed-off-by: Itxaka <itxaka.garcia@spectrocloud.com>

---------

Signed-off-by: Itxaka <itxaka.garcia@spectrocloud.com>
v2.2.0-rc4
2023-07-25 19:36:01 +02:00
Itxaka
f7bdba2dda Merge elemental config into agent config (#102) v2.2.0-rc3 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) v2.2.0-rc2 2023-07-24 12:28:59 +02:00
Itxaka
4e5d116307 Cleanup and simplify elementalConfig (#98)
Co-authored-by: Mauro Morales <mauro.morales@spectrocloud.com>
2023-07-24 11:44:21 +02:00