Code Monkey home page Code Monkey logo

Comments (4)

Itxaka avatar Itxaka commented on June 27, 2024

Good test for this.

  • Build uki rootfs
  • Pack the /usr/firmware dir into a sysext
  • Remove /usr/firmware from rootfs
  • Build image, add sysext under the overlay-iso dir so it gets picked by the agent on install
  • Install and reboot
  • systemd-stub will try to measure the sysext and pass it to the kernel in a CPIO format. This usually gets copied intot he initramfs under /.extra/sysext
  • This fails under QEMU due to an error allocating pages

Hint: A way of skipping this would be to make so the agent does copy into the /EFI/kairos/active.efi.extra.d/ dir, as stub autoloads them from there. We could just store them under /EFI/kairos/sysext and make immucore move those sysext into /run/extensions on boot directly. That would skip the systemd-stub loading the files into memory to measure them. As we currently are NOT using those measurements for anything, it would be a quick workaround.

from kairos.

Itxaka avatar Itxaka commented on June 27, 2024

FYI I can confirm that the workaround works.

Manually copied the firmware.raw extension into /run/extensions and refreshed and magically all the firmware appeared correctly :D

from kairos.

Itxaka avatar Itxaka commented on June 27, 2024

lol, nice, this works on systemd-256 I was able to auto copy the firmware sysext and have it autoload on boot :D

from kairos.

jimmykarily avatar jimmykarily commented on June 27, 2024

Before we close this, let's bump the sizes until things break, just to know what our limit is.

from kairos.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.