linux-cachyos icon indicating copy to clipboard operation
linux-cachyos copied to clipboard

Include btrfs in kernel instead of as a module

Open andersrh opened this issue 2 months ago • 4 comments

On Fedora the root btrfs filesystem fails to mount, when it's included as a module. Therefore we want to include it in the kernel during build.

andersrh avatar Dec 17 '25 22:12 andersrh

This happens when the module isn't in the initramfs. Can you inspect your initramfs if that is the case and maybe fix it in dracut instead?

Additionally I saw that you did https://github.com/CachyOS/copr-linux-cachyos/commit/d8dad26397df66e0dcfce247b382af6ff654eb9a. Instead of bundling a custom config you can add a scripts/config -e line on the spec.

1Naim avatar Dec 18 '25 05:12 1Naim

Hi @1Naim

I added it via scripts/config -e in the spec file instead now. I know that a custom config file was a overcomplicated way to do it 😅 I just wanted to make sure to fully replicate the behaviour from the stable kernel where it was set to =y. And that's also why I wanted to make this PR.

I dont know if there is a specific reason that in LTS it is set to =m and stable set to =y in cachyos?

andersrh avatar Dec 20 '25 17:12 andersrh

I dont know if there is a specific reason that in LTS it is set to =m and stable set to =y in cachyos?

I'm not sure either actually. I guess it was changed at some point? I'll double check in the morning buf if thats the case then theres no reason why this PR shouldn't be merged.

Thanks.

1Naim avatar Dec 20 '25 19:12 1Naim

I'm not sure either actually. I guess it was changed at some point? I'll double check in the morning buf if thats the case then theres no reason why this PR shouldn't be merged.

Thanks.

okay sounds good 👍 . thank you

andersrh avatar Dec 20 '25 20:12 andersrh

It was changed in https://gitlab.archlinux.org/archlinux/packaging/packages/linux/-/merge_requests/8 by Arch and linux-lts config wasn't adapted. Can you port these changes to your PR? Thanks.

1Naim avatar Dec 21 '25 11:12 1Naim