-
-
Notifications
You must be signed in to change notification settings - Fork 1
Wip/initrd separation #3
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
Open
hunger
wants to merge
24
commits into
master
Choose a base branch
from
wip/initrd_separation
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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.
... include some reformating.
Owner
Author
|
@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.
a94b07a to
f4d94f5
Compare
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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?