-
Notifications
You must be signed in to change notification settings - Fork 59
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
design journal persistence for early provisioning #955
Comments
Is this RFE driven by a specific instance you have in mind where the Ignition kargs reboot nuked system logs you cared about? Related: #928 |
Not me specifically, but from an internal chat where another team member was wondering how to find the logs from |
Sounds reasonable to me. Do you want to discuss this at the weekly meeting? |
Thanks! Reason from @cgwalters : the journal isn't persisted here is because we reboot before switching root, which is when systemd saves it |
Generally agree that this would be useful, but most probably only for debugging some very specific cases. We also have to be careful on loading "untrusted" content from This also has implications for measured boot in FCOS (which does not exist/work yet but could make it harder). |
We discussed this in today's community meeting. Some things raised:
|
Maybe instead of the whole journal, we just write a tiny bit of information into |
Agree with @cgwalters , maybe can output the simple logs include |
@HuijingHei If the goal is just to demonstrate that the system rebooted after adding kernel arguments, you don't need logs for that, since you'll be able to see the new arguments in |
If in this case, the logs about early reboot are less important, just check the final goal |
A general philosophy of Ignition is that we have the system fully configured before switching into the real root and running user code. For example, using Ignition kernel argument support we run
systemctl reboot
from the initramfs.However, this means that all logs from this early provisioning time are lost because
systemd-journal-flush.service
only runs when successfully switching to the real root.This is likely something to take to upstream systemd, but basically I'd propose as a strawman that we configure journald to persist to
/boot/journal
or so during this early provisioning phase, and then have it switch over.The text was updated successfully, but these errors were encountered: