Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[RPI] EFI booting no longer supported on kernels shipped with ubuntu > 22.04 #2249

Closed
Tracked by #2052
Itxaka opened this issue Feb 14, 2024 · 25 comments
Closed
Tracked by #2052
Assignees
Labels
bug Something isn't working

Comments

@Itxaka
Copy link
Member

Itxaka commented Feb 14, 2024

For some reason, the efi booting stuff was disabled on the upstream ubuntu kernel packages for raspi:

commit: https://git.launchpad.net/ubuntu/+source/linux-raspi/commit/?h=applied/ubuntu/devel&id=0d02ca7853f4e487ff8b912b0d1d43ceb31a528b

Change:

diff --git a/debian.raspi/config/annotations b/debian.raspi/config/annotations
index 5fddd3c1a9..136d8cf4af 100644

-CONFIG_EFI                                      policy<{'arm64': 'y', 'armhf': 'n'}> note<'Not supported on Pi'>
+CONFIG_EFI                                      policy<{'arm64': 'n', 'armhf': 'n'}> note<'Not supported on Pi'>

What this means is that for our usecase, we would not be able to boot with our current method uboot -> arm64 fallback file (grub) -> kernel as grub complains that the kernel doesnt have the required CONFIG_EFI_STUB option, which is true.

We should probably ask upstream why was this disabled and if they can enable it again, as it was enabled up to kernel 6.5.0-1001.1 with no apparent issues (could not find any bugs related to this)

@mudler
Copy link
Member

mudler commented Feb 14, 2024

one (hackish) way would be to use different kernels (even vanilla..) but this is not easy to maintain in the long run.

Probably upstream needs to be educated that actually works on PI (given their note "Not supported on Pi"), as u-boot > GRUB is quite uncommon.

However for now we can block RPI4 support for ubuntu >22.04 as currently there are no requests around that.

@mudler mudler removed their assignment Feb 14, 2024
@Itxaka
Copy link
Member Author

Itxaka commented Feb 14, 2024

@Itxaka
Copy link
Member Author

Itxaka commented Feb 19, 2024

bug was closed upstream as they wont provide support for it.

@mauromorales
Copy link
Member

shoot, what does that mean, no RPI Ubuntu ? so strange since they offer an Ubuntu RPi release themselves

@Itxaka
Copy link
Member Author

Itxaka commented Feb 20, 2024

Yeah but our boot method is different I guess? @mudler probably know of the difference between the normal boot and our boot process, so maybe we need to change our boot process to be close to upstream for this.

@mauromorales
Copy link
Member

yup good question, I think they don't use u-boot, but not sure

@mauromorales
Copy link
Member

@kairos-io/maintainers should we stop producing Ubuntu RPi artifacts for 23+? IMO it is weird that we produce an artifact if we know it will not work, and have to keep adding a notice on the release

@Itxaka
Copy link
Member Author

Itxaka commented Apr 9, 2024

as last resort we should try https://github.com/pftf/RPi4 + systemd-boot with type 1 stuff to see if it works that way and its only grub the one being obtuse about it.

@Itxaka
Copy link
Member Author

Itxaka commented Apr 10, 2024

nah, I played wiht it, it would require waaaay to many changes to our current implementation of the boot process just for ubutu rpi :(

IMO, we stop producing rpi artifacts for ubuntu and point to the upstream bug. If people really want it they can go to the ticket and comment on it so maybe ubuntu would reconsider increasing the kernel size by 8Kb due to that config. (I can understand the increase in surface attack....mostly....the other 99% of kernels out there have it already enbabled but whatever...)

@liyimeng
Copy link
Contributor

It is too bad that the upstream taking that decision. :(
However, people play with uboot probably have good knowledge with re-configuring kernel on their own. Maybe we could just update the docs, explaining how kairos is dealing with u-boot based modes, like Jetson, RPI, etc. It would be even better to add some instructions, helping developer to enable their board with KairOS, which will bring KairOS to much larger user base.

I know little in the area. However, I've tried to absorb some knowledge from your guys discussion and compose a list here. To have kairOS work with any boards, what is needed:

  • Developer need to ship the uboot for their boards with UEFI support, detail instructions can be found at https://github.com/u-boot/u-boot/blob/master/doc/develop/uefi/uefi.rst
  • Pack the firmware for the board with package manager tools, like rpm, deb, apk, etc.
  • Build a custom kernel with necessary drivers and configs, especially CONFIG_EFI_STUB=y and pack it as above.

After this, KairOS can launch with uboot in EFI mode, which in turn runs grub.efi and then we load our grub entries from there.

Not sure if this makes sense. If yes, I can create a PR for the docs.

@liyimeng
Copy link
Contributor

yaha, we actually already have a doc for this https://kairos.io/docs/development/nvidia/

robarnold referenced this issue in marinatedconcrete/config May 20, 2024
[![Mend
Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com)

This PR contains the following updates:

| Package | Update | Change |
|---|---|---|
| [kairos-io/kairos](https://github.com/kairos-io/kairos) | major |
`v2.5.0` -> `v3.0.11` |

---

> [!WARNING]
> Some dependencies could not be looked up. Check the Dependency
Dashboard for more information.

---

### Release Notes

<details>
<summary>kairos-io/kairos (kairos-io/kairos)</summary>

###
[`v3.0.11`](https://github.com/kairos-io/kairos/releases/tag/v3.0.11)

[Compare
Source](https://github.com/kairos-io/kairos/compare/v3.0.10...v3.0.11)

**Full Changelog**:
kairos-io/kairos@v3.0.10...v3.0.11

###
[`v3.0.10`](https://github.com/kairos-io/kairos/releases/tag/v3.0.10)

[Compare
Source](https://github.com/kairos-io/kairos/compare/v3.0.9...v3.0.10)

#### Updated

-   Bumps framework to v2.7.32
-   Bumps kairos-agent to v2.8.14 (part of the framework)

#### Fixes

- Prevent unwanted yaml fields to be marshalled: Fixes some step
duplication when triggering the install via events like providers do
- Avoid adding an extra line to os-release output: We were adding an
extra line at the end of the os-release file, which some software had
problems dealing with

#### Improvements

- `kairos-agent state` will now show SecureBoot state of the node
(on/off)
- `kairos-agent state` will now show the common name of the EFI
certificates in the node if any
- `kairos-agent state` will now show a list of encrypted partitions by
label and by device if any


![image](https://github.com/kairos-io/kairos/assets/1447686/d2059be4-1d9c-483e-9d89-0a6235e74e00)

**Full Changelog**:
kairos-io/kairos@v3.0.9...v3.0.10

###
[`v3.0.9`](https://github.com/kairos-io/kairos/releases/tag/v3.0.9)

[Compare
Source](https://github.com/kairos-io/kairos/compare/v3.0.8...v3.0.9)

- 🐛 Fix broken pipeline for arm rpi Tumbleweed (caused by Python
package being much bigger) by
[@&#8203;mauromorales](https://github.com/mauromorales)
[https://github.com/kairos-io/kairos/pull/2524](https://github.com/kairos-io/kairos/pull/2524)/commits/f1aa0ac37ba1bc367f312247f5b5e23af4ee3127
- 🐛 Move nfs-utils to common build target in opensuse flavor by
[@&#8203;kaiehrhardt](https://github.com/kaiehrhardt)
[https://github.com/kairos-io/kairos/pull/2495](https://github.com/kairos-io/kairos/pull/2495)
- 🐛 UKI custom mounts breaking the cos-layout file by
[@&#8203;kreeuwijk](https://github.com/kreeuwijk)
[https://github.com/kairos-io/packages/pull/839](https://github.com/kairos-io/packages/pull/839)
(actual fix) release fix
([c95475c](https://github.com/kairos-io/kairos/pull/2524/commits/c95475c3e45c266c5cf9fc1ca2c96d446432dad4))
- ✨ Ubuntu 24.04 artifacts by
[@&#8203;mauromorales](https://github.com/mauromorales)
[#&#8203;2527](https://github.com/kairos-io/kairos/issues/2527)

**Full Changelog**:
kairos-io/kairos@v3.0.8...v3.0.9

###
[`v3.0.8`](https://github.com/kairos-io/kairos/releases/tag/v3.0.8)

[Compare
Source](https://github.com/kairos-io/kairos/compare/v3.0.7...v3.0.8)

Backported fixes for agent:

- Bumps yip for duplicated name of steps (was causing unexpected issues
with users sometimes) Issue:
[https://github.com/kairos-io/kairos/issues/2488](https://github.com/kairos-io/kairos/issues/2488)

#### Updated packages

|Category|Name|Old version|New Version|
|--|--|--|--|

|fips|kairos-agent|[v2.8.12](https://github.com/kairos-io/kairos-agent/releases/tag/v2.8.12)|[v2.8.13](https://github.com/kairos-io/kairos-agent/releases/tag/v2.8.13)|

|system|kairos-agent|[v2.8.12](https://github.com/kairos-io/kairos-agent/releases/tag/v2.8.12)|[v2.8.13](https://github.com/kairos-io/kairos-agent/releases/tag/v2.8.13)|

***

**Full Changelog**:
kairos-io/kairos@v3.0.7...v3.0.8

###
[`v3.0.7`](https://github.com/kairos-io/kairos/releases/tag/v3.0.7)

[Compare
Source](https://github.com/kairos-io/kairos/compare/v3.0.6...v3.0.7)

Backported fixes for agent and immucore:

-   Bumps yip for user id reuse
-   Adds sync calls before and after mounting
-   \[UKI] Fixes hooks in uki install
-   \[UKI] Fixes mounting oem before running rootfs stage under uki

#### Updated packages

|Category|Name|Old version|New Version|
|--|--|--|--|

|fips|kairos-agent|[v2.8.11](https://github.com/kairos-io/kairos-agent/releases/tag/v2.8.11)|[v2.8.12](https://github.com/kairos-io/kairos-agent/releases/tag/v2.8.12)|

|system|kairos-agent|[v2.8.11](https://github.com/kairos-io/kairos-agent/releases/tag/v2.8.11)|[v2.8.12](https://github.com/kairos-io/kairos-agent/releases/tag/v2.8.12)|

|system|immucore|[v0.1.25](https://github.com/kairos-io/immucore/releases/tag/v0.1.25)|[v0.1.26](https://github.com/kairos-io/immucore/releases/tag/v0.1.26)|

|fips|immucore|[v0.1.25](https://github.com/kairos-io/immucore/releases/tag/v0.1.25)|[v0.1.26](https://github.com/kairos-io/immucore/releases/tag/v0.1.26)|

***

**Full Changelog**:
kairos-io/kairos@v3.0.6...v3.0.7

###
[`v3.0.6`](https://github.com/kairos-io/kairos/releases/tag/v3.0.6)

[Compare
Source](https://github.com/kairos-io/kairos/compare/v3.0.5...v3.0.6)

#### What's Changed

- fix(orin): disable ISCSI in the initramfs generation by
[@&#8203;mudler](https://github.com/mudler) in
[https://github.com/kairos-io/kairos/pull/2476](https://github.com/kairos-io/kairos/pull/2476)

**Full Changelog**:
kairos-io/kairos@v3.0.5...v3.0.6

###
[`v3.0.5`](https://github.com/kairos-io/kairos/releases/tag/v3.0.5)

[Compare
Source](https://github.com/kairos-io/kairos/compare/v3.0.4...v3.0.5)

**Full Changelog**:
kairos-io/kairos@v3.0.4...v3.0.5

###
[`v3.0.4`](https://github.com/kairos-io/kairos/releases/tag/v3.0.4)

[Compare
Source](https://github.com/kairos-io/kairos/compare/v3.0.3...v3.0.4)

#### ⚠️ Known issues

🐛 Raspberry: EFI booting no longer supported on kernels shipped with
ubuntu > 22.04
[https://github.com/kairos-io/kairos/issues/2249](https://github.com/kairos-io/kairos/issues/2249)

We haven't been able to address the following issues on Alpine:
:bug: It's not possible to login on an Alpine 3.18 RPi
[#&#8203;2439](https://github.com/kairos-io/kairos/issues/2439)
🐛 Filesystem expansion on rpi4 doesn't work with Alpine
[https://github.com/kairos-io/kairos/issues/1995](https://github.com/kairos-io/kairos/issues/1995)
🐛 cgroup_memory not mounted in Alpine rpi4
[https://github.com/kairos-io/kairos/issues/2002](https://github.com/kairos-io/kairos/issues/2002)
🐛 Upgrade on alpine arm errors
[https://github.com/kairos-io/kairos/issues/2135](https://github.com/kairos-io/kairos/issues/2135)
🐛 reset from the GRUB menu on alpine, gets stuck in an endless loop
[https://github.com/kairos-io/kairos/issues/2136](https://github.com/kairos-io/kairos/issues/2136)

Deprecation warnings:

Reading of `/etc/elemental/config.yaml` is working again but will be
deprecated in favor of `/etc/kairos/config.yaml`

#### What's Changed

- Fix Reboot hangs for UKI images
[#&#8203;2384](https://github.com/kairos-io/kairos/issues/2384) by
[@&#8203;Itxaka](https://github.com/Itxaka)
- Remove snap from Ubuntu based images by
[@&#8203;mauromorales](https://github.com/mauromorales) in
[https://github.com/kairos-io/kairos/pull/2415](https://github.com/kairos-io/kairos/pull/2415)

**Full Changelog**:
kairos-io/kairos@v3.0.3...v3.0.4

###
[`v3.0.3`](https://github.com/kairos-io/kairos/releases/tag/v3.0.3)

[Compare
Source](https://github.com/kairos-io/kairos/compare/v3.0.2...v3.0.3)

#### ⚠️ Known issues

🐛 Raspberry: EFI booting no longer supported on kernels shipped with
ubuntu > 22.04
[https://github.com/kairos-io/kairos/issues/2249](https://github.com/kairos-io/kairos/issues/2249)

We haven't been able to address the following issues on Alpine:
:bug: It's not possible to login on an Alpine 3.18 RPi
[#&#8203;2439](https://github.com/kairos-io/kairos/issues/2439)
🐛 Filesystem expansion on rpi4 doesn't work with Alpine
[https://github.com/kairos-io/kairos/issues/1995](https://github.com/kairos-io/kairos/issues/1995)
🐛 cgroup_memory not mounted in Alpine rpi4
[https://github.com/kairos-io/kairos/issues/2002](https://github.com/kairos-io/kairos/issues/2002)
🐛 Upgrade on alpine arm errors
[https://github.com/kairos-io/kairos/issues/2135](https://github.com/kairos-io/kairos/issues/2135)
🐛 reset from the GRUB menu on alpine, gets stuck in an endless loop
[https://github.com/kairos-io/kairos/issues/2136](https://github.com/kairos-io/kairos/issues/2136)

Deprecation warnings:

Reading of `/etc/elemental/config.yaml` is working again but will be
deprecated in favor of `/etc/kairos/config.yaml`

#### What's Changed

- Fixes issue with the `bootentry` command in the agent when dealing
with UKI by [@&#8203;mauromorales](https://github.com/mauromorales) in
[https://github.com/kairos-io/kairos/pull/2410](https://github.com/kairos-io/kairos/pull/2410)

**Full Changelog**:
kairos-io/kairos@v3.0.2...v3.0.3

###
[`v3.0.2`](https://github.com/kairos-io/kairos/releases/tag/v3.0.2)

[Compare
Source](https://github.com/kairos-io/kairos/compare/v3.0.1...v3.0.2)

> \[!CAUTION]
> NOTE: The OpenSUSE Tumbleweed flavor of this release was affected by
the xz backdoor (https://nvd.nist.gov/vuln/detail/CVE-2024-3094). For
this reason all affected artifacts have been removed, both from quay.io
(container images) and from GitHub. If you used the Tumbleweed artifacts
of Kairos `3.0.1` or `3.0.2` you should immediately stop the affected
machines and re-install a version which is not affected. If those
systems were exposed to the internet (if ssh was possible) and they
included passwords or keys, it's advised that you rotate those
credentials.
>
> Read more:
>
> -   https://news.opensuse.org/2024/03/29/xz-backdoor/
> -
https://arstechnica.com/security/2024/04/what-we-know-about-the-xz-utils-backdoor-that-almost-infected-the-world/

#### ⚠️ Known issues

🐛 Raspberry: EFI booting no longer supported on kernels shipped with
ubuntu > 22.04
[https://github.com/kairos-io/kairos/issues/2249](https://github.com/kairos-io/kairos/issues/2249)

We haven't been able to address the following issues on Alpine:
:bug: It's not possible to login on an Alpine 3.18 RPi
[#&#8203;2439](https://github.com/kairos-io/kairos/issues/2439)
🐛 Filesystem expansion on rpi4 doesn't work with Alpine
[https://github.com/kairos-io/kairos/issues/1995](https://github.com/kairos-io/kairos/issues/1995)
🐛 cgroup_memory not mounted in Alpine rpi4
[https://github.com/kairos-io/kairos/issues/2002](https://github.com/kairos-io/kairos/issues/2002)
🐛 Upgrade on alpine arm errors
[https://github.com/kairos-io/kairos/issues/2135](https://github.com/kairos-io/kairos/issues/2135)
🐛 reset from the GRUB menu on alpine, gets stuck in an endless loop
[https://github.com/kairos-io/kairos/issues/2136](https://github.com/kairos-io/kairos/issues/2136)

Deprecation warnings:

Reading of `/etc/elemental/config.yaml` is working again but will be
deprecated in favor of `/etc/kairos/config.yaml`

#### What's Changed

- 🤖 Run fedora and ubuntu uki tests by
[@&#8203;Itxaka](https://github.com/Itxaka) in
[https://github.com/kairos-io/kairos/pull/2366](https://github.com/kairos-io/kairos/pull/2366)
- Replace a full test with a line in another test by
[@&#8203;jimmykarily](https://github.com/jimmykarily) in
[https://github.com/kairos-io/kairos/pull/2368](https://github.com/kairos-io/kairos/pull/2368)
- Reduce fedora uki image size by
[@&#8203;mauromorales](https://github.com/mauromorales) in
[https://github.com/kairos-io/kairos/pull/2365](https://github.com/kairos-io/kairos/pull/2365)
- chore(deps): update earthly/earthly docker tag to v0.8.6 by
[@&#8203;renovate](https://github.com/renovate) in
[https://github.com/kairos-io/kairos/pull/2359](https://github.com/kairos-io/kairos/pull/2359)
- 🤖 Allow manual testing of branches for uki jobs by
[@&#8203;Itxaka](https://github.com/Itxaka) in
[https://github.com/kairos-io/kairos/pull/2373](https://github.com/kairos-io/kairos/pull/2373)
- Do installation of kernel at the end of dockerfile by
[@&#8203;mauromorales](https://github.com/mauromorales) in
[https://github.com/kairos-io/kairos/pull/2374](https://github.com/kairos-io/kairos/pull/2374)
- chore(deps): update quay.io/kairos/osbuilder-tools docker tag to
v0.200.8 by [@&#8203;renovate](https://github.com/renovate) in
[https://github.com/kairos-io/kairos/pull/2382](https://github.com/kairos-io/kairos/pull/2382)
- fix(deps): update module github.com/kairos-io/kairos-sdk to v0.0.27 by
[@&#8203;renovate](https://github.com/renovate) in
[https://github.com/kairos-io/kairos/pull/2383](https://github.com/kairos-io/kairos/pull/2383)
- chore(deps): update dependency kairos-io/kairos-framework to v2.7.19
by [@&#8203;renovate](https://github.com/renovate) in
[https://github.com/kairos-io/kairos/pull/2391](https://github.com/kairos-io/kairos/pull/2391)
- Test that after-reset is run when in UKI mode by
[@&#8203;jimmykarily](https://github.com/jimmykarily) in
[https://github.com/kairos-io/kairos/pull/2331](https://github.com/kairos-io/kairos/pull/2331)
- 🤖 Bump osbuilder and drop keys by
[@&#8203;Itxaka](https://github.com/Itxaka) in
[https://github.com/kairos-io/kairos/pull/2381](https://github.com/kairos-io/kairos/pull/2381)
- fix(deps): update module github.com/kairos-io/kairos-sdk to v0.0.28 by
[@&#8203;renovate](https://github.com/renovate) in
[https://github.com/kairos-io/kairos/pull/2394](https://github.com/kairos-io/kairos/pull/2394)
- bump framework image by [@&#8203;mudler](https://github.com/mudler)
in
[https://github.com/kairos-io/kairos/pull/2407](https://github.com/kairos-io/kairos/pull/2407)

**Full Changelog**:
kairos-io/kairos@v3.0.1...v3.0.2

###
[`v3.0.1`](https://github.com/kairos-io/kairos/releases/tag/v3.0.1)

[Compare
Source](https://github.com/kairos-io/kairos/compare/v3.0.0...v3.0.1)

> \[!CAUTION]
> NOTE: The OpenSUSE Tumbleweed flavor of this release was affected by
the xz backdoor (https://nvd.nist.gov/vuln/detail/CVE-2024-3094). For
this reason all affected artifacts have been removed, both from quay.io
(container images) and from GitHub. If you used the Tumbleweed artifacts
of Kairos `3.0.1` or `3.0.2` you should immediately stop the affected
machines and re-install a version which is not affected. If those
systems were exposed to the internet (if ssh was possible) and they
included passwords or keys, it's advised that you rotate those
credentials.
>
> Read more:
>
> -   https://news.opensuse.org/2024/03/29/xz-backdoor/
> -
https://arstechnica.com/security/2024/04/what-we-know-about-the-xz-utils-backdoor-that-almost-infected-the-world/

#### ⚠️ Known issues

🐛 Raspberry: EFI booting no longer supported on kernels shipped with
ubuntu > 22.04
[https://github.com/kairos-io/kairos/issues/2249](https://github.com/kairos-io/kairos/issues/2249)

We haven't been able to address the following issues on Alpine:
:bug: It's not possible to login on an Alpine 3.18 RPi
[#&#8203;2439](https://github.com/kairos-io/kairos/issues/2439)
🐛 Filesystem expansion on rpi4 doesn't work with Alpine
[https://github.com/kairos-io/kairos/issues/1995](https://github.com/kairos-io/kairos/issues/1995)
🐛 cgroup_memory not mounted in Alpine rpi4
[https://github.com/kairos-io/kairos/issues/2002](https://github.com/kairos-io/kairos/issues/2002)
🐛 Upgrade on alpine arm errors
[https://github.com/kairos-io/kairos/issues/2135](https://github.com/kairos-io/kairos/issues/2135)
🐛 reset from the GRUB menu on alpine, gets stuck in an endless loop
[https://github.com/kairos-io/kairos/issues/2136](https://github.com/kairos-io/kairos/issues/2136)

Deprecation warnings:

Reading of `/etc/elemental/config.yaml` is working again but will be
deprecated in favor of `/etc/kairos/config.yaml`

#### What's Changed

- Add docs versioning item in the template by
[@&#8203;mauromorales](https://github.com/mauromorales) in
[https://github.com/kairos-io/kairos/pull/2317](https://github.com/kairos-io/kairos/pull/2317)
- Update earthly/earthly Docker tag to v0.8.5 by
[@&#8203;renovate](https://github.com/renovate) in
[https://github.com/kairos-io/kairos/pull/2333](https://github.com/kairos-io/kairos/pull/2333)
- Install nohang from source for ubuntu by
[@&#8203;liyimeng](https://github.com/liyimeng) in
[https://github.com/kairos-io/kairos/pull/2318](https://github.com/kairos-io/kairos/pull/2318)
- Update softprops/action-gh-release digest to
[`9d7c94c`](https://github.com/kairos-io/kairos/commit/9d7c94c) by
[@&#8203;renovate](https://github.com/renovate) in
[https://github.com/kairos-io/kairos/pull/2320](https://github.com/kairos-io/kairos/pull/2320)
- Update koalaman/shellcheck-alpine Docker tag to v0.10.0 by
[@&#8203;renovate](https://github.com/renovate) in
[https://github.com/kairos-io/kairos/pull/2321](https://github.com/kairos-io/kairos/pull/2321)
- Update quay.io/kairos/osbuilder-tools Docker tag to v0.200.6 -
autoclosed by [@&#8203;renovate](https://github.com/renovate) in
[https://github.com/kairos-io/kairos/pull/2339](https://github.com/kairos-io/kairos/pull/2339)
- Update dependency kairos-io/kairos-framework to v2.7.15 by
[@&#8203;renovate](https://github.com/renovate) in
[https://github.com/kairos-io/kairos/pull/2344](https://github.com/kairos-io/kairos/pull/2344)
- Move nfs-common to common build target in ubuntu flavor by
[@&#8203;kaiehrhardt](https://github.com/kaiehrhardt) in
[https://github.com/kairos-io/kairos/pull/2340](https://github.com/kairos-io/kairos/pull/2340)
- chore(deps): update quay.io/kairos/osbuilder-tools docker tag to
v0.200.7 by [@&#8203;renovate](https://github.com/renovate) in
[https://github.com/kairos-io/kairos/pull/2350](https://github.com/kairos-io/kairos/pull/2350)
- chore(deps): update quay.io/luet/base docker tag to v0.35.1 by
[@&#8203;renovate](https://github.com/renovate) in
[https://github.com/kairos-io/kairos/pull/2352](https://github.com/kairos-io/kairos/pull/2352)
- Bump framework to v2.7.17 by
[@&#8203;mauromorales](https://github.com/mauromorales) in
[https://github.com/kairos-io/kairos/pull/2357](https://github.com/kairos-io/kairos/pull/2357)

#### New Contributors

- [@&#8203;liyimeng](https://github.com/liyimeng) made their first
contribution in
[https://github.com/kairos-io/kairos/pull/2318](https://github.com/kairos-io/kairos/pull/2318)
- [@&#8203;kaiehrhardt](https://github.com/kaiehrhardt) made their
first contribution in
[https://github.com/kairos-io/kairos/pull/2340](https://github.com/kairos-io/kairos/pull/2340)

**Full Changelog**:
kairos-io/kairos@v3.0.0...v3.0.1

###
[`v3.0.0`](https://github.com/kairos-io/kairos/releases/tag/v3.0.0)

[Compare
Source](https://github.com/kairos-io/kairos/compare/v2.5.0...v3.0.0)

#### ⚠️ Known issues

🐛 Raspberry: EFI booting no longer supported on kernels shipped with
ubuntu > 22.04
[https://github.com/kairos-io/kairos/issues/2249](https://github.com/kairos-io/kairos/issues/2249)

We haven't been able to address the following issues on Alpine:
🐛 Filesystem expansion on rpi4 doesn't work with Alpine
[https://github.com/kairos-io/kairos/issues/1995](https://github.com/kairos-io/kairos/issues/1995)
🐛 cgroup_memory not mounted in Alpine rpi4
[https://github.com/kairos-io/kairos/issues/2002](https://github.com/kairos-io/kairos/issues/2002)
🐛 Upgrade on alpine arm errors
[https://github.com/kairos-io/kairos/issues/2135](https://github.com/kairos-io/kairos/issues/2135)
🐛 reset from the GRUB menu on alpine, gets stuck in an endless loop
[https://github.com/kairos-io/kairos/issues/2136](https://github.com/kairos-io/kairos/issues/2136)

Deprecation warnings:

Reading of `/etc/elemental/config.yaml` is working again but will be
deprecated in favor of `/etc/kairos/config.yaml`

#### New and noteworthy

- ✨ Enable secureboot for all flavors (minus alpine) by
[@&#8203;Itxaka](https://github.com/Itxaka) in
[https://github.com/kairos-io/kairos/pull/2140](https://github.com/kairos-io/kairos/pull/2140)
-   📖 Docs now have versioning starting with 3.0.0

#### What's Changed

- Add scp to fedora by
[@&#8203;jimmykarily](https://github.com/jimmykarily) in
[https://github.com/kairos-io/kairos/pull/2154](https://github.com/kairos-io/kairos/pull/2154)
- Remove duplicated zfs installation on rhel by
[@&#8203;mauromorales](https://github.com/mauromorales) in
[https://github.com/kairos-io/kairos/pull/2161](https://github.com/kairos-io/kairos/pull/2161)
- \[uki] Provide proper artifacts for auto-key-enrollment by
[@&#8203;Itxaka](https://github.com/Itxaka) in
[https://github.com/kairos-io/kairos/pull/2172](https://github.com/kairos-io/kairos/pull/2172)
- 🤖 Allow passing flags to enki and bump version by
[@&#8203;Itxaka](https://github.com/Itxaka) in
[https://github.com/kairos-io/kairos/pull/2193](https://github.com/kairos-io/kairos/pull/2193)
- 🐛 Do not recompress compressed firmware by
[@&#8203;Itxaka](https://github.com/Itxaka) in
[https://github.com/kairos-io/kairos/pull/2237](https://github.com/kairos-io/kairos/pull/2237)
- Have different compression depending on the ubuntu release by
[@&#8203;mauromorales](https://github.com/mauromorales) in
[https://github.com/kairos-io/kairos/pull/2270](https://github.com/kairos-io/kairos/pull/2270)
- Slim down Ubuntu by
[@&#8203;mauromorales](https://github.com/mauromorales) in
[https://github.com/kairos-io/kairos/pull/2284](https://github.com/kairos-io/kairos/pull/2284)
- Publish uki base image by
[@&#8203;mauromorales](https://github.com/mauromorales) in
[https://github.com/kairos-io/kairos/pull/2290](https://github.com/kairos-io/kairos/pull/2290)

**Full Changelog**:
kairos-io/kairos@v2.5.0...v3.0.0

</details>

---

### Configuration

📅 **Schedule**: Branch creation - At any time (no schedule defined),
Automerge - At any time (no schedule defined).

🚦 **Automerge**: Disabled by config. Please merge this manually once you
are satisfied.

♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the
rebase/retry checkbox.

🔕 **Ignore**: Close this PR and you won't be reminded about this update
again.

---

- [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check
this box

---

This PR has been generated by [Mend
Renovate](https://www.mend.io/free-developer-tools/renovate/). View
repository job log
[here](https://developer.mend.io/github/marinatedconcrete/config).

<!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiIzNy4yMzAuMCIsInVwZGF0ZWRJblZlciI6IjM3LjM2My41IiwidGFyZ2V0QnJhbmNoIjoibWFpbiJ9-->

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
@jimmykarily
Copy link
Contributor

Idea that came up during planning: We can maybe create a ppa in launchpad (https://launchpad.net) to build the kernel ourselves and just use our package instead. This of course needs someone that knows how to build in launchpad...

@jimmykarily jimmykarily moved this to In Progress 🏃 in 🧙Issue tracking board Sep 23, 2024
@Itxaka
Copy link
Member Author

Itxaka commented Sep 23, 2024

Idea that came up during planning: We can maybe create a ppa in launchpad (launchpad.net) to build the kernel ourselves and just use our package instead. This of course needs someone that knows how to build in launchpad...

The actual code is simple, we just need a diff that changes 1 line

diff --git a/debian.raspi/config/annotations b/debian.raspi/config/annotations
index 5fddd3c1a9..136d8cf4af 100644

-CONFIG_EFI                                      policy<{'arm64': 'y', 'armhf': 'n'}> note<'Not supported on Pi'>
+CONFIG_EFI                                      policy<{'arm64': 'n', 'armhf': 'n'}> note<'Not supported on Pi'>

so ideally it would be

Fork with just that diff -> upstream commits a new versions -> sync fork -> apply patch -> build kernel in a PPA

But who knows how we can trigger that in launchpad... we could do manual checks in a custom repo but then we would not get a PPA.

We could also just use a different kernel for rpi. opensuse, archlinux, etc...

@Itxaka
Copy link
Member Author

Itxaka commented Sep 23, 2024

could also send a patch upstream, see if its accepted lol

@Itxaka
Copy link
Member Author

Itxaka commented Sep 23, 2024

or we could use the upstream linux kernel for rpi? https://github.com/raspberrypi/linux or even the raspberryos kernel?

@jimmykarily
Copy link
Contributor

like this? https://git.launchpad.net/~dkarakasilis/ubuntu/+source/linux-raspi/commit/?id=917694f382899575eb587bb481cb02ef71d9821c

@Itxaka
Copy link
Member Author

Itxaka commented Sep 24, 2024

@jimmykarily jimmykarily self-assigned this Sep 24, 2024
@jimmykarily
Copy link
Contributor

Uploading the artifact fails with:

DEBUG Considering changefile 3429361/ubuntu/linux-raspi_6.8.0-1~ubuntu24.04.1_source.changes
DEBUG Finding fresh policy
INFO Processing upload linux-raspi_6.8.0-1~ubuntu24.04.1_source.changes
INFO Upload was rejected:
INFO 	6.8.0-1~ubuntu24.04.1: should be 6.8.0-1011.12 according to changes file.
INFO Committing the transaction and any mails associated with this upload.

Maybe relevant: https://help.launchpad.net/PPAQuickStart/FAQ#I_get_an_error_about_versions

@jimmykarily
Copy link
Contributor

jimmykarily commented Sep 25, 2024

I asked for some guidance in the launchpad users mailing list: https://lists.launchpad.net/launchpad-users/

@jimmykarily
Copy link
Contributor

jimmykarily commented Sep 25, 2024

In the meantime, we can just dpkg -i https://archive.raspberrypi.org/debian/pool/main/r/raspberrypi-firmware/raspberrypi-kernel_1.20230405-1_arm64.deb and see if it works?

(repo with the kernel: https://archive.raspberrypi.org/debian/pool/main/r/raspberrypi-firmware/)

@jimmykarily
Copy link
Contributor

I'm trying it here: https://github.com/kairos-io/kairos/compare/2249-try-upstream-rpi-kernel?expand=1 but it turns out they've removed some packages too?

    ubuntu-22.04-rpi *failed* | E: Unable to locate package linux-modules-extra-raspi
    ubuntu-22.04-rpi *failed* | ERROR
    ubuntu-22.04-rpi *failed* |       The command
    ubuntu-22.04-rpi *failed* |           RUN apt-get update && apt-get install -y --no-install-recommends     linux-firmware-raspi     linux-modules-extra-raspi     && apt-get clean && rm -rf /var/lib/apt/lists/*

I tried to see if this is a mistake in our Dockerfile, maybe the file is renamed or something?

@jimmykarily
Copy link
Contributor

@jimmykarily
Copy link
Contributor

This is what it boots into:

image

Not excatly what we had in mind :D.

@jimmykarily
Copy link
Contributor

jimmykarily commented Sep 27, 2024

Hitting ESC shows errors like:

Failed to open device: 'sdcard' (cmd 371a0010 status 1fff0001)

@jimmykarily
Copy link
Contributor

We tried things, it doesn't work. We have other flavors that work. Let's close it.

@github-project-automation github-project-automation bot moved this from In Progress 🏃 to Done ✅ in 🧙Issue tracking board Sep 30, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
Archived in project
Development

No branches or pull requests

5 participants