You are not logged in.
Pages: 1
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-1As 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-1How do I ensure the kernel version of an archiso matches the modules?
Last edited by avantgarden (2024-08-29 21:03:35)
Offline
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 ![]()
Offline
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-1Building 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.zstI cannot for the life of me figure out exactly what determines the booted kernel with archiso.
Offline
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?
Online
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
Pages: 1