[FFE] increase /boot partition size
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
partman-auto (Ubuntu) |
Triaged
|
High
|
Unassigned | ||
Focal |
Fix Released
|
High
|
Brian Murray | ||
Jammy |
Triaged
|
High
|
Unassigned | ||
subiquity (Ubuntu) |
Fix Released
|
Undecided
|
Unassigned | ||
Focal |
Fix Released
|
Undecided
|
Unassigned | ||
Jammy |
Fix Released
|
Undecided
|
Unassigned | ||
ubiquity (Ubuntu) |
Fix Released
|
High
|
Brian Murray | ||
Focal |
Fix Released
|
Undecided
|
Unassigned | ||
Jammy |
Fix Released
|
High
|
Brian Murray |
Bug Description
[FFE Discussion]
Now that changes to the initramfs compression level have been settled for jammy (https:/
Using the same install of Ubuntu with cryptsetup and nvidia modules my initrd is now 188 MB. Plugging that into our formula gets:
2* (3*11 + 4*188 +11) = 1592
While that's divisible by two, I think we should bump it a bit more to 1848.
[Impact]
All new installs of 20.04.
[Test case]
1) Install Ubuntu 20.04 with encryption (this'll create a separate /boot partition) on a system
2) Validate that the size of the /boot partition is greater than or equal to 768MB; should be somewhere between 768MB and 1536GB.
[Regression potential]This may adversely affect installs on tiny disks, by taking up more space for the /boot partition than was previously taken, at the cost of / or /home. As such, failures to install due to insufficient space on a partition, or failure to partition a disk that was previously working should be investigated as possible regressions.
This is a corner case in general since there is no requirement to allocate a separate partition for /boot in the default configuration, and if you are using a non-default configuration where /boot must be a separate partition, you probably also don't have a disk so small that an additional 256MB of disk usage is a problem.
---
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.
description: | updated |
Changed in partman-auto (Ubuntu Focal): | |
status: | New → In Progress |
importance: | Undecided → High |
assignee: | nobody → Brian Murray (brian-murray) |
tags: | added: fr-1978 |
description: | updated |
Changed in partman-auto (Ubuntu Jammy): | |
status: | New → Triaged |
importance: | Undecided → High |
tags: |
added: verification-done verification-done-focal removed: verification-needed verification-needed-focal |
Changed in partman-auto (Ubuntu Jammy): | |
milestone: | none → ubuntu-22.04-beta |
Changed in ubiquity (Ubuntu Jammy): | |
status: | Confirmed → Triaged |
importance: | Undecided → High |
summary: |
- increase /boot partition size + [FFE] increase /boot partition size |
description: | updated |
Changed in partman-auto (Ubuntu Jammy): | |
status: | Triaged → New |
Changed in ubiquity (Ubuntu Jammy): | |
status: | Triaged → New |
Changed in ubiquity (Ubuntu Jammy): | |
assignee: | nobody → Brian Murray (brian-murray) |
status: | Triaged → In Progress |
Changed in subiquity (Ubuntu Jammy): | |
status: | Fix Committed → Fix Released |
Changed in subiquity (Ubuntu): | |
status: | Fix Committed → Fix Released |
Hello Brian, or anyone else affected,
Accepted partman-auto into focal-proposed. The package will build now and be available at https:/ /launchpad. net/ubuntu/ +source/ partman- auto/134ubuntu1 3.1 in a few hours, and then in the -proposed repository.
Please help us by testing this new package. See https:/ /wiki.ubuntu. com/Testing/ EnableProposed for documentation on how to enable and use -proposed. Your feedback will aid us getting this update out to other Ubuntu users.
If this package fixes the bug for you, please add a comment to this bug, mentioning the version of the package you tested, what testing has been performed on the package and change the tag from verification- needed- focal to verification- done-focal. If it does not fix the bug for you, please add a comment stating that, and change the tag to verification- failed- focal. In either case, without details of your testing we will not be able to proceed.
Further information regarding the verification process can be found at https:/ /wiki.ubuntu. com/QATeam/ PerformingSRUVe rification . Thank you in advance for helping!
N.B. The updated package will be released to -updates after the bug(s) fixed by this package have been verified and the package has been in -proposed for a minimum of 7 days.