rancher / elemental-toolkit

:snowflake: The toolkit to build, ship and maintain cloud-init driven Linux derivatives based on container images
https://rancher.github.io/elemental-toolkit/docs/
Apache License 2.0
289 stars 49 forks source link

[backport] Disable boot entry if efivars is read-only (#2059) #2145

Closed davidcassany closed 1 month ago

davidcassany commented 1 month ago

On some systems the efivars is mounted read-only if the firmware does not support writing (such as RPI).

This commit turns off writing boot entries to efivars if the efivars filesystem is mounted read-only.

Signed-off-by: Fredrik Lönnegren fredrik.lonnegren@suse.com (cherry picked from commit 8baaef2251428aee5ec8c9d53f6368f417980a43)

Fixes #2116

davidcassany commented 1 month ago

👍 in general But I'm missing a test case.

Right! Adding one here https://github.com/rancher/elemental-toolkit/pull/2148, gonna include it in this PR once merged

davidcassany commented 1 month ago

Blocked as it requires #2146 and a backport of #2148