Hm? For a test scenario I could force to get an error I got before, but
the original script I'm using did it correctly, not the way I've done it
for this test scenario. Before building the kernel and headers I
rebooted and then I build the kernel with "No Forced Preemption (Server)
(PREEMPT_NONE)" and got no error when installing the headers. Perhaps
there was something very wrong with it and the reboot solved it.
In the evening or tomorrow I try to build a "Fully Preemptible Kernel
(RT) (PREEMPT_RT_FULL)" again.
Regards,
Ralf
Test scenario:
root@debian:/usr/src# dpkg -r linux-headers-3.0.9-rt25
dpkg: warning: ignoring request to remove linux-headers-3.0.9-rt25, only
the config
files of which are on the system. Use --purge to remove them too.
root@debian:/usr/src# dpkg --purge linux-headers-3.0.9-rt25
(Reading database ... 194321 files and directories currently installed.)
Removing linux-headers-3.0.9-rt25 ...
Purging configuration files for linux-headers-3.0.9-rt25 ...
root@debian:/usr/src# ls /lib/modules/3.0.9-rt25 -hAl
ls: cannot access /lib/modules/3.0.9-rt25: No such file or directory
root@debian:/usr/src# dpkg -i
linux-headers-3.0.9-rt25_3.0.9-rt25-10.00.Custom_amd64.deb
Selecting previously unselected package linux-headers-3.0.9-rt25.
(Reading database ... 194322 files and directories currently installed.)
Unpacking linux-headers-3.0.9-rt25 (from
linux-headers-3.0.9-rt25_3.0.9-rt25-10.00.Custom_amd64.deb) ...
Setting up linux-headers-3.0.9-rt25 (3.0.9-rt25-10.00.Custom) ...
Examining /etc/kernel/header_postinst.d.
run-parts: executing /etc/kernel/header_postinst.d/dkms
3.0.9-rt25 /boot/vmlinuz-3.0.9-rt25
Error! Your kernel headers for kernel 3.0.9-rt25 cannot be found.
Please install the linux-headers-3.0.9-rt25 package,
or use the --kernelsourcedir option to tell DKMS where it's located
root@debian:/usr/src# ls /lib/modules/3.0.9-rt25 -hAl
ls: cannot access /lib/modules/3.0.9-rt25: No such file or directory
root@debian:/usr/src# dpkg -i
linux-image-3.0.9-rt25_3.0.9-rt25-10.00.Custom_amd64.deb
(Reading database ... 205984 files and directories currently installed.)
Preparing to replace linux-image-3.0.9-rt25 3.0.9-rt25-10.00.Custom
(using linux-image-3.0.9-rt25_3.0.9-rt25-10.00.Custom_amd64.deb) ...
Examining /etc/kernel/preinst.d/
Done.
Unpacking replacement linux-image-3.0.9-rt25 ...
Examining /etc/kernel/postrm.d .
run-parts: executing /etc/kernel/postrm.d/initramfs-tools
3.0.9-rt25 /boot/vmlinuz-3.0.9-rt25
run-parts: executing /etc/kernel/postrm.d/zz-update-grub
3.0.9-rt25 /boot/vmlinuz-3.0.9-rt25
Setting up linux-image-3.0.9-rt25 (3.0.9-rt25-10.00.Custom) ...
Running depmod.
Examining /etc/kernel/postinst.d.
run-parts: executing /etc/kernel/postinst.d/dkms
3.0.9-rt25 /boot/vmlinuz-3.0.9-rt25
run-parts: executing /etc/kernel/postinst.d/initramfs-tools
3.0.9-rt25 /boot/vmlinuz-3.0.9-rt25
update-initramfs: Generating /boot/initrd.img-3.0.9-rt25
W: Possible missing firmware /lib/firmware/rtl_nic/rtl8105e-1.fw for
module r8169
W: Possible missing firmware /lib/firmware/rtl_nic/rtl8168e-2.fw for
module r8169
W: Possible missing firmware /lib/firmware/rtl_nic/rtl8168e-1.fw for
module r8169
W: Possible missing firmware /lib/firmware/rtl_nic/rtl8168d-2.fw for
module r8169
W: Possible missing firmware /lib/firmware/rtl_nic/rtl8168d-1.fw for
module r8169
run-parts: executing /etc/kernel/postinst.d/pm-utils
3.0.9-rt25 /boot/vmlinuz-3.0.9-rt25
run-parts: executing /etc/kernel/postinst.d/zz-update-grub
3.0.9-rt25 /boot/vmlinuz-3.0.9-rt25
Generating grub.cfg ...
Found background image: /usr/share/images/desktop-base/desktop-grub.png
Found linux image: /boot/vmlinuz-3.0.9-rt25
Found initrd image: /boot/initrd.img-3.0.9-rt25
Found linux image: /boot/vmlinuz-2.6.39.1
Found initrd image: /boot/initrd.img-2.6.39.1
Found linux image: /boot/vmlinuz-2.6.39-2-amd64
Found initrd image: /boot/initrd.img-2.6.39-2-amd64
done
root@debian:/usr/src# dpkg -i
linux-headers-3.0.9-rt25_3.0.9-rt25-10.00.Custom_amd64.deb
(Reading database ... 205985 files and directories currently installed.)
Preparing to replace linux-headers-3.0.9-rt25 3.0.9-rt25-10.00.Custom
(using linux-headers-3.0.9-rt25_3.0.9-rt25-10.00.Custom_amd64.deb) ...
Unpacking replacement linux-headers-3.0.9-rt25 ...
Setting up linux-headers-3.0.9-rt25 (3.0.9-rt25-10.00.Custom) ...
Examining /etc/kernel/header_postinst.d.
run-parts: executing /etc/kernel/header_postinst.d/dkms
3.0.9-rt25 /boot/vmlinuz-3.0.9-rt25