akmods for trivoxel

I just copied what you sent in here
75 Replies
tulip
tulip2mo ago
lets move to a thread actually
RUN --mount=type=bind,from=akmods,src=/rpms,dst=/tmp/akmods-rpms \
--mount=type=bind,from=ctx,source=/,target=/ctx \
--mount=type=cache,dst=/var/cache \
--mount=type=cache,dst=/var/log \
--mount=type=tmpfs,dst=/tmp \
/ctx/build.sh && \
ostree container commit
RUN --mount=type=bind,from=akmods,src=/rpms,dst=/tmp/akmods-rpms \
--mount=type=bind,from=ctx,source=/,target=/ctx \
--mount=type=cache,dst=/var/cache \
--mount=type=cache,dst=/var/log \
--mount=type=tmpfs,dst=/tmp \
/ctx/build.sh && \
ostree container commit
then on build.sh add dnf install -y /tmp/akmods-rpms/*wl*.rpm @Ⓐ TriVoxel ☭
Ⓐ TriVoxel ☭
Ⓐ TriVoxel ☭OP2mo ago
@tulip Does Bluefin use the mainline Fedora kernel or CoreOS?
tulip
tulip2mo ago
mainline, its just pinned
Ⓐ TriVoxel ☭
Ⓐ TriVoxel ☭OP2mo ago
I think this line FROM ghcr.io/ublue-os/akmods:${FEDORA_VERSION} AS akmods is breaking stuff because it should be something like akmods:main-$(FEDORA_VERSION) But, the FEDORA_VERSION var is unset in this environment, meaning I'd need to hard code it
tulip
tulip2mo ago
yup, try setting it to 42 or something
Ⓐ TriVoxel ☭
Ⓐ TriVoxel ☭OP2mo ago
Hmm... seems like the files aren't there /tmp/akmods-rpms/*wl*.rpm
tulip
tulip2mo ago
thats odd lemme check actually which fedora version did you set?
Ⓐ TriVoxel ☭
Ⓐ TriVoxel ☭OP2mo ago
42 I'm gonna try /tmp/akmods-rpms/kmod/... Yeah, that should do it:
+ dnf5 install -y /tmp/akmods-rpms/kmods/kmod-wl-6.16.7-200.fc42.x86_64-6.30.223.271-58.fc42.x86_64.rpm
+ dnf5 install -y /tmp/akmods-rpms/kmods/kmod-wl-6.16.7-200.fc42.x86_64-6.30.223.271-58.fc42.x86_64.rpm
tulip
tulip2mo ago
> crane export ghcr.io/ublue-os/akmods:main-42 | tar xzvf -
x kernel-rpms
x kernel-rpms/kernel-6.16.7-200.fc42.x86_64.rpm
x kernel-rpms/kernel-core-6.16.7-200.fc42.x86_64.rpm
x kernel-rpms/kernel-devel-6.16.7-200.fc42.x86_64.rpm
x kernel-rpms/kernel-devel-matched-6.16.7-200.fc42.x86_64.rpm
x kernel-rpms/kernel-modules-6.16.7-200.fc42.x86_64.rpm
x kernel-rpms/kernel-modules-core-6.16.7-200.fc42.x86_64.rpm
x kernel-rpms/kernel-modules-extra-6.16.7-200.fc42.x86_64.rpm
x kernel-rpms/kernel-uki-virt-6.16.7-200.fc42.x86_64.rpm
x rpms
x rpms/kmods
x rpms/kmods/kmod-framework-laptop-6.16.7-200.fc42.x86_64-0.0.git.326.1665246e-1.fc42.x86_64.rpm
x rpms/kmods/kmod-kvmfr-6.16.7-200.fc42.x86_64-0.0.git.32.e2d4889e-1.fc42.x86_64.rpm
x rpms/kmods/kmod-openrazer-6.16.7-200.fc42.x86_64-100.0.0.git.624.0663c556-1.fc42.x86_64.rpm
x rpms/kmods/kmod-v4l2loopback-6.16.7-200.fc42.x86_64-0.15.1-1.fc42.x86_64.rpm
x rpms/kmods/kmod-wl-6.16.7-200.fc42.x86_64-6.30.223.271-58.fc42.x86_64.rpm
x rpms/kmods/kmod-xone-6.16.7-200.fc42.x86_64-1000.0.0.git.1114.82438c9a-1.fc42.x86_64.rpm
x rpms/ublue-os
x rpms/ublue-os/ublue-os-akmods-addons-0.6-1.fc42.noarch.rpm
x rpms/ucore
> crane export ghcr.io/ublue-os/akmods:main-42 | tar xzvf -
x kernel-rpms
x kernel-rpms/kernel-6.16.7-200.fc42.x86_64.rpm
x kernel-rpms/kernel-core-6.16.7-200.fc42.x86_64.rpm
x kernel-rpms/kernel-devel-6.16.7-200.fc42.x86_64.rpm
x kernel-rpms/kernel-devel-matched-6.16.7-200.fc42.x86_64.rpm
x kernel-rpms/kernel-modules-6.16.7-200.fc42.x86_64.rpm
x kernel-rpms/kernel-modules-core-6.16.7-200.fc42.x86_64.rpm
x kernel-rpms/kernel-modules-extra-6.16.7-200.fc42.x86_64.rpm
x kernel-rpms/kernel-uki-virt-6.16.7-200.fc42.x86_64.rpm
x rpms
x rpms/kmods
x rpms/kmods/kmod-framework-laptop-6.16.7-200.fc42.x86_64-0.0.git.326.1665246e-1.fc42.x86_64.rpm
x rpms/kmods/kmod-kvmfr-6.16.7-200.fc42.x86_64-0.0.git.32.e2d4889e-1.fc42.x86_64.rpm
x rpms/kmods/kmod-openrazer-6.16.7-200.fc42.x86_64-100.0.0.git.624.0663c556-1.fc42.x86_64.rpm
x rpms/kmods/kmod-v4l2loopback-6.16.7-200.fc42.x86_64-0.15.1-1.fc42.x86_64.rpm
x rpms/kmods/kmod-wl-6.16.7-200.fc42.x86_64-6.30.223.271-58.fc42.x86_64.rpm
x rpms/kmods/kmod-xone-6.16.7-200.fc42.x86_64-1000.0.0.git.1114.82438c9a-1.fc42.x86_64.rpm
x rpms/ublue-os
x rpms/ublue-os/ublue-os-akmods-addons-0.6-1.fc42.noarch.rpm
x rpms/ucore
Ⓐ TriVoxel ☭
Ⓐ TriVoxel ☭OP2mo ago
hmmm
Error: building at STEP "RUN --mount=type=bind,from=akmods,src=/rpms,dst=/tmp/akmods-rpms --mount=type=bind,from=ctx,source=/,target=/ctx --mount=type=cache,dst=/var/cache --mount=type=cache,dst=/var/log --mount=type=tmpfs,dst=/tmp /ctx/build.sh && ostree container commit": while running runtime: exit status 1
Error: building at STEP "RUN --mount=type=bind,from=akmods,src=/rpms,dst=/tmp/akmods-rpms --mount=type=bind,from=ctx,source=/,target=/ctx --mount=type=cache,dst=/var/cache --mount=type=cache,dst=/var/log --mount=type=tmpfs,dst=/tmp /ctx/build.sh && ostree container commit": while running runtime: exit status 1
tulip
tulip2mo ago
seems that rpms/kmods/kmod*wl*.rpm is what you want
Ⓐ TriVoxel ☭
Ⓐ TriVoxel ☭OP2mo ago
Yeah
tulip
tulip2mo ago
what was the repo?
tulip
tulip2mo ago
GitHub
bluefin-macbook/Containerfile at main · TriVoxel/bluefin-macbook
Bluefin for Twenty-Teens MacBooks (Includes broadcom-wl/akmods/kmod-wl) - TriVoxel/bluefin-macbook
tulip
tulip2mo ago
here, saving it
Ⓐ TriVoxel ☭
Ⓐ TriVoxel ☭OP2mo ago
Yep See, I cheated and just injected an ls command to print out the files in the log, haha!
tulip
tulip2mo ago
No description
tulip
tulip2mo ago
this seems to be the issue maybe dnf install -y kernel-rpms/kernel*??? but you'll also need another bind on RUN sec
RUN --mount=type=bind,from=akmods,src=/kernel-rpms,dst=/tmp/akmods-kernel-rpms \
--mount=type=bind,from=akmods,src=/rpms,dst=/tmp/akmods-rpms \
--mount=type=bind,from=ctx,source=/,target=/ctx \
--mount=type=cache,dst=/var/cache \
--mount=type=cache,dst=/var/log \
--mount=type=tmpfs,dst=/tmp \
/ctx/build.sh && \
ostree container commit
RUN --mount=type=bind,from=akmods,src=/kernel-rpms,dst=/tmp/akmods-kernel-rpms \
--mount=type=bind,from=akmods,src=/rpms,dst=/tmp/akmods-rpms \
--mount=type=bind,from=ctx,source=/,target=/ctx \
--mount=type=cache,dst=/var/cache \
--mount=type=cache,dst=/var/log \
--mount=type=tmpfs,dst=/tmp \
/ctx/build.sh && \
ostree container commit
like this
Ⓐ TriVoxel ☭
Ⓐ TriVoxel ☭OP2mo ago
Alright, trying this out
Ⓐ TriVoxel ☭
Ⓐ TriVoxel ☭OP2mo ago
@tulip Seems to be some kind of error about a package filter?
tulip
tulip2mo ago
man you really got the worst thing to ever make an image out of eh
Ⓐ TriVoxel ☭
Ⓐ TriVoxel ☭OP2mo ago
🤦 Guess so lmao So, seems like it doesn't want me to overwrite the base kernel files
tulip
tulip2mo ago
found it! dnf5 versionlock remove kernel kernel-devel kernel-devel-matched kernel-core kernel-modules kernel-modules-core kernel-modules-extra @Ⓐ TriVoxel ☭ remove this first, then change kernel stuff apparently thats why its blowing up bluefin locks the kernel version after installing the kernel so it doesnt get any problems later in the build
Ⓐ TriVoxel ☭
Ⓐ TriVoxel ☭OP2mo ago
Okay! Thank you, OMG! I'm testing this out right nw the suspense is killing me bruh
+ dnf5 versionlock remove kernel kernel-devel kernel-devel-matched kernel-core kernel-modules kernel-modules-core kernel-modules-extra
Unknown argument "remove" for command "versionlock". Add "--help" for more information about the arguments.
Error: building at STEP "RUN --mount=type=bind,from=akmods,src=/kernel-rpms,dst=/tmp/akmods-kernel-rpms --mount=type=bind,from=akmods,src=/rpms,dst=/tmp/akmods-rpms --mount=type=bind,from=ctx,source=/,target=/ctx --mount=type=cache,dst=/var/cache --mount=type=cache,dst=/var/log --mount=type=tmpfs,dst=/tmp /ctx/build.sh && ostree container commit": while running runtime: exit status 2
+ dnf5 versionlock remove kernel kernel-devel kernel-devel-matched kernel-core kernel-modules kernel-modules-core kernel-modules-extra
Unknown argument "remove" for command "versionlock". Add "--help" for more information about the arguments.
Error: building at STEP "RUN --mount=type=bind,from=akmods,src=/kernel-rpms,dst=/tmp/akmods-kernel-rpms --mount=type=bind,from=akmods,src=/rpms,dst=/tmp/akmods-rpms --mount=type=bind,from=ctx,source=/,target=/ctx --mount=type=cache,dst=/var/cache --mount=type=cache,dst=/var/log --mount=type=tmpfs,dst=/tmp /ctx/build.sh && ostree container commit": while running runtime: exit status 2
Oh, it should be "delete"
Ⓐ TriVoxel ☭
Ⓐ TriVoxel ☭OP2mo ago
GitHub
Update build.sh · TriVoxel/bluefin-macbook@d2319d2
Bluefin for Twenty-Teens MacBooks (Includes broadcom-wl/akmods/kmod-wl) - Update build.sh · TriVoxel/bluefin-macbook@d2319d2
Ⓐ TriVoxel ☭
Ⓐ TriVoxel ☭OP2mo ago
So, it doesn't like the kernel I'm trying to patch in or something I see, it is trying to install two versions of 3 packages, to satisfy dependencies of some other packages. Yay, dependency hell!
tulip
tulip2mo ago
i forgor sorry 💀
Ⓐ TriVoxel ☭
Ⓐ TriVoxel ☭OP2mo ago
nah u good Hmmm... I think we are installing too many things with kernel*
tulip
tulip2mo ago
i wonder if you could literally delete the kernel then re-add it
Ⓐ TriVoxel ☭
Ⓐ TriVoxel ☭OP2mo ago
I mean, I don't need kernel-devel for example Oh no, don't tell me...
tulip
tulip2mo ago
did it work or nah
Ⓐ TriVoxel ☭
Ⓐ TriVoxel ☭OP2mo ago
No description
tulip
tulip2mo ago
oh shit its looking like its doin something
Ⓐ TriVoxel ☭
Ⓐ TriVoxel ☭OP2mo ago
I mean... it's further than last time
tulip
tulip2mo ago
it removed some other akmods that you probably dont need
Ⓐ TriVoxel ☭
Ⓐ TriVoxel ☭OP2mo ago
Yeah. Don't need any framework or xone stuff I might need to manually re-add some of the stuff Oh, actually, it is installing those same things again anyway, cool!
tulip
tulip2mo ago
[12/32] Installing kmod-wl-0:6.30.223.2 100% | 166.3 KiB/s | 1.4 MiB | 00m09s @Ⓐ TriVoxel ☭ SUCCESS LES GOOOOOOOOOO
Ⓐ TriVoxel ☭
Ⓐ TriVoxel ☭OP2mo ago
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!1
tulip
tulip2mo ago
you really did get literally the worst thing to do this thing should update until the end of times now or at least until ublue-os/akmods drops kmod-wl by then we'll have a better solution
Ⓐ TriVoxel ☭
Ⓐ TriVoxel ☭OP2mo ago
Oof!
tulip
tulip2mo ago
what
Ⓐ TriVoxel ☭
Ⓐ TriVoxel ☭OP2mo ago
My build failed anyway
tulip
tulip2mo ago
you dont need that modprobe enable there at the end LOL you need to do ummm
Ⓐ TriVoxel ☭
Ⓐ TriVoxel ☭OP2mo ago
Because I added a line to enable modprobe wl oof
tulip
tulip2mo ago
nono wrong thing you need to add it to /etc/modprobe.d
Ⓐ TriVoxel ☭
Ⓐ TriVoxel ☭OP2mo ago
🥺 👉 👈 Ah, ok
tulip
tulip2mo ago
echo "wl" | tee /etc/modprobe.d/wl.conf instead of modprobe enable
Ⓐ TriVoxel ☭
Ⓐ TriVoxel ☭OP2mo ago
Ah, yeah ok Wouldn't it be echo "enable wl" | tee /etc/modprobe.d/wl.conf tho? Or does it not need "enable"?
tulip
tulip2mo ago
i don know :)
Ⓐ TriVoxel ☭
Ⓐ TriVoxel ☭OP2mo ago
googling it
tulip
tulip2mo ago
you might want to just check that directory on your system
Ⓐ TriVoxel ☭
Ⓐ TriVoxel ☭OP2mo ago
Meh, I'll just build the image, update it, and then add whatever modprobe enable wl spits out I guess when Bluefin rebases to F43, then F44, etc. I will need to go in and hard code the version numbers which kinda sucks but at least it's minimal
tulip
tulip2mo ago
seems that you dont need to do it actually
Ⓐ TriVoxel ☭
Ⓐ TriVoxel ☭OP2mo ago
huh? Can I use :stable or :latest instead of :main-42
tulip
tulip2mo ago
bluefin itself seems to be using some dynamic stuff on the image itself
Ⓐ TriVoxel ☭
Ⓐ TriVoxel ☭OP2mo ago
Huh NGL, this was a lot of trouble to get working, but it's really really cool! Really democratizes linux distro creation The dream is possible, everyone can have their own Linux distro! 😂
tulip
tulip2mo ago
skopeo copy --retry-times 3 docker://ghcr.io/ublue-os/akmods:main-"$(rpm -E %fedora)" dir:/tmp/akmods
AKMODS_TARGZ=$(jq -r '.layers[].digest' </tmp/akmods/manifest.json | cut -d : -f 2)
tar -xvzf /tmp/akmods/"$AKMODS_TARGZ" -C /tmp/
skopeo copy --retry-times 3 docker://ghcr.io/ublue-os/akmods:main-"$(rpm -E %fedora)" dir:/tmp/akmods
AKMODS_TARGZ=$(jq -r '.layers[].digest' </tmp/akmods/manifest.json | cut -d : -f 2)
tar -xvzf /tmp/akmods/"$AKMODS_TARGZ" -C /tmp/
instead of doing all that bs we were doing with FROM it seems that you can litearlly just put this on top of ur build.sh just remove the FROM and put this as your run
RUN --mount=type=bind,from=ctx,source=/,target=/ctx \
--mount=type=cache,dst=/var/cache \
--mount=type=cache,dst=/var/log \
--mount=type=tmpfs,dst=/tmp \
/ctx/build.sh && \
ostree container commit
RUN --mount=type=bind,from=ctx,source=/,target=/ctx \
--mount=type=cache,dst=/var/cache \
--mount=type=cache,dst=/var/log \
--mount=type=tmpfs,dst=/tmp \
/ctx/build.sh && \
ostree container commit
this is literally the hardest stuff, everything else is 1000000 thousand times easier than this LOL this also means you are ready to contribute to bluefin btw
Ⓐ TriVoxel ☭
Ⓐ TriVoxel ☭OP2mo ago
Yippee! TBH, my only strength is Shell and CSS My programming skills are weak, but my Shell skills are cracked
tulip
tulip2mo ago
we really need help on the website 😭
Ⓐ TriVoxel ☭
Ⓐ TriVoxel ☭OP2mo ago
I literally wrote a multi-threaded and performant bash script that brute force hacked my gas utility using low security web api's so I could figure out if I had a fair rate 💀 It had a lot of features omfg am I a bad person?! The website is cute tho! I love the dinos!
Ⓐ TriVoxel ☭
Ⓐ TriVoxel ☭OP2mo ago
Wow! This update removes a LOT of packages 👀
tulip
tulip2mo ago
surprisingly enough this seems safe except for ublue-brew being removed... hmmm... its aight though lets see i guess LOL
Ⓐ TriVoxel ☭
Ⓐ TriVoxel ☭OP2mo ago
I mean, I still have desktop... At least this is an A/B system holy crap
tulip
tulip2mo ago
yeah LOL its techinically not a/b btw you can have an arbitrarly large amount of images you can use at one time
Ⓐ TriVoxel ☭
Ⓐ TriVoxel ☭OP2mo ago
Ah gotcha
Ⓐ TriVoxel ☭
Ⓐ TriVoxel ☭OP2mo ago
kernel panic! 💀
No description
Ⓐ TriVoxel ☭
Ⓐ TriVoxel ☭OP2mo ago
Dang grandma, the thing isn't touchscreen 😭 @tulip we're cooked!
tulip
tulip2mo ago
LOL did it not even boot?
Ⓐ TriVoxel ☭
Ⓐ TriVoxel ☭OP2mo ago
Yippeeeeeee! Well, I was able to switch to ostree1
tulip
tulip2mo ago
thats impressive ngl
Ⓐ TriVoxel ☭
Ⓐ TriVoxel ☭OP2mo ago
yuh I have a gift
tulip
tulip2mo ago
im guessing it didnt even try loading the wl module
Ⓐ TriVoxel ☭
Ⓐ TriVoxel ☭OP2mo ago
No Probably not Didn't even load the kernel
Ⓐ TriVoxel ☭
Ⓐ TriVoxel ☭OP2mo ago
Okay, I got the kernel log
Ⓐ TriVoxel ☭
Ⓐ TriVoxel ☭OP2mo ago
This seems to include both boots? Or, maybe just the most recent successful one? I can't really say. Getting this one a lot: [FAILED] Failed to start systemd-remount-fs…mount Root and Kernel File Systems. Yeah, no. This is just the most recent successful boot. I guess the /var must not be shared between ostree images. Hmmm... seems like I/O does not work during a panic, so it wouldn't even be logged anyway I'm going to try this and also switch from bluefin:stable-daily to bluefin:stable and re-build the image I think it might not work to remove all the kernel stuff and then add the new kernel stuff over top maybe? @tulip The patch you suggested to keep everything synced seems to not work as expected.
+ ls /tmp/akmods/
12e23c3b120e2c416ef90c809acf0f3f0bc1b56073092684e67eeb466e18bcdb
275c33642a0cf59356eb19754127813166c67dd19237b17fc57e640b85357799
manifest.json
signature-1
signature-2
signature-3
signature-4
version
+ dnf5 install -y '/tmp/akmods/kmods/*wl*.rpm' '/tmp/akmods-kernel-rpms/kernel*.rpm'
Updating and loading repositories:
RPM Fusion for Fedora 42 - Nonfree - U 100% | 22.8 KiB/s | 28.9 KiB | 00m01s
RPM Fusion for Fedora 42 - Free - Upda 100% | 57.6 KiB/s | 72.1 KiB | 00m01s
RPM Fusion for Fedora 42 - Nonfree 100% | 34.7 KiB/s | 78.7 KiB | 00m02s
RPM Fusion for Fedora 42 - Free 100% | 89.2 KiB/s | 162.3 KiB | 00m02s
Repositories loaded.
Failed to access RPM "/tmp/akmods/kmods/*wl*.rpm": No such file or directory
Error: building at STEP "RUN --mount=type=bind,from=ctx,source=/,target=/ctx --mount=type=cache,dst=/var/cache --mount=type=cache,dst=/var/log --mount=type=tmpfs,dst=/tmp /ctx/build.sh && ostree container commit": while running runtime: exit status 1
Error: Error: buildah exited with code 1
+ ls /tmp/akmods/
12e23c3b120e2c416ef90c809acf0f3f0bc1b56073092684e67eeb466e18bcdb
275c33642a0cf59356eb19754127813166c67dd19237b17fc57e640b85357799
manifest.json
signature-1
signature-2
signature-3
signature-4
version
+ dnf5 install -y '/tmp/akmods/kmods/*wl*.rpm' '/tmp/akmods-kernel-rpms/kernel*.rpm'
Updating and loading repositories:
RPM Fusion for Fedora 42 - Nonfree - U 100% | 22.8 KiB/s | 28.9 KiB | 00m01s
RPM Fusion for Fedora 42 - Free - Upda 100% | 57.6 KiB/s | 72.1 KiB | 00m01s
RPM Fusion for Fedora 42 - Nonfree 100% | 34.7 KiB/s | 78.7 KiB | 00m02s
RPM Fusion for Fedora 42 - Free 100% | 89.2 KiB/s | 162.3 KiB | 00m02s
Repositories loaded.
Failed to access RPM "/tmp/akmods/kmods/*wl*.rpm": No such file or directory
Error: building at STEP "RUN --mount=type=bind,from=ctx,source=/,target=/ctx --mount=type=cache,dst=/var/cache --mount=type=cache,dst=/var/log --mount=type=tmpfs,dst=/tmp /ctx/build.sh && ostree container commit": while running runtime: exit status 1
Error: Error: buildah exited with code 1
This is some debug output from the Actions run. It isn't formatted the same way when we download the image through docker. Instead of getting the folder of RPMs to install like before, we get
275c33642a0cf59356eb19754127813166c67dd19237b17fc57e640b85357799
manifest.json
signature-1
signature-2
signature-3
signature-4
version
275c33642a0cf59356eb19754127813166c67dd19237b17fc57e640b85357799
manifest.json
signature-1
signature-2
signature-3
signature-4
version
This is the ls of that /tmp/akmods/ directory which was unpacked by Docker.

Did you find this page helpful?