Replies: 3 comments 5 replies
-
Hi, we just come up with another idea. Can we assume the installer's kernel is the same version with the payload's kernel (at least in same major release)? Like, assuming anaconda installer running on Fedora 33 will not install a Fedora 34 payload, is this right? If so the kdump-anaconda-addon can simply read |
Beta Was this translation helpful? Give feedback.
-
I think we can add support for installation tasks that are run after the payload installation and before the bootloader installation. We plan to make the scheduling of the installation tasks more flexible anyway, so it would be just a temporary workaround. These tasks will be created right before their execution and we can provide the kernel version list of the installed payload. In the future, the kernel version list will be provided by a DBus module, so it will be a temporary workaround as well. It would work the same way as the bootloader installation: anaconda/pyanaconda/installation.py Lines 338 to 352 in e2516cb This should work fine for all types of payloads except for RPM OSTree, where we don't generate the kernel version list. However, I think we can change that. You solution will work only if there is an RPM database on the installed system. Also, I am not sure how Just a note, we don't plan to support imports from |
Beta Was this translation helpful? Give feedback.
-
The support for the new installation tasks is implemented in #3452. |
Beta Was this translation helpful? Give feedback.
-
Hi, I'm working on kdump-anaconda-addon, and recently, we are introducing a new
crashkernel.conf
file in the kernel package. Thiscrashkernel.conf
will contain the default value for crashkernel= kernel parameter, and kdump-anaconda-addon will want to read from this file and set kernel boot param for bootloader.The problem here is that the file is only accessible after kernel package is installed, (will be installed at
/usr/lib/modules/<kver>/crashkernel.conf
)Ideally, the addon should be able to insert some tasks after payload installation, and before bootloader installation, this will be the best approach for this kdump new feature.
But\ now anaconda only allow addons can to tasks in the very beginning, or at the end of the whole installation.
So currently, I can manually get the kernel list after installation finished and set the value by calling
kdumpctl reset-crashkernel
(this is also a new command introduced to reset the crashkernel value accordingly tocrashkernel.conf
):https://github.com/ryncsn/kdump-anaconda-addon/blob/578b32e694ab51bd6f47b517127b52025fad9bcc/com_redhat_kdump/service/installation.py#L110
But even in this way, I'm not sure what is the recommended way to get the kernel version list. Above code worked, but it may only work with DNF payload. Any suggestion or help is appreciated, thanks!
Beta Was this translation helpful? Give feedback.
All reactions