kairos-io / kairos

:penguin: The immutable Linux meta-distribution for edge Kubernetes.
https://kairos.io
Apache License 2.0
1.08k stars 94 forks source link

feat: substitute disk commands by pure golang #2772

Open Itxaka opened 1 month ago

Itxaka commented 1 month ago

Currently we require several binaries both on agent and immucore to exist in the system.

This brings packages that might not be needed after install or that are a commodity (mount can be called directly as a syscall for example)

We should have a look into substituting those by a pure golang implementation like https://github.com/diskfs/go-diskfs

That means:

Itxaka commented 1 month ago

potentially we could also build the isos with it but Im not sure it would support all of our options like hybrid isos and such

EDIT: it actually does: https://github.com/diskfs/go-diskfs/blob/master/examples/bootable_iso.go#L44