Please read this before reporting a bug:
https://wiki.archlinux.org/title/Bug_reporting_guidelines
Do NOT report bugs when a package is just outdated, or it is in the AUR. Use the 'flag out of date' link on the package page, or the Mailing List.
REPEAT: Do NOT report bugs for outdated packages!
https://wiki.archlinux.org/title/Bug_reporting_guidelines
Do NOT report bugs when a package is just outdated, or it is in the AUR. Use the 'flag out of date' link on the package page, or the Mailing List.
REPEAT: Do NOT report bugs for outdated packages!
FS#20562 - [mkinitcpio] uses wrong kernel version and does not allow me to change it
Attached to Project:
Arch Linux
Opened by Dieter Plaetinck (Dieter_be) - Sunday, 22 August 2010, 09:08 GMT
Last edited by Thomas Bächler (brain0) - Sunday, 22 August 2010, 10:52 GMT
Opened by Dieter Plaetinck (Dieter_be) - Sunday, 22 August 2010, 09:08 GMT
Last edited by Thomas Bächler (brain0) - Sunday, 22 August 2010, 10:52 GMT
|
Detailsmkinitcpio 0.6.7-1
$ mkinitcpio -h | grep KERNEL -k KERNELVERSION Use KERNELVERSION. default: 2.6.34-ARCH the above is incorrect. in the usage for -k the output of $(uname -a) is shown. However, when actually generating the mkinitcpio /etc/mkinitcpio.d/kernel26.kver is sourced, which contains: # DO NOT EDIT THIS FILE ALL_kver='2.6.35-ARCH-00014-g2ff3d1f-dirty' (yes, I built a custom 2.6.35 package, but i currently booted a 2.6.34) look at the following commands, 2 things are wrong: - it uses by default 2.6.35-ARCH-00014-g2ff3d1f-dirty, which is not the currently running kernel - even though i specify 2.6.34-ARCH or 2.6.34 on the commandline, mkinitcpio ignores that [root@dieter-ws-a7n8x-arch ~]# mkinitcpio -p kernel26 ==> Building image "default" ==> Running command: /sbin/mkinitcpio -k 2.6.35-ARCH-00014-g2ff3d1f-dirty -c /etc/mkinitcpio.conf -g /boot/kernel26.img^C [root@dieter-ws-a7n8x-arch ~]# mkinitcpio -p kernel26 -k 2.6.34-ARCH ==> Building image "default" ==> Running command: /sbin/mkinitcpio -k 2.6.35-ARCH-00014-g2ff3d1f-dirty -c /etc/mkinitcpio.conf -g /boot/kernel26.img^C [root@dieter-ws-a7n8x-arch ~]# mkinitcpio -p kernel26 -k 2.6.34 ==> Building image "default" ==> Running command: /sbin/mkinitcpio -k 2.6.35-ARCH-00014-g2ff3d1f-dirty -c /etc/mkinitcpio.conf -g /boot/kernel26.img^C The only way I managed to make it work for 2.6.34-ARCH is changing /etc/mkinitcpio.d/kernel26.kver and putting: ALL_kver='2.6.34-ARCH' in there. It may be noteworthy that I don't have the 2.6.34 kernel package in my package database, but I do obviously have all the required files in place (stuff in /boot, /lib/modules/ etc) [root@dieter-ws-a7n8x-arch ~]# pacman -Qs kernel local/autofs 5.0.5-3 A kernel-based automounter for Linux local/kernel26 2.6.35.2-1 (base) The Linux Kernel and modules local/kernel26-headers 2.6.35.2-1 Header files and scripts for building modules for kernel26 local/kernel26rt 2.6.33.7_rt29-1 (archaudio-kernels archaudio-minimal archaudio-suite) The Linux Kernel and modules - with realtime preemption local/libdrm 2.4.21-2 Userspace interface to kernel DRM services local/linux-api-headers 2.6.34-1 Kernel headers sanitized for use in userspace local/linux-firmware 20100807-1 Firmware files for Linux local/module-init-tools 3.12-1 utilities needed by Linux systems for managing loadable kernel modules local/nvidia-173xx 173.14.27-1 NVIDIA drivers for kernel26, 173xx branch. |
This task depends upon
Closed by Thomas Bächler (brain0)
Sunday, 22 August 2010, 10:52 GMT
Reason for closing: Not a bug
Additional comments about closing: PEBKAC
Sunday, 22 August 2010, 10:52 GMT
Reason for closing: Not a bug
Additional comments about closing: PEBKAC