-
-
Notifications
You must be signed in to change notification settings - Fork 171
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
[Fedora 35] No longer able to boot Fedora's stock kernel #383
Comments
Kernel-devel and kernel-headers shouldn't intervene in the runtime of anything 🤔 Have you tried reinstalling the stock kernel ? |
Yes I have (dnf reinstall kernel kernel-core). I also tried completely removing and reinstalling too. And I just noticed everything that fails are systemd services |
Can you give the output of My first guess is that it has something to do with ZSTD compression of modules again. |
I can't get the status of those services from the stock kernel because it fails to boot. I can get the tkg one but they runs just fine.
That's what I think might've happened too, how do I change the tkg one to zstd instead of lz4? |
Can you get a journalctl of it ? For example you boot in the kernel that fails, then boot back in the one that works, then do
Arch uses ZSTD by default, and we made other distros' follow suite, Ubuntu got an issue with it so we disabled it. But I don't understand how Fedora has issues with as it boots fine with the tkg kernel but not the stock kernel anymore... That's weird, you can try to build another tkg kernel without zstd and see if it boots fine: you have to use |
I tried
I disabled compression on the tkg kernel and it boots just fine. However, I tried to copy the config of the stock kernel and build the tkg kernel based on it. Guess what? It failed to boot |
That's an interesting information, can you attach both here ? Let's try to diff that. But it still puzzles me that your system somehow adapted to the tkg kernels and stopped working with what it was meant to work with. Did you do a filesystem change for example ? |
Sure config-5.15.6-200.fc35.x86_64 and config-5.15.7_tkg_bmq
No, I still use the stock fedora btrfs config |
The difference between the two files is too big to find anything interesting unfortunately. But after having a look at what Gentoo recommends to have in the kernel .config for systemd, they redirect to this up to date file. You can have a look to see if every option is respected in Fedora's config file: have you tried an older or newer Fedora kernel ? |
I also tried kernel-5.14.10-300.fc35, which is the version came with the livecd and it doesn't boot either. I'll try to install linux-tkg on a fresh installation to see if anything happen |
I tried a fresh install and tkg + stock worked just fine. I think it might have something to do with grub because I remember doing 'grub2-mkconfig -o /boot/efi/EFI/fedora/grub.conf'. Apparently, that is not recommended after F33. I had tried ways to reset it without success. But the fact that it broke the stock kernel is super weird |
What do they recommend ?? Okay some weird edge case bug then |
https://ask.fedoraproject.org/t/documentation-errors-on-grub-cfg-location-for-fedora-34-and-up/17921 So, |
I was unfortunate and experienced this same problem. None of the stock kernels I had would boot. Only the two I disabled the After searching online, I stumbled upon this page and there I saw a solution to disable or enter a command from the terminal like this: Now I'm able to boot normally with the stock kernel. I have no idea, what selinux is (other than it is Suse Enterprise Linux) or what kind of security issues I might have introduced by disabling it. If anyone has any information how to restore selinux and continue to use stock kernels and linux-tkg-kernels together, please reply. |
@wallcarpet40 commented on Jan 13, 2022, 4:37 PM UTC:
|
@PoorPocketsMcNewHold Thank you for the link. I changed the |
Same for me, |
Proposed patch for this issue: As people here suggested a link with SELinux, I investigated. Actually, the TKG kernel does not support SELinux at runtime as expected in Fedora.
SELinux expect the files to have some flag associated, as a consequence "to prevent incorrectly labeled and unlabeled files from causing problems, SELinux automatically relabels file systems when changing from the disabled state to permissive or enforcing mode." Thus my proposal is the setup the kernel configuration like fedora for the SELinux part, when using Fedora. I tested almost all TKG kernels with my patch (except 6.6.0 as it is broken currently), they all compile and run. Boot time is normal, logs are what is expected (except for zram/zswap for older kernel wich fails, but is is another story, and sometimes freeze using 6.5 but might be related to another issue). Switching from TKG to stock is flawless. Regards & bisous les grenouilles. |
I tried the Chevek patch on Fedora 38 SELinux is enabled :
And I can reboot to the default fedora kernel without any problem. |
Fix Frogging-Family#383: Add SELinux support on Fedora builds
I used 3 patches to help with issue #29568 , AFAICT those only apply to kernel 6.6. Thus I put all this in there and I was able to have a fonctionnal kernel 6.6.1 TKG kernel on Fedora 39 installing and running flawlessly with SElinux and SWAPonZRAM support : I improved how I change the kernel configuration using the proper tools and added SWAPonZRAM configuration, which is a Fedora feature https://fedoraproject.org/wiki/Changes/SwapOnZRAM There is still a minor issue with SWAPonZRAM configuration as the script ask to choose ZSWAP_COMPRESSOR_DEFAULT, even if I explicitly configured for ZSWAP_COMPRESSOR_DEFAULT_LZO. This is a matter I need to investigate further. |
I've tried to get ride of this configuration message (the choice should be "ZSWAP_COMPRESSOR_DEFAULT_LZO"):
But I'm stuck. Please help me on this one. To try:
|
I tested PR Chevek@5e8105d against 6.6.1 and 6.7-RC. In both cases the boot sequence was normal on Fedora 39. SELinux is enforcing and it seems even SwapOnZRAM works fine.
|
Hello, please try #848 and see if it fixes this ! |
Before I installed linux-tkg, I was able to boot the stock kernel just fine. But since then, every time I boot up the stock kernel, the splash screen spits out something like this:
Despite all that, linux-tkg still boots up just fine but I'd like to be able to use stock kernel just in case.
Perhaps the fact that it replaces the stock kernel-headers and kernel-devel is related to this?
The text was updated successfully, but these errors were encountered: