Skip to content

Conversation

@hunger
Copy link
Owner

@hunger hunger commented Sep 1, 2020

This patch moves much of the clrm-specific code out of the initrd creation, making it easier to add support for dracut.

Could you please check whether this patch works for you?

hunger and others added 22 commits June 6, 2020 16:44
This enables to bind-mounting the efi partition when necessary.
Update firestarter to mount the image straight from borg. This
saves a lot of useless copying that would otherwise be necessary.

While at it, rename "directory" to "copy" and make that take
a block device, a directory or a file name.
Currently broken for images since systemd-repart fails to partition
those (see systemd/systemd#16242).
This is the old qemu target with a new name and updated to the new
firestarter internals. I had thought nobody wants to use this, so
I removed it, hoping to eventually replace it with improved deploy
target for firestarter.

But apparently this is used, so re-add it!
Add ensure_depmod with _depmod_all helper command that is used by
type-base to make sure the kernel module dependencies are up-to-date
for all installed kernel versions on export.
Let black handle the formatting and fix some small typos while at it.
DEPMOD went missing in binarymanager.py
Fix type annotations raised by pylance.

This patch makes clrm *almost* pylance clean, but I could not figure
out what to do about the rest:-)
This is the system_name, but with any leading "system-" stripped.
Use the pretty system name from SystemContext and not the DISTRO_ID.

This way several systems can be had on one machine at the same time.

Firestarter just exports anything as is, so deployment works with
these changes.
This was a quick hack I did for one of my old laptops that should
probably never have made it out into the wild.

It did dump the TPM registers, pass all of them through md5sum and
then turned that into words to give an idea of the code that had
been loaded so far. It does not really improve security, and was
more informational than anythig else.
Allow for different commands registering the exact same substitutions
as other commands. This is nice when you want to override existing
commands in your own system definitions directory or when you want to
have a several flavors of the same command that a user can pick.
@hunger
Copy link
Owner Author

hunger commented Sep 1, 2020

@phunni: Does this work for your BIOS-based machines, too? I would think it will, but a proper test would be greatly appreciated.

Gracefully handle unset working directory in file helper if only
absolute paths are used.
Create a custom initrd with all that CLRM-specific logic and append
that to the "normal" initrd created by mkinitcpio.

This disentangles the CLRM-specific setup from mkinitcpio, so that
it should be easier to use any other initrd creation tool that
produces a systemd-based initrd.
@hunger hunger force-pushed the wip/initrd_separation branch from a94b07a to f4d94f5 Compare September 5, 2020 14:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants