-
Notifications
You must be signed in to change notification settings - Fork 304
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
ways to update grub.cfg with an OSTree update #2052
Comments
I was just informed by a colleague that this approach has a flaw (basically it doesn't work). In grub menu, you don't need to always choose the latest deployment but you can opt for an older one, in which case a wrong grub.cfg would be used. So I don't know how to do this properly. #479 seems like a good option but it's not finished. |
I am going to close this because it was basically non-sense. To solve the problem with kernel arguments, we currently stopped using It is unpleasant that |
@clime I am needing to be able to update kernel arguments also. Could you share the script/process you came up with to accomplish this? |
Well, there is a script with specific name at |
Hello,
it seems currently, OSTree is designed to have
/boot
placed in the root directory of either root partition (there are some quirks with this, however ad. #2047) or a dedicated boot partition. Grub loads grub.cfg and the BLS entries from there to get a kernel and initramfs. And in initramfs then, the root is switched to a particular version of a filesystem.The problem is how to be able to update also kernel parameters with this. In grub.cfg, there is
default_kernelopts
variable, which is generated like this:I then use this variable to set options in BLS loader entries:
(the
options
from the initial ostree boot loader entry is being carried over into the new entries - only theostree=
param is being modified, that's why this works)The problem is how to update kernel parameters with this scheme. Some new version of kernel might require a setup of some parameters to function properly for a given use-case (i.e. ACPI needs be switched off for AMD Threadripper, or switched back on when a fix is provided:
pcie_aspm=
option specifically). The question is how to achieve this because grub.cfg anddefault_kernelopts
hence are not updatable while kernel is.I know about #479 but it doesn't seem to be yet finished and I am possibly thinking about something slightly else.
I would like to provide static
grub.cfg
in e.g./usr/lib/modules/<kernel version>
and I would like to have thisgrub.cfg
copied into/boot/grub2/
during deployment, i.e. when the loader entries are regenerated also thisgrub.cfg
file is copied into the place if it exists.Can something like this be done with OSTree?
Can it be done atomically?
Could you show me some pointers into code where this could be implemented if this functionality doesn't exist yet?
Thank you
The text was updated successfully, but these errors were encountered: