Commit Graph

14 Commits

Author SHA1 Message Date
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
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
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
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
Itxaka
773c29e5c0 Avoid copying shim and grub on alpine rpi (#411) 2024-07-15 09:32:00 +02: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
274701a3ac Also install fonts when installing grub (#144) 2023-09-13 11:07:28 +02:00
Itxaka
f7bdba2dda Merge elemental config into agent config (#102) 2023-07-25 15:21:34 +02:00
Itxaka
9c5731baa2 Rename go module kairos-agent (#81) 2023-07-10 14:39:48 +02:00
Itxaka
002b8ba51f Bring elemental-cli code into the agent (#13) 2023-05-05 18:43:21 +02:00