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

Store safeboot.conf in initramfs #13

Closed
osresearch opened this issue May 13, 2020 · 2 comments
Closed

Store safeboot.conf in initramfs #13

osresearch opened this issue May 13, 2020 · 2 comments
Labels
enhancement New feature or request question Further information is requested

Comments

@osresearch
Copy link
Owner

Rather than adding an ever ending list of things to the kernel command line, perhaps the /etc/safeboot/safeboot.conf should be stored in the initramfs.

Pros: more flexibility in arguments, less parsing of kernel command lines
Cons: requires regenerating the initramfs more often.

@osresearch osresearch added enhancement New feature or request question Further information is requested labels May 13, 2020
@osresearch
Copy link
Owner Author

The safeboot config, TPM policies and sealed secrets can go into the initrd, since they do not change between things. The dmverity root hash could go into the initrd, but can't be stored on the disk, since it depends on the contents of the root filesystem.

Part of building the signed unified image could be appending our specific initrd contents. Linux will decompress and extract any number of cpio files concatenated, as long as they are aligned on 512-byte boundaries.

@osresearch
Copy link
Owner Author

Config is now stored in the initrd as part of #58

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request question Further information is requested
Projects
None yet
Development

No branches or pull requests

1 participant