-
Notifications
You must be signed in to change notification settings - Fork 198
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
Support rpm-ostree initramfs --enable-overlay #1930
Comments
OK so looking at this, we'd have to basically reimplement parts of dracut that "know" which files from And specifically for networking...ugh. A whole lot going on here. |
@cgwalters another interesting idea: KARGs? Dracut modules use |
Yeah, just requiring users specify kernel args for networking for the tang case would work. |
OK so this came up again for https://bugzilla.redhat.com/show_bug.cgi?id=1775917 and I realized that anyone who needs this today can do:
This doesn't scale really well in that one needs to enumerate all config files that one needs, but it's there if needed. |
Followed up on systemd list: https://lists.freedesktop.org/archives/systemd-devel/2019-November/043754.html |
This will require work in libostree too, since right now it can only handle one |
The FIPS mode use case should also be taken into account when designing this. See: https://gitlab.com/redhat-crypto/fedora-crypto-policies/merge_requests/53#note_251907083. |
Ahh OK, so the semantics you were thinking of was that there was a single overlay, and we have a list of Wonder if this shouldn't be a separate command instead, e.g. Then |
Although, testing now it seems like overlaid initrds will happily shadow base content. So it's not exactly the same situation (though... even layered packages can still change base content via scriptlets, so maybe it is still apt). |
Cross-referencing: dracutdevs/dracut#792 One thing I wanted to follow up with @cgwalters here that was mentioned there:
When you say "initramfs mutation", are you still referring to overlaying a second initrd or rebuilding the initrd? (Though maybe the question is moot since overlaying is still definitely modifying the initrd rootfs in the end). I'm not familiar with initrd signing, but it sounds interesting. Does that system not have mechanisms for initrds rebuilt on the machine (given that it's the case today for the majority of systems)? If so, we could reuse that for the overlay initrd. |
Mostly the latter, but even an initramfs overlay is injecting code.
Well, there are a few approaches to it. One is actually to concatenate the kernel+initramfs together and sign that whole thing. And you're right, any system that allows signing can work "client side" too...if you follow the musings in ostreedev/ostree#1959 (and earlier) anything using signing/verity basically either needs to support users doing their own signatures on their privileged code, or not support privileged code at all. |
This command allows users to cheaply inject configuration files in the initramfs stage without having to regenerate the whole initramfs (or even a new OSTree commit). This will be useful for configuring services involved in bringing up the root block device. ``` $ echo 'hello world' > /etc/foobar $ rpm-ostree ex initramfs-etc --track /etc/foobar Staging deployment... done Run "systemctl reboot" to start a reboot $ rpm-ostree status State: idle Deployments: ostree://fedora:fedora/x86_64/coreos/testing-devel Version: 32.20200716.dev.1 (2020-07-16T02:47:29Z) Commit: 9a817d75bef81b955179be6e602d1e6ae350645b6323231a62ba2ee6e5b9644b GPGSignature: (unsigned) InitramfsEtc: /etc/foobar ● ostree://fedora:fedora/x86_64/coreos/testing-devel Version: 32.20200716.dev.1 (2020-07-16T02:47:29Z) Commit: 9a817d75bef81b955179be6e602d1e6ae350645b6323231a62ba2ee6e5b9644b GPGSignature: (unsigned) $ reboot (boot into rd.break) sh-5.0# cat /etc/foobar hello world ``` See the libostree side of this at: ostreedev/ostree#2155 Lots more discussions in: coreos/fedora-coreos-tracker#94 Closes: coreos#1930
Would this also work for allowing bluetooth at LUKS decryption screen? |
For that, I think you'd be better served by |
Unfortunetely that only includes files inside |
Gotcha. Thanks for bringing this up. We currently don't expose |
Moving this from ostreedev/ostree#1936 - quoting
Basically we want
rpm-ostree initramfs --enable-overlay
.This would also fix fedora-silverblue/issue-tracker#3
The text was updated successfully, but these errors were encountered: