You are not logged in.

#1 2024-08-29 21:02:42

avantgarden
Member
Registered: 2012-10-28
Posts: 6

Archiso kernel version mismatch

I am building an archiso following the steps outlined in the Wiki. I am using the releng profile, with the only change being a few packages added (ipmitool, dmidecode, hwinfo). I am using Docker to build the image. Here's my Dockerfile:

FROM archlinux:latest

#Sync packages databases
RUN pacman -Sy

#Install git and archiso
RUN pacman -S git archiso arch-install-scripts edk2-ovmf qemu shellcheck python-docutils --noconfirm

#Copy the build script and allow it to be executed
COPY build.sh /root
RUN ["chmod", "+x", "/root/build.sh"]

ENTRYPOINT ["/root/build.sh"]

The build script simply runs `mkarchiso -v -w ./work -o /tmp ./profile` on the releng profile. After booting the system I notice the running kernel version differs from what is in `/lib/modules`:

root@archiso ~ # uname -r
6.10.2-arch1-1
root@archiso ~ # ls /lib/modules
6.10.6-arch1-1

As a result of this I am unable to load kernel modules:

1 root@archiso ~ # modprobe ipmi_devintf
modprobe: FATAL: Module ipmi_devintf not found in directory /lib/modules/6.10.2-arch1-1

How do I ensure the kernel version of an archiso matches the modules?

Last edited by avantgarden (2024-08-29 21:03:35)

Offline

#2 2024-08-30 10:47:36

gromit
Administrator
From: Germany
Registered: 2024-02-10
Posts: 1,534
Website

Re: Archiso kernel version mismatch

Why are you doing a "pacman -Sy" instead of a "pacman -Syu" ? This creates a partial upgrade situation

See https://wiki.archlinux.org/title/System … nsupported for reference

Not sure if that resolves your issue though smile

Offline

#3 2024-08-30 19:30:21

avantgarden
Member
Registered: 2012-10-28
Posts: 6

Re: Archiso kernel version mismatch

Yeah, I updated it to "pacman -Syu" and that did not solve the issue unfortunately. I also decided to remove Docker out of the equation entirely.

Build System

❯ uname -r
6.10.7-arch1-1

Building from vanilla releng profile pulled directly from archiso repo on Gitlab, using the command "sudo mkarchiso -v -w ./work -o /tmp ./profile". And finally, output from the ISO:

root@archiso ~ # uname -r
6.10.2-arch1-1
root@archiso ~ # ls /lib/modules
6.10.6-arch1-1
root@archiso ~ # modprobe ipmi_devintf
modprobe: FATAL: Module ipmi_devintf not found in directory /lib/modules/6.10.2-arch1-1
1 root@archiso ~ # find /lib/modules -name "ipmi_devintf*"
/lib/modules/6.10.6-arch1-1/kernel/drivers/char/ipmi/ipmi_devintf.ko.zst

I cannot for the life of me figure out exactly what determines the booted kernel with archiso.

Offline

#4 2024-08-30 21:12:17

seth
Member
From: Won't reply 2 private help req
Registered: 2012-09-03
Posts: 75,808

Re: Archiso kernel version mismatch

You don't have to post the output of  attempting a mismatching module load, we kinda know what that looks like and it's an irrelevant symptom.

https://wiki.archlinux.org/title/Archiso#Kernel

The build script simply runs `mkarchiso -v -w ./work -o /tmp ./profile` on the releng profile.

So first of all, post that script unless it's **literally** just that line.
Then, see the linked wiki,

file ./workairootfs/boot/vmlinuz-*

and where does that come from?

Offline

#5 2024-09-03 08:48:16

nl6720
The Evil Wiki Admin
Registered: 2016-07-02
Posts: 714

Re: Archiso kernel version mismatch

avantgarden wrote:

I am using the releng profile, with the only change being a few packages added (ipmitool, dmidecode, hwinfo).

dmidecode is already included.
A different solution to your issue would be to create a merge request adding the two packages to packages.x86_64 so that the next official ISO has them included.

Offline

Board footer

Powered by FluxBB