Skip to content

Debian/Fedora build-script not working under Qubes OS Debian/Fedora VMs #1412

@dmn86q

Description

@dmn86q

What is happening?

I'm trying to build Linux Heads locally but both build-scripts for either Debian or Fedora through an error at me. I'm using Qubes OS 4.1 on a Lenovo T440p (i7/16GB RAM) flashed with coreboot, using Conor's Guide but have not flashed heads so far. I installed all dependencies necessary for a build mentioned under: General-Building

On a debian vm the build fails, because of a checksum mismatch:

Screenshot_2023-05-25_18-11-32

On the fedora side of things, the cross-compiler fails the build step. There is no package available when typing sudo dnf install cross-gcc as found in the circle-ci list of installed packages:

fedora-heads-builder

On Qubes OS you cannot build the Archlinux-Template either, since the build-script fails on building something with core-libvirt needed.

qubes-os-archlinux-builder

Questions and Assumptions

  1. Is the debian checksum mismatch of zlib a debian issue, a Qubes one, or one heads should take care of?
  2. The cross-gcc package is not there anymore? Does the build-script need rewriting or do the fedora folks have an issue here?
  3. The Archlinux template failing gives me the same assumption than the fedora one - script rewriting or their's?

Why all this?

I stumbled across those errors, since I bought two refurbished Lenovo T440p last months, to use them with Linux Heads, Coreboot and HOTP. While I was able to install the latest heads build from circle-ci via CH341_a flash-programmer, I encountered a problem booting .iso files from a usb-drive. The gpg-verification of Qubes OS works, but I do not get any screen output, since i915 module is not present. insmod answers: No such file or directory, when trying to load the module manually. Another user reported the same problem here: https://github.com/osresearch/heads/issues/702

It took me to building heads locally myself, with a t440p-hotp-maximized.config yet to be edited, but I'm not getting the build-environment to build a default build in the first place.

The second approach was to build an Arch Linux Template, build arch-linux in a chroot environment and use the build artifacts from circle-ci, i.e. the initrd.cpio provided. I am not sure how to build arch-linux with a different initrd.img in place, so help is greatly appreciated. If I am misled by the assumption to build an .iso from the chroot environment and add a different initrd.img would be a smart idea, feel free to stop me. But again, the build environment is stopping me from trying this in the first place.

I feel a little lost, which path to persuade from here. Is the approach of trying to build heads locally and Debugging the t440p-hotp-maximized.config and coreboot.config the way to go? Or shall I try to build an archlinux.iso with the initrd.cpio from circle-ci included? Or is there any other way of handling this issue?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions