installing akmod from rpm?

is it possible to install a kmod from provided rpm(s)? (all the coprs for the module i need are dead/404d) when trying to install in the rpm-ostree module, it does not install due to being run as root:
[14:03:36 g.i/t/apple-dots:latest] => #44 15.19 Building /usr/src/akmods/macbook12-spi-driver-kmod-0.5-1.fc41.1.src.rpm for kernel 6.12.9-200.fc41.x86_64
[14:03:36 g.i/t/apple-dots:latest] => #44 15.19 ERROR: Not to be used as root; start as user or 'akmodsbuild' instead.
[14:03:36 g.i/t/apple-dots:latest] => #44 15.19 Building /usr/src/akmods/macbook12-spi-driver-kmod-0.5-1.fc41.1.src.rpm for kernel 6.12.9-200.fc41.x86_64
[14:03:36 g.i/t/apple-dots:latest] => #44 15.19 ERROR: Not to be used as root; start as user or 'akmodsbuild' instead.
and the akmods module doesn't seem to take rpms regardless -# is using a non-ublue akmod with a ublue kernel even possible considering signing or something? p.s. the module is https://github.com/almas/macbook12-spi-driver , with a .spec i bodged together to build the three rpms -# ( - akmod-macbook12-spi-driver-0.5-1.fc41.1.x86_64.rpm - kmod-macbook12-spi-driver-0.5-1.fc41.1.x86_64.rpm - macbook12-spi-driver-kmod-common-0.5-1.fc41.1.x86_64.rpm )
8 Replies
xyny
xyny2d ago
if you don't have an RPM but are trying to build one, i suggest doing it in a separate repo entirely or with stages https://blue-build.org/reference/stages/
BlueBuild
Stages
A stage is a separate image build flow executed in parallel with the main build.
ScreechingBagel
ScreechingBagelOP2d ago
oh no i know, i'm just testing with prebuilt ones i put in the repo built them in a fedora container
xyny
xyny2d ago
hmm, your log still says Building ...rpm for kernel
ScreechingBagel
ScreechingBagelOP2d ago
isn't that just what kmods do?
xyny
xyny2d ago
you can't really install RPMs without being admin at least i don't believe so but @fiftydinar might be able to help you more regarding this
ScreechingBagel
ScreechingBagelOP2d ago
i was mainly looking at this as a reference for the spec file btw https://rpmfusion.org/Packaging/KernelModules/Kmods2 i can give more info when i get home can I just copy them into /tmp/rpms/kmods/? aha
xyny
xyny2d ago
yeah probably
ScreechingBagel
ScreechingBagelOP2d ago
ah probs not cause it's doing --mount=type=bind,from=stage-akmods-main,src=/rpms,dst=/tmp/rpms,rw \ lol what if i make a local repo wait but also --mount=type=bind,from=stage-files,src=/files,dst=/tmp/files,rw \ so sorta nvm ig

Did you find this page helpful?