[Bug 1959971] [NEW] increase /boot partition size

Brian Murray 1959971 at bugs.launchpad.net
Thu Feb 3 22:41:39 UTC 2022


Public bug reported:

The kernel in Jammy is a bit larger than the one in Focal and our
previous /boot partition size calculation (LP: #1716999) likely didn't
take into account adding modules like nvidia to the initramfs.
Subsequently, we need to revisit the size calculations for Focal.

I'm utilizing cryptsetup and nvidia modules and have a 164M initrd when
using lz4 (the default in Focal) compression. Using the same formula we
previously did we end up with this:

2* (3*11 + 4*164 + 11) = 1400

So modifying the maximum size to 1536 seems reasonable, the current
minimum is 512 which is actually a bit too small for an initrd with less
modules e.g.:

2* (3*11 + 4*62 + 11) = 584

So the minimum should also be increased to 768.

The default compression level for Jammy is currently being discussed and
until that is decided we shouldn't make changes to partman-auto for
Jammy.

** Affects: partman-auto (Ubuntu)
     Importance: Undecided
         Status: New

** Affects: partman-auto (Ubuntu Focal)
     Importance: High
     Assignee: Brian Murray (brian-murray)
         Status: In Progress


** Tags: fr-1978

** Description changed:

- The kernel in Jammy is a bit larger than the one in Focal and we our
+ The kernel in Jammy is a bit larger than the one in Focal and our
  previous /boot partition size calculation (LP: #1716999) likely didn't
  take into account adding modules like nvidia to the initramfs.
  Subsequently, we need to revisit the size calculations for Focal.
  
  I'm utilizing cryptsetup and nvidia modules and have a 164M initrd when
  using lz4 (the default in Focal) compression. Using the same formula we
  previously did we end up with this:
  
  2* (3*11 + 4*164 + 11) = 1400
  
  So modifying the maximum size to 1536 seems reasonable, the current
  minimum is 512 which is actually a bit too small for an initrd with less
  modules e.g.:
  
  2* (3*11 + 4*62 + 11) = 584
  
  So the minimum should also be increased to 768.
  
  The default compression level for Jammy is currently being discussed and
  until that is decided we shouldn't make changes to partman-auto for
  Jammy.

** Also affects: partman-auto (Ubuntu Focal)
   Importance: Undecided
       Status: New

** Changed in: partman-auto (Ubuntu Focal)
       Status: New => In Progress

** Changed in: partman-auto (Ubuntu Focal)
   Importance: Undecided => High

** Changed in: partman-auto (Ubuntu Focal)
     Assignee: (unassigned) => Brian Murray (brian-murray)

** Tags added: fr-1978

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

Title:
  increase /boot partition size

Status in partman-auto package in Ubuntu:
  New
Status in partman-auto source package in Focal:
  In Progress

Bug description:
  The kernel in Jammy is a bit larger than the one in Focal and our
  previous /boot partition size calculation (LP: #1716999) likely didn't
  take into account adding modules like nvidia to the initramfs.
  Subsequently, we need to revisit the size calculations for Focal.

  I'm utilizing cryptsetup and nvidia modules and have a 164M initrd
  when using lz4 (the default in Focal) compression. Using the same
  formula we previously did we end up with this:

  2* (3*11 + 4*164 + 11) = 1400

  So modifying the maximum size to 1536 seems reasonable, the current
  minimum is 512 which is actually a bit too small for an initrd with
  less modules e.g.:

  2* (3*11 + 4*62 + 11) = 584

  So the minimum should also be increased to 768.

  The default compression level for Jammy is currently being discussed
  and until that is decided we shouldn't make changes to partman-auto
  for Jammy.

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/partman-auto/+bug/1959971/+subscriptions




More information about the foundations-bugs mailing list