lanzaboote icon indicating copy to clipboard operation
lanzaboote copied to clipboard

Manipulate efivars when installing via `lzbt`

Open nikstur opened this issue 1 year ago • 6 comments

We should manipulate the efivars when we install Lanzaboote to point the standard boot entry to the systemd-boot path. This should be implemented via a command line flag ~that is disabled by default~. ~Otherwise~ Without being able to disable manipulating efivars, testing becomes annoying (i.e. our rust unit tests) and it also makes building disk images much harder.

nikstur avatar Mar 06 '23 00:03 nikstur

Otherwise testing becomes annoying and it also makes building disk images much harder.

I didn't understand this part very well.

RaitoBezarius avatar Apr 14 '23 13:04 RaitoBezarius

If lzbt always manipulates efivars, we cannot run our rust test suite anymore. So we need to be able to disable manipulating efivars to have easy and quick tests for the rest of the system.

nikstur avatar Apr 14 '23 14:04 nikstur

If lzbt always manipulates efivars, we cannot run our rust test suite anymore. So we need to be able to disable manipulating efivars to have easy and quick tests for the rest of the system.

This makes sense. Note that we have EFIVARS manipulation in our NixOS tests. :)

RaitoBezarius avatar Apr 14 '23 14:04 RaitoBezarius

Should we fork to bootctl update and logic to handle A/B bootloaders and avoidance of broken systemd boot or should we go all the way and replace bootctl here?

RaitoBezarius avatar Jun 16 '23 12:06 RaitoBezarius

Although there is some charm to re-implementing systemd functionality (because we can upstream it) I think we can and should use bootctl for now. I'll implement something. However I don't know how `bootctl can help with an A/B system for bootloaders.

nikstur avatar Jun 16 '23 16:06 nikstur

Although there is some charm to re-implementing systemd functionality (because we can upstream it) I think we can and should use bootctl for now. I'll implement something.

Awesome, I will let you do it then.

However I don't know how `bootctl can help with an A/B system for bootloaders.

Not really, but it's okay :)

RaitoBezarius avatar Jun 16 '23 18:06 RaitoBezarius