[Bug 1968154] [NEW] Only keep 2 kernels

Julian Andres Klode 1968154 at bugs.launchpad.net
Thu Apr 7 10:31:42 UTC 2022


Public bug reported:

[Impact]
APT currently keeps 3 kernels or even 4 in some releases. Our boot partition is sized for a steady state of 2 kernels + 1 new one being unpacked, hence users run out of space and new kernels fail to install, upgrade runs might abort in the middle. It's not nice.

[Test plan]
1. Have two kernels installed (let's call them version 3, 2)
2. Check that both kernels are not autoremovable
3. Install an old kernel (let's call it 1), and mark it automatic
4. Check that 1 will be autoremovable (apt autoremove -s)
5. Reboot into 1, check that 2 is autoremovable (apt autoremove -s)
6. Actually remove 2
7. Reboot into 3 and check that both 1 and 3 are now not autoremovable

unattended-upgrades needs changes to its test suite to accommodate this.

[Where problems could occur]
We could keep the wrong kernels installed that the user did not expect.

** Affects: apt (Ubuntu)
     Importance: High
     Assignee: Julian Andres Klode (juliank)
         Status: In Progress

** Affects: unattended-upgrades (Ubuntu)
     Importance: Undecided
         Status: New


** Tags: fr-2155

** Description changed:

  [Impact]
  APT currently keeps 3 kernels or even 4 in some releases. Our boot partition is sized for a steady state of 2 kernels + 1 new one being unpacked, hence users run out of space and new kernels fail to install, upgrade runs might abort in the middle. It's not nice.
  
  [Test plan]
  1. Have two kernels installed (let's call them version 3, 2)
  2. Check that both kernels are not autoremovable
  3. Install an old kernel (let's call it 1), and mark it automatic
  4. Check that 1 will be autoremovable (apt autoremove -s)
  5. Reboot into 1, check that 2 is autoremovable (apt autoremove -s)
  6. Actually remove 2
  7. Reboot into 3 and check that both 1 and 3 are now still not autoremovable
  
  [Where problems could occur]
- We could keep the wrong kernels installed that the user did not expect.
+ We could keep the wrong kernels installed that the user did not expect

** Description changed:

  [Impact]
  APT currently keeps 3 kernels or even 4 in some releases. Our boot partition is sized for a steady state of 2 kernels + 1 new one being unpacked, hence users run out of space and new kernels fail to install, upgrade runs might abort in the middle. It's not nice.
  
  [Test plan]
  1. Have two kernels installed (let's call them version 3, 2)
  2. Check that both kernels are not autoremovable
  3. Install an old kernel (let's call it 1), and mark it automatic
  4. Check that 1 will be autoremovable (apt autoremove -s)
  5. Reboot into 1, check that 2 is autoremovable (apt autoremove -s)
  6. Actually remove 2
- 7. Reboot into 3 and check that both 1 and 3 are now still not autoremovable
+ 7. Reboot into 3 and check that both 1 and 3 are now not autoremovable
  
  [Where problems could occur]
- We could keep the wrong kernels installed that the user did not expect
+ We could keep the wrong kernels installed that the user did not expect.

** Changed in: apt (Ubuntu)
       Status: New => In Progress

** Changed in: apt (Ubuntu)
   Importance: Undecided => High

** Changed in: apt (Ubuntu)
     Assignee: (unassigned) => Julian Andres Klode (juliank)

** Tags added: fr-2155

** Also affects: unattended-upgrades (Ubuntu)
   Importance: Undecided
       Status: New

** Description changed:

  [Impact]
  APT currently keeps 3 kernels or even 4 in some releases. Our boot partition is sized for a steady state of 2 kernels + 1 new one being unpacked, hence users run out of space and new kernels fail to install, upgrade runs might abort in the middle. It's not nice.
  
  [Test plan]
  1. Have two kernels installed (let's call them version 3, 2)
  2. Check that both kernels are not autoremovable
  3. Install an old kernel (let's call it 1), and mark it automatic
  4. Check that 1 will be autoremovable (apt autoremove -s)
  5. Reboot into 1, check that 2 is autoremovable (apt autoremove -s)
  6. Actually remove 2
  7. Reboot into 3 and check that both 1 and 3 are now not autoremovable
  
+ unattended-upgrades needs changes to its test suite to accommodate this.
+ 
  [Where problems could occur]
  We could keep the wrong kernels installed that the user did not expect.

-- 
You received this bug notification because you are a member of Ubuntu
Foundations Bugs, which is subscribed to apt in Ubuntu.
https://bugs.launchpad.net/bugs/1968154

Title:
  Only keep 2 kernels

Status in apt package in Ubuntu:
  In Progress
Status in unattended-upgrades package in Ubuntu:
  New

Bug description:
  [Impact]
  APT currently keeps 3 kernels or even 4 in some releases. Our boot partition is sized for a steady state of 2 kernels + 1 new one being unpacked, hence users run out of space and new kernels fail to install, upgrade runs might abort in the middle. It's not nice.

  [Test plan]
  1. Have two kernels installed (let's call them version 3, 2)
  2. Check that both kernels are not autoremovable
  3. Install an old kernel (let's call it 1), and mark it automatic
  4. Check that 1 will be autoremovable (apt autoremove -s)
  5. Reboot into 1, check that 2 is autoremovable (apt autoremove -s)
  6. Actually remove 2
  7. Reboot into 3 and check that both 1 and 3 are now not autoremovable

  unattended-upgrades needs changes to its test suite to accommodate
  this.

  [Where problems could occur]
  We could keep the wrong kernels installed that the user did not expect.

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




More information about the foundations-bugs mailing list