воскресенье

[Bug 1910923] [NEW] Purging of old kernel does not work with boot on other partition

Public bug reported:

The following command is suggested to remove old Kernels:

sudo apt-get autoremove --purge

e.g. on this Q&A
https://askubuntu.com/questions/1253347/how-to-easily-remove-old-kernels-in-ubuntu-20-04-lts


This seems not to work well with set-up where the boot files sit on a different partition with limited size.


Example:
LVM configuration with boot on a different partition thank root:

Filesystem Size Used Avail Use% Mounted on
/dev/mapper/linux-root 100G 20G 80G 60% /
/dev/sda3 485M 287M 174M 63% /boot
/dev/sda1 96M 39M 58M 40% /boot/efi


Expected process:
sudo apt-get autoremove --purge
should remove all kernels on all partitions


Work-around solution:
uname -r
$CURRENT-KERNEL$

dpkg --list 'linux-image-*'

sudo apt-get purge $PREVIOUS-KERNEL$

** Affects: linux (Ubuntu)
Importance: Undecided
Status: Incomplete

--
You received this bug notification because you are subscribed to linux
in Ubuntu.
Matching subscriptions: Bgg, Bmail, Nb
https://bugs.launchpad.net/bugs/1910923

Title:
Purging of old kernel does not work with boot on other partition

Status in linux package in Ubuntu:
Incomplete

Bug description:
The following command is suggested to remove old Kernels:

sudo apt-get autoremove --purge

e.g. on this Q&A
https://askubuntu.com/questions/1253347/how-to-easily-remove-old-kernels-in-ubuntu-20-04-lts


This seems not to work well with set-up where the boot files sit on a different partition with limited size.


Example:
LVM configuration with boot on a different partition thank root:

Filesystem Size Used Avail Use% Mounted on
/dev/mapper/linux-root 100G 20G 80G 60% /
/dev/sda3 485M 287M 174M 63% /boot
/dev/sda1 96M 39M 58M 40% /boot/efi


Expected process:
sudo apt-get autoremove --purge
should remove all kernels on all partitions


Work-around solution:
uname -r
$CURRENT-KERNEL$

dpkg --list 'linux-image-*'

sudo apt-get purge $PREVIOUS-KERNEL$

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/linux/+bug/1910923/+subscriptions

Комментариев нет:

Отправить комментарий