-
Notifications
You must be signed in to change notification settings - Fork 5
Open
Labels
Description
What happened?
bootnukem identifies the correct kernel to remove, but then when it runs apt, apt installs a linux-image-unsigned version of the kernel version bootnukem just removed.
Running on Ubuntu 20.04 (upgraded from 18.04, upgraded from 16.04, upgraded from 14.04.. there may be weird leftovers)
See log below
Version
0.2.2 (latest)
Relevant log output
root@host ~$ bootnukem
Kernel packages to be removed:
linux-headers-5.4.0-86
linux-headers-5.4.0-86-generic
linux-image-5.4.0-86-generic
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following additional packages will be installed:
linux-image-unsigned-5.4.0-86-generic
Suggested packages:
fdutils linux-doc | linux-source-5.4.0 linux-tools linux-headers-5.4.0-86-generic
The following packages will be REMOVED:
linux-headers-5.4.0-86* linux-headers-5.4.0-86-generic* linux-image-5.4.0-86-generic* linux-modules-extra-5.4.0-86-generic*
The following NEW packages will be installed:
linux-image-unsigned-5.4.0-86-generic
0 upgraded, 1 newly installed, 4 to remove and 0 not upgraded.
Need to get 9,012 kB of archives.
After this operation, 288 MB disk space will be freed.
Get:1 http://archive.ubuntu.com/ubuntu focal-updates/main amd64 linux-image-unsigned-5.4.0-86-generic amd64 5.4.0-86.97 [9,012 kB]
Fetched 9,012 kB in 1s (15.6 MB/s)
(Reading database ... 155662 files and directories currently installed.)
Removing linux-headers-5.4.0-86-generic (5.4.0-86.97) ...
Removing linux-headers-5.4.0-86 (5.4.0-86.97) ...
Removing linux-modules-extra-5.4.0-86-generic (5.4.0-86.97) ...
Removing linux-image-5.4.0-86-generic (5.4.0-86.97) ...
I: /vmlinuz.old is now a symlink to boot/vmlinuz-5.4.0-88-generic
I: /initrd.img.old is now a symlink to boot/initrd.img-5.4.0-88-generic
/etc/kernel/postrm.d/initramfs-tools:
update-initramfs: Deleting /boot/initrd.img-5.4.0-86-generic
/etc/kernel/postrm.d/zz-update-grub:
Sourcing file `/etc/default/grub'
Sourcing file `/etc/default/grub.d/init-select.cfg'
Generating grub configuration file ...
Found linux image: /boot/vmlinuz-5.4.0-88-generic
Found initrd image: /boot/initrd.img-5.4.0-88-generic
Found memtest86+ image: /memtest86+.elf
Found memtest86+ image: /memtest86+.bin
done
Selecting previously unselected package linux-image-unsigned-5.4.0-86-generic.
(Reading database ... 120486 files and directories currently installed.)
Preparing to unpack .../linux-image-unsigned-5.4.0-86-generic_5.4.0-86.97_amd64.deb ...
Unpacking linux-image-unsigned-5.4.0-86-generic (5.4.0-86.97) ...
Setting up linux-image-unsigned-5.4.0-86-generic (5.4.0-86.97) ...
I: /vmlinuz is now a symlink to boot/vmlinuz-5.4.0-86-generic
I: /initrd.img is now a symlink to boot/initrd.img-5.4.0-86-generic
(Reading database ... 120489 files and directories currently installed.)
Purging configuration files for linux-modules-extra-5.4.0-86-generic (5.4.0-86.97) ...
Purging configuration files for linux-image-5.4.0-86-generic (5.4.0-86.97) ...
I: /vmlinuz is now a symlink to boot/vmlinuz-5.4.0-88-generic
I: /initrd.img is now a symlink to boot/initrd.img-5.4.0-88-generic
/var/lib/dpkg/info/linux-image-5.4.0-86-generic.postrm ... removing pending trigger
rmdir: failed to remove '/lib/modules/5.4.0-86-generic': Directory not empty
Processing triggers for linux-image-unsigned-5.4.0-86-generic (5.4.0-86.97) ...
Sourcing file `/etc/default/grub'
Sourcing file `/etc/default/grub.d/init-select.cfg'
Generating grub configuration file ...
Found linux image: /boot/vmlinuz-5.4.0-88-generic
Found initrd image: /boot/initrd.img-5.4.0-88-generic
Found linux image: /boot/vmlinuz-5.4.0-86-generic
Found memtest86+ image: /memtest86+.elf
Found memtest86+ image: /memtest86+.bin
done
Filesystem Size Used Avail Use% Mounted on
/dev/sda1 236M 199M 25M 89% /boot (before)
/dev/sda1 236M 121M 104M 54% /boot (after)