Bug 73734

Summary: RFE: kernel-install: support multible kernels with the same version
Product: systemd Reporter: Poncho <poncho>
Component: generalAssignee: systemd-bugs
Status: NEW --- QA Contact: systemd-bugs
Severity: normal    
Priority: medium CC: devurandom, systemd
Version: unspecified   
Hardware: Other   
OS: All   
Whiteboard:
i915 platform: i915 features:

Description Poncho 2014-01-17 09:38:16 UTC
currently, it's not possible to add a bootloader entry for 3.12.8 and 3.12.8.old with systemd's kernel-install.

3.12.8:
- vmlinuz: /boot/vmlinuz-3.12.8
- systemmap: /boot/System.map-3.12.8
- config: /boot/config-3.12.8
- modules: /lib64/modules/3.12.8
- build: /usr/src/linux-3.12.8
3.12.8.old:
- vmlinuz: /boot/vmlinuz-3.12.8.old
- systemmap: /boot/System.map-3.12.8.old
- config: /boot/config-3.12.8.old
- modules: /lib64/modules/3.12.8
- build: /usr/src/linux-3.12.8

above files are created by make install and make modules_install in the kernel build directory.
Comment 1 Harald Hoyer 2014-02-21 14:17:12 UTC
Where is the problem?

# kernel-install add 3.12.8.old /boot/vmlinuz-3.12.8.old
# kernel-install add 3.12.8 /boot/vmlinuz-3.12.8

should work fine. Of course you might have to correct the initramfs, because it might fail, because there is no /lib64/modules/3.12.8.old

I guess you manually copied /boot/vmlinuz-3.12.8 to /boot/vmlinuz-3.12.8.old.
So, why can't you do the same with the bootloader entries and correct them?
Comment 2 Poncho 2014-03-06 12:39:01 UTC
(In reply to comment #1)
> I guess you manually copied /boot/vmlinuz-3.12.8 to /boot/vmlinuz-3.12.8.old.
> So, why can't you do the same with the bootloader entries and correct them?

I did not copy them manually. installkernel from debianutils does this by default.
The grub2 scripts added an entry for the *.old kernel automatically (using the initramfs from the non*.old kernel with the same version).

Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.