Commit Graph

56 Commits

Author SHA1 Message Date
Itxaka
3f47615efa Fix and add extra tests
Signed-off-by: Itxaka <itxaka@kairos.io>
2025-04-15 15:17:59 +02:00
Itxaka
e32f63b014 Fix a broken grub vars return
Signed-off-by: Itxaka <itxaka@kairos.io>
2025-04-15 14:59:48 +02:00
Itxaka
6a7b1fc3d6 Fix grub check for full paths
So it uses the config.Fs

Signed-off-by: Itxaka <itxaka@kairos.io>
2025-04-15 14:48:43 +02: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
Itxaka
c94cd8c685 Disable atimes in rsync (#743)
Some very old distros like ubuntu dont have that option
2025-04-05 20:41:15 +02: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
11cdddc452 Disable xattrs on rsync (#694)
* Disable xattrs on rsync

For systems with selinux enabled, this makes impossible to generate the
proper files as its being blocked

---------

Signed-off-by: Itxaka <itxaka@kairos.io>
2025-03-06 10:33:40 +01:00
Itxaka
a5a55c636d Expand DeployImage to be more flexible (#635)
Usually we create the system dirs in images by default, but that means
that we cannot reuse the DeployImage for deploying random non-system
images.

This fixes it by adding an extra param to create the dir structure in
the created image

Signed-off-by: Itxaka <itxaka@kairos.io>
2024-12-17 15:05:38 +01:00
Itxaka
7be897c1d5 Add boot assesment for install and bootentry (#604) 2024-11-27 11:16:56 +01:00
Itxaka
dcad8beac2 Drop those stupid github and vfs deps bumps (#591) 2024-11-06 12:50:14 +01:00
Itxaka
e2c3a0e638 Read actual system configs during k8s upgrade (#579) 2024-10-16 12:36:19 +02:00
Itxaka
e8bb8cf4ff Move to use kairos-release (#567) 2024-10-07 09:44:05 +00:00
Itxaka
a3452b4cfa Try to get the flavor on EFI installs (#568) 2024-10-01 16:15:53 +02:00
Itxaka
0f85a2c9d4 Fix reset (#565) 2024-09-27 16:10:49 +02:00
Itxaka
bd4dce015f Expose the Analize method of yip (#548)
This only shows for a given stage what steps would be run and in which
order

Signed-off-by: Itxaka <itxaka@kairos.io>
2024-09-20 10:36:09 +02:00
Itxaka
3e99d75331 Move to use our ghw clone (#535) 2024-09-17 15:27:31 +02:00
Itxaka
d02bc50747 Improve get partitions and reset spec (#530)
Co-authored-by: Dimitris Karakasilis <dimitris@karakasilis.me>
2024-09-12 17:24:35 +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
mudler
75ff3cbdd4 feat(installation): allow to abort installation if sentinel file is present
Signed-off-by: mudler <mudler@localai.io>
2024-08-21 09:27:35 +02:00
Dimitris Karakasilis
f50ae8824c Replace deprecated lib
Signed-off-by: Dimitris Karakasilis <dimitris@karakasilis.me>
2024-07-26 13:31:09 +03:00
Itxaka
773c29e5c0 Avoid copying shim and grub on alpine rpi (#411) 2024-07-15 09:32:00 +02:00
Itxaka
b176b47f56 Copy any found sysextensions into active+passive efi dir (#372) 2024-06-07 16:45:50 +02:00
Itxaka
4a5a3e9bd0 Fix chroot not opening and closing properly (#261) 2024-03-19 14:14:32 +01: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
Itxaka
2e9c85e63a Add shim to choose next entry to boot from (#230) 2024-02-21 10:44:32 +01:00
Dimitris Karakasilis
d981656715 Install efi files in uki mode using naming convention
replace "artifact" with "active" in conf files and in filenames

Signed-off-by: Dimitris Karakasilis <dimitris@karakasilis.me>
2024-02-13 16:12:20 +02:00
Itxaka
f6f113128d Remove entries on install (#213) 2024-01-26 17:41:23 +01:00
Itxaka
708cf09929 Add workaround for secureboot ubuntu flavor (#203) 2024-01-15 15:15:05 +01:00
Itxaka
ab57da1382 Remove cutSuffix as its go >=1.20 only (#200) 2024-01-11 11:51:46 +01:00
Itxaka
ae41cbf34e Copy grub+shim from the rootfs especific paths (#189) 2024-01-11 11:24:43 +01:00
Itxaka
53f49169b1 Fix uki mode detection (#198) 2024-01-10 10:38:31 +01:00
Itxaka
775756f4b6 Run install off the same command (#196) 2024-01-09 15:10:04 +01:00
Itxaka
274701a3ac Also install fonts when installing grub (#144) 2023-09-13 11:07:28 +02:00
Itxaka
4108aa929e Auto calculate image size on actions (#122) 2023-08-08 10:44:42 +02:00
Dimitris Karakasilis
e2e70565a7 Improve error message
Signed-off-by: Dimitris Karakasilis <dimitris@karakasilis.me>
2023-08-04 10:06:08 +03: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
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
738bfbdb69 Simplify rsync implementation (#61) 2023-06-20 12:18:31 +02:00
Itxaka
75586ad601 Install improvements (#62) 2023-06-20 09:58:01 +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
Itxaka
b7ea097d35 Bump to newer sdk (#1166) 2023-03-18 10:27:18 +01:00
Mauro Morales
1a9104c121 bug: Remove duplicated list of upgradable releases (#688)
* Remove duplicated list of upgradable releases

Signed-off-by: Mauro Morales <mauro.morales@spectrocloud.com>

* Make list output consistent

Signed-off-by: Mauro Morales <mauro.morales@spectrocloud.com>

Signed-off-by: Mauro Morales <mauro.morales@spectrocloud.com>
2023-01-19 22:16:13 +01:00
Ettore Di Giacinto
741ac7a385 seedling: Keep current dir when installing runnable bundles (#582)
Signed-off-by: mudler <mudler@c3os.io>

Signed-off-by: mudler <mudler@c3os.io>
2022-12-23 16:51:54 +01:00
Ettore Di Giacinto
8bf1babcce bug: Setup / as shared mount on alpine (#445)
* 🐛 Setup / as shared mount on alpine

Since this is not handled in the boot process, we do this in our devoted file to setup the rootfs configuration

Signed-off-by: Ettore Di Giacinto <mudler@kairos.io>

* 🐧 Correctly detect alpine flavors

Signed-off-by: Ettore Di Giacinto <mudler@kairos.io>

Signed-off-by: Ettore Di Giacinto <mudler@kairos.io>
2022-11-25 20:38:19 +01:00