custom kernel

How would I go about adding a custom kernel I tried adding the copr then using the install option but if I rebase to that built image it says multiple kernels found in module
Solution:
you can try sth like this https://github.com/askpng/solarpowered/blob/cachy/recipes/kernels/cachy.yml and probably use allow-erasing: ``` install: allow-erasing: true install-weak-deps: false...
GitHub
solarpowered/recipes/kernels/cachy.yml at cachy · askpng/solarpowered
Fedora Silverblue images for my personal use. Learning project, frequent changes. - askpng/solarpowered
Jump to solution
23 Replies
Nix Eyes
Nix EyesOP3d ago
GitHub
hyprbazzite/recipes/recipe.yml at main · EyesWithoutFace/hyprbazzite
Contribute to EyesWithoutFace/hyprbazzite development by creating an account on GitHub.
amel
amel2d ago
try this
modules:
- type: rpm-ostree
repos:
# - https://copr.fedorainfracloud.org/coprs/bieszczaders/kernel-cachyos-addons/repo/fedora-%OS_VERSION%/bieszczaders-kernel-cachyos-addons-fedora-%OS_VERSION%.repo - if you need cachyos-ksm-settings
- https://copr.fedorainfracloud.org/coprs/bieszczaders/kernel-cachyos/repo/fedora-%OS_VERSION%/bieszczaders-kernel-cachyos-fedora-%OS_VERSION%.repo #cachy kernel
install:
# - cachyos-ksm-settings - if you need cachyos-ksm-settings
- libcap-ng
- libcap-ng-devel
- procps-ng
- procps-ng-devel
- type: script
snippets:
- "echo 'Enable SElinux policy' && setsebool -P domain_kernel_load_modules on"
- "echo 'CachyOS kernel override' && rpm-ostree override remove kernel kernel-core kernel-modules kernel-modules-core kernel-modules-extra --install kernel-cachyos"
modules:
- type: rpm-ostree
repos:
# - https://copr.fedorainfracloud.org/coprs/bieszczaders/kernel-cachyos-addons/repo/fedora-%OS_VERSION%/bieszczaders-kernel-cachyos-addons-fedora-%OS_VERSION%.repo - if you need cachyos-ksm-settings
- https://copr.fedorainfracloud.org/coprs/bieszczaders/kernel-cachyos/repo/fedora-%OS_VERSION%/bieszczaders-kernel-cachyos-fedora-%OS_VERSION%.repo #cachy kernel
install:
# - cachyos-ksm-settings - if you need cachyos-ksm-settings
- libcap-ng
- libcap-ng-devel
- procps-ng
- procps-ng-devel
- type: script
snippets:
- "echo 'Enable SElinux policy' && setsebool -P domain_kernel_load_modules on"
- "echo 'CachyOS kernel override' && rpm-ostree override remove kernel kernel-core kernel-modules kernel-modules-core kernel-modules-extra --install kernel-cachyos"
replace kernel-cachyos with kernel-cachyos-rt if thats what you need you dont need to use extra keys if you use copr repos
Nix Eyes
Nix EyesOP2d ago
okay let me try
Nix Eyes
Nix EyesOP2d ago
Hastebin
Hastebin is a free web-based pastebin service for storing and sharing text and code snippets with anyone. Get started now.
Nix Eyes
Nix EyesOP2d ago
getting build issues sorry my clipboard seems to be crashing discord
Nix Eyes
Nix EyesOP2d ago
Hastebin
Hastebin is a free web-based pastebin service for storing and sharing text and code snippets with anyone. Get started now.
amel
amel2d ago
this is the exact error from your build log
[08:18:37 g.i/e/hyprbazzite:latest] => 2.048 error: Could not depsolve transaction; 2 problems detected:
[08:18:37 g.i/e/hyprbazzite:latest] => 2.048 Problem 1: package kmod-zenergy-0.0.git.36.32f6eb3d-1.fc41.x86_64 from @System requires kernel-uname-r = 6.13.7-108.bazzite.fc41.x86_64, but none of the providers can be installed
[08:18:37 g.i/e/hyprbazzite:latest] => 2.048 - conflicting requests
[08:18:37 g.i/e/hyprbazzite:latest] => 2.048 Problem 2: package kernel-devel-matched-6.13.7-108.bazzite.fc41.x86_64 from @System requires kernel-core = 6.13.7-108.bazzite.fc41, but none of the providers can be installed
[08:18:37 g.i/e/hyprbazzite:latest] => 2.048 - package kernel-core-6.13.7-108.bazzite.fc41.x86_64 from @System requires kernel-modules-core-uname-r = 6.13.7-108.bazzite.fc41.x86_64, but none of the providers can be installed
[08:18:37 g.i/e/hyprbazzite:latest] => 2.048 - conflicting requests
[08:18:37 g.i/e/hyprbazzite:latest] => 2.048 error: Could not depsolve transaction; 2 problems detected:
[08:18:37 g.i/e/hyprbazzite:latest] => 2.048 Problem 1: package kmod-zenergy-0.0.git.36.32f6eb3d-1.fc41.x86_64 from @System requires kernel-uname-r = 6.13.7-108.bazzite.fc41.x86_64, but none of the providers can be installed
[08:18:37 g.i/e/hyprbazzite:latest] => 2.048 - conflicting requests
[08:18:37 g.i/e/hyprbazzite:latest] => 2.048 Problem 2: package kernel-devel-matched-6.13.7-108.bazzite.fc41.x86_64 from @System requires kernel-core = 6.13.7-108.bazzite.fc41, but none of the providers can be installed
[08:18:37 g.i/e/hyprbazzite:latest] => 2.048 - package kernel-core-6.13.7-108.bazzite.fc41.x86_64 from @System requires kernel-modules-core-uname-r = 6.13.7-108.bazzite.fc41.x86_64, but none of the providers can be installed
[08:18:37 g.i/e/hyprbazzite:latest] => 2.048 - conflicting requests
version problem
Nix Eyes
Nix EyesOP2d ago
oh mustve missed sorry I have dyslexia so sometimes errors are hard to read ngl
amel
amel2d ago
as i said, cachy is already on 6.14.*, bazzite is still behind that
Nix Eyes
Nix EyesOP2d ago
yeah I got cachy on my current install and kmod issues still as well anyway to just disable the kmods?
amel
amel2d ago
its out of my knowledge level atm, but i can suggest you try using bluebuild on your local machine and just run the this, figure out what package conflicts are around, and eliminate the conflicting packages one by one eithr that or use the (experimental?) dnf module with allow-erasing: true
Nix Eyes
Nix EyesOP2d ago
eliminate how exactly is adding them to rpm-ostree override remove not the way? because if so I have them all added to removedbasepackages dnf5 module ?
amel
amel2d ago
yeah basically you identify packages that are causing problems, in the error above for example its kmod-zenergy and kernel-devel-matched. remove them using rpm-ostree module, run build, if it errors see what package is erroring, etc. again this is probablly not the best approach
amel
amel2d ago
theres also the experimental* (i say so bc its not on the main module repo yet & is undergoing dev still afaik) dnf module https://github.com/blue-build/modules/tree/dnf-module/modules/dnf
GitHub
modules/modules/dnf at dnf-module · blue-build/modules
BlueBuild standard modules used for building your Atomic Images - blue-build/modules
Solution
amel
amel2d ago
you can try sth like this https://github.com/askpng/solarpowered/blob/cachy/recipes/kernels/cachy.yml and probably use allow-erasing:
install:
allow-erasing: true
install-weak-deps: false
packages:
# - cachyos-ksm-settings
# - cachyos-settings
install:
allow-erasing: true
install-weak-deps: false
packages:
# - cachyos-ksm-settings
# - cachyos-settings
but im not sure if it will work (well or at all, bc again, a/kmods) on your end, since bazzite has its own optimization (also, YMMV)
GitHub
solarpowered/recipes/kernels/cachy.yml at cachy · askpng/solarpowered
Fedora Silverblue images for my personal use. Learning project, frequent changes. - askpng/solarpowered
Nix Eyes
Nix EyesOP2d ago
let me try that dnf module still having issues trying a different couple things based off the two links provided
amel
amel2d ago
hmm honestly i cant advise much from here, but bazzite kernel is probably not going to be easily replaceable in bazzite i see youre already asking at the ublue discord so i think they might be able to help you further
Nix Eyes
Nix EyesOP2d ago
yeah thinking they will as well if not maybe I can try aurora or something else
amel
amel2d ago
yea that should be easier or like wayblue even https://github.com/wayblueorg/wayblue
GitHub
GitHub - wayblueorg/wayblue: Fedora Atomic images for wayland compo...
Fedora Atomic images for wayland compositors. Contribute to wayblueorg/wayblue development by creating an account on GitHub.
amel
amel2d ago
you could try using this rpm-ostree module and specify to install kernel-cachyos-6.13.8-cachyos2.fc41.x86_64, but if it works, you'll need to manually adjust the kernel version as bazzite updates their kernels
Nix Eyes
Nix EyesOP2d ago
yeah looking more towards latest currently I can't fakeroot to remove because its trying to remove it and failing
Nix Eyes
Nix EyesOP2d ago
I am closing this sinc eyou sent a guid and I got it working without kmds unfortuantely

Did you find this page helpful?