symlinks managed by kernel postinst are different from zipl-installer and livefs-rootfs
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
curtin |
Fix Released
|
Undecided
|
Unassigned | ||
subiquity |
Fix Released
|
Undecided
|
Unassigned | ||
base-installer (Ubuntu) |
Fix Released
|
Undecided
|
Unassigned | ||
linux (Ubuntu) |
Invalid
|
Undecided
|
Unassigned | ||
livecd-rootfs (Ubuntu) |
Invalid
|
Undecided
|
Unassigned | ||
zipl-installer (Ubuntu) |
Fix Released
|
Undecided
|
Unassigned |
Bug Description
On Ubuntu/Debian like systems /etc/kernel-
One day we might fix our kernels to not require kernel-img.conf, but until then curtin should be generating the right one. Making a merge proposal to fix this in curtin by mimicking what base-installer did.
==
Symlinks are not managed correctly.
Last installed and configured kernel, prior to purging -5- was -6-, yet symlinks were not updated to -6- when that happened.
root@devac03:~# apt-get remove --purge linux-headers-
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following packages will be REMOVED:
linux-
linux-
0 upgraded, 0 newly installed, 4 to remove and 0 not upgraded.
After this operation, 131 MB disk space will be freed.
Do you want to continue? [Y/n] Y
(Reading database ... 92073 files and directories currently installed.)
Removing linux-headers-
Removing linux-headers-
Removing linux-image-
run-parts: executing /etc/kernel/
run-parts: executing /etc/kernel/
update-initramfs: Generating /boot/initrd.
Using config file '/etc/zipl.conf'
Building bootmap in '/boot/'
Building menu 'zipl-automatic
Adding #1: IPL section 'ubuntu' (default)
Preparing boot device: dasda (0200).
Done.
run-parts: executing /etc/kernel/
run-parts: executing /etc/kernel/
Using config file '/etc/zipl.conf'
Building bootmap in '/boot/'
Building menu 'zipl-automatic
Adding #1: IPL section 'ubuntu' (default)
Preparing boot device: dasda (0200).
Done.
Purging configuration files for linux-image-
Removing linux-image-
WARN: Proceeding with removing running kernel image.
Examining /etc/kernel/
run-parts: executing /etc/kernel/
update-initramfs: Deleting /boot/initrd.
run-parts: executing /etc/kernel/
Using config file '/etc/zipl.conf'
Error: Image file '/boot/vmlinuz' in section 'ubuntu': No such file or directory
run-parts: /etc/kernel/
Failed to process /etc/kernel/
dpkg: error processing package linux-image-
subprocess installed post-removal script returned error exit status 1
Errors were encountered while processing:
linux-
E: Sub-process /usr/bin/dpkg returned an error code (1)
root@devac03:~# ls -latr /boot
total 24208
drwx------ 2 root root 16384 Dec 9 16:38 lost+found
lrwxrwxrwx 1 root root 26 Jan 6 16:23 initrd.img -> initrd.
lrwxrwxrwx 1 root root 23 Jan 6 16:24 vmlinuz -> vmlinuz-
-rw------- 1 root root 13026048 Jan 11 21:36 vmlinuz-
-rw------- 1 root root 2446124 Jan 11 21:36 System.
-rw-r--r-- 1 root root 63422 Jan 11 21:36 config-
-rw-r--r-- 1 root root 517933 Jan 11 21:36 abi-4.3.0-6-generic
drwxr-xr-x 22 root root 4096 Jan 14 13:03 ..
-rw-r--r-- 1 root root 8574889 Jan 14 13:03 initrd.
-rw------- 1 root root 69632 Jan 14 13:41 bootmap
drwxr-xr-x 3 root root 4096 Jan 14 13:41 .
root@devac03:~# dpkg -l | grep 4.3.0
ii iproute 1:4.3.0-1ubuntu1 all transitional dummy package for iproute2
ii iproute2 4.3.0-1ubuntu1 s390x networking and traffic control tools
ii linux-generic 4.3.0.6.7 s390x Complete Generic Linux kernel and headers
ii linux-headers-
ii linux-headers-
ii linux-headers-
rc linux-image-
pH linux-image-
ii linux-image-
rc linux-image-
ii linux-image-
ii linux-image-generic 4.3.0.6.7 s390x Generic Linux kernel image
ii linux-libc-
ii xfslibs-dev 4.3.0 s390x XFS filesystem-specific static libraries and headers
ii xfsprogs 4.3.0 s390x Utilities for managing the XFS filesystem
Related branches
- Ryan Harper (community): Approve
- Server Team CI bot: Approve (continuous-integration)
-
Diff: 142 lines (+88/-0)3 files modifiedcurtin/commands/curthooks.py (+25/-0)
tests/unittests/test_curthooks.py (+52/-0)
tests/vmtests/__init__.py (+11/-0)
Changed in linux (Ubuntu): | |
status: | Confirmed → Invalid |
importance: | Critical → Undecided |
Changed in livecd-rootfs (Ubuntu): | |
status: | New → Invalid |
Changed in zipl-installer (Ubuntu): | |
status: | New → Invalid |
tags: | added: rls-dd-incoming |
Changed in livecd-rootfs (Ubuntu): | |
status: | New → Invalid |
Changed in curtin: | |
status: | New → Confirmed |
description: | updated |
tags: | added: cscc |
Changed in subiquity: | |
status: | Confirmed → Fix Released |
http:// paste.ubuntu. com/14495976/