Commit Graph

302 Commits

Author SHA1 Message Date
Itxaka
b5498a252d Merge branch 'main' into use_grub_from_source_rootfs 2025-04-24 09:17:24 +02:00
renovate[bot]
1a1f738903 chore(deps): update dependency cypress to v14.3.2 (#766)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-04-22 23:05:22 +00:00
renovate[bot]
5d444a7ab9 chore(deps): update dependency cypress to v14.3.1 (#763)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-04-18 01:52:39 +00:00
Itxaka
284a7bde02 Make Persistatant grub vars respect existing ones
We were basically overwriting the file if it existed which is bad.
Now it will read the file if it exists and ingest the existing ones,
then in will override witht he given vars if they match, warn the user
and then store the full processed vars.

This means it will never overwrite any vars again

Signed-off-by: Itxaka <itxaka@kairos.io>
2025-04-15 13:37:04 +02:00
Itxaka
54b6779f94 Use grub binaries and libs from rootfs
We should not default to use the underlying OS files and binaries for
grub installs as we may be on a takeover scenario in which the
underlying OS does not provide the needed files.

This moves the grub binary and files to be provided by the source rootfs
and moves the grubOptions hook to use the go libraries directly instead
of shelling out to another binary

Signed-off-by: Itxaka <itxaka@kairos.io>
2025-04-15 13:03:18 +02:00
renovate[bot]
7a39098c13 chore(deps): update dependency cypress to v14.3.0 (#752)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-04-08 22:04:46 +00:00
renovate[bot]
cf0afb0cce fix(deps): update dependency bootstrap to v5.3.5 (#742)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-04-05 02:35:13 +00:00
renovate[bot]
2f50886ba2 fix(deps): update dependency bootstrap to v5.3.4 (#740)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-04-03 21:58:28 +00:00
Itxaka
d83f78047f Bump sdk (#733)
* Bump sdk

---------

Signed-off-by: Itxaka <itxaka@kairos.io>
2025-04-02 14:47:05 +02:00
renovate[bot]
dc78072602 chore(deps): update dependency cypress to v14.2.1 (#725)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-03-26 23:33:52 +00:00
Itxaka
4975b9b914 Bump yip and diskfs (#717)
* Bump yip and diskfs

---------

Signed-off-by: Itxaka <itxaka@kairos.io>
2025-03-26 11:57:29 +01:00
Itxaka
db703db5e5 Try to fix hooks (#718)
* fix hooks


---------

Signed-off-by: Itxaka <itxaka@kairos.io>
2025-03-24 16:05:39 +01:00
renovate[bot]
ca05938938 fix(deps): update dependency codemirror to v5.65.19 (#715)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-03-21 02:55:35 +00:00
renovate[bot]
fd0471143f chore(deps): update dependency cypress to v14.2.0 (#706)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-03-13 10:26:55 +00:00
renovate[bot]
a77b041b23 fix(deps): update dependency alpinejs to v3.14.9 (#704)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-03-13 10:25:47 +00:00
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
renovate[bot]
12d6227008 chore(deps): update dependency cypress to v14.1.0 (#693)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-02-26 03:11:17 +00:00
renovate[bot]
a3dca67856 chore(deps): update dependency cypress to v14.0.3 (#681)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-02-11 22:35:34 +00:00
renovate[bot]
eb36d8b6c1 chore(deps): update dependency cypress to v14.0.2 (#673)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-02-06 00:54:12 +00:00
renovate[bot]
e2ff555707 chore(deps): update dependency cypress to v14.0.1 (#670)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-01-28 22:18:03 +00:00
renovate[bot]
626fbe4ec0 chore(deps): update dependency cypress to v14 (#666)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-01-17 01:49:49 +00:00
Itxaka
488841ebf2 Use extensions dir path as source (#660)
Otherwise it will copy the dir itself and we just want to copy the
contents of the dir

Signed-off-by: Itxaka <itxaka@kairos.io>
2025-01-14 10:59:45 +01:00
renovate[bot]
d8d75ebd37 fix(deps): update dependency alpinejs to v3.14.8 (#643)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-12-23 22:59:24 +00:00
renovate[bot]
1197f49c00 chore(deps): update dependency cypress to v13.17.0 (#636)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-12-17 23:13:36 +00:00
renovate[bot]
92ca5a6d53 fix(deps): update dependency @fortawesome/fontawesome-free to v6.7.2 (#634)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-12-17 01:15:07 +00:00
renovate[bot]
70a5d04e99 fix(deps): update dependency alpinejs to v3.14.7 (#621)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-12-06 23:23:21 +00:00
renovate[bot]
49c6f0bdde chore(deps): update dependency cypress to v13.16.1 (#616)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-12-05 00:44:18 +00:00
renovate[bot]
5a1c6de530 fix(deps): update dependency alpinejs to v3.14.6 (#615)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-12-03 02:18:14 +00:00
renovate[bot]
a2071ac740 fix(deps): update dependency alpinejs to v3.14.5 (#614)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-11-28 22:25:28 +00:00
renovate[bot]
724a671607 fix(deps): update dependency alpinejs to v3.14.4 (#610)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-11-27 23:03:59 +00:00
renovate[bot]
c726263c27 fix(deps): update dependency @fortawesome/fontawesome-free to v6.7.1 (#605)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-11-21 01:13:54 +00:00
Itxaka
895e571bb3 Expose pcrs for uki encryption (#603) 2024-11-20 10:41:52 +01:00
renovate[bot]
800b7a0246 chore(deps): update dependency cypress to v13.16.0 (#602)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-11-19 23:13:08 +00:00
Itxaka
00409e2357 fix reset not updating EFI files (#600) 2024-11-19 16:38:05 +01:00
renovate[bot]
4f284cc117 fix(deps): update dependency @fortawesome/fontawesome-free to v6.7.0 (#599)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-11-18 22:26:36 +00:00
Itxaka
9ea89f7610 Bump nodepair (#592)
Signed-off-by: Itxaka <itxaka@kairos.io>
2024-11-07 09:24:24 +01:00
Itxaka
dcad8beac2 Drop those stupid github and vfs deps bumps (#591) 2024-11-06 12:50:14 +01:00
renovate[bot]
87fca9570f chore(deps): update dependency cypress to v13.15.2 (#588)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-11-06 04:14:58 +00:00
renovate[bot]
1e7cfe438c chore(deps): update dependency cypress to v13.15.1 2024-10-24 22:30:44 +00:00
Itxaka
e2c3a0e638 Read actual system configs during k8s upgrade (#579) 2024-10-16 12:36:19 +02:00
renovate[bot]
d5ded907a1 fix(deps): update dependency alpinejs to v3.14.3 2024-10-16 02:45:32 +00:00
Itxaka
97d25b8993 Check for user+admin validity before actions (#575) 2024-10-15 10:47:09 +02:00
Itxaka
a3aadbbaa9 Allow installing with no users (#574) 2024-10-10 14:18:59 +02:00
Itxaka
e8bb8cf4ff Move to use kairos-release (#567) 2024-10-07 09:44:05 +00:00
Dimitris Karakasilis
b0b4618f8f Show sources in config string
and remove directory which is only meant to be used by yip configs (not
user configs read by the kairos-agent).

This needs to be explained in the release notes.

Needs this: https://github.com/kairos-io/kairos-sdk/pull/501

Part of: https://github.com/kairos-io/kairos/issues/2737

Signed-off-by: Dimitris Karakasilis <dimitris@karakasilis.me>
2024-09-26 12:07:59 +03:00
renovate[bot]
a8e855b933 chore(deps): update dependency cypress to v13.15.0 (#561)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-09-25 22:24:51 +00:00
renovate[bot]
ddd5d884cf fix(deps): update dependency codemirror to v5.65.18 2024-09-20 22:46:01 +00:00
Itxaka
fbb64f2a82 Run tests in parallel and output github formats on workflow (#543)
* Run tests in parallel and output github formats on workflow

Signed-off-by: Itxaka <itxaka@kairos.io>

* Fix broken parallel tests

We were using a fixed file for the tests which several tests could be
accessing at the same time.

This fixes it by setting a temp random file at the test start

Signed-off-by: Itxaka <itxaka@kairos.io>

* Fix the tests logging to stdout

Signed-off-by: Itxaka <itxaka@kairos.io>

* Drop the verbose

Signed-off-by: Itxaka <itxaka@kairos.io>

* Fix agent test

Signed-off-by: Itxaka <itxaka@kairos.io>

* Let the event consumer create the logfile or whatever

Signed-off-by: Itxaka <itxaka@kairos.io>

* Drop Focus

Signed-off-by: Itxaka <itxaka@kairos.io>

---------

Signed-off-by: Itxaka <itxaka@kairos.io>
2024-09-17 17:51:11 +02:00
Itxaka
3e99d75331 Move to use our ghw clone (#535) 2024-09-17 15:27:31 +02:00
Itxaka
419f09160f Fail if remote url address doesnt exist (#527) 2024-09-11 15:57:53 +02:00