[Bug 1988299] Re: Can't upgrade from 20.04 to 22.04 due to extreme space requirement for /boot
Jim Fulton
1988299 at bugs.launchpad.net
Sun Sep 18 18:01:59 UTC 2022
I have the same problem.
$ df -h /boot
Filesystem Size Used Avail Use% Mounted on
/dev/nvme0n1p2 704M 144M 509M 22% /boot
$ ls -lh /boot
total 136M
-rw-r--r-- 1 root root 257K Aug 4 12:44 config-5.15.0-46-generic
drwx------ 3 root root 4.0K Dec 31 1969 efi
drwxr-xr-x 4 root root 4.0K Aug 31 09:02 grub
lrwxrwxrwx 1 root root 28 Aug 31 09:01 initrd.img -> initrd.img-5.15.0-46-generic
-rw-r--r-- 1 root root 118M Sep 18 11:13 initrd.img-5.15.0-46-generic
drwx------ 2 root root 16K Sep 20 2021 lost+found
-rw-r--r-- 1 root root 179K Aug 18 2020 memtest86+.bin
-rw-r--r-- 1 root root 181K Aug 18 2020 memtest86+.elf
-rw-r--r-- 1 root root 181K Aug 18 2020 memtest86+_multiboot.bin
-rw------- 1 root root 6.0M Aug 4 12:44 System.map-5.15.0-46-generic
lrwxrwxrwx 1 root root 25 Aug 31 09:01 vmlinuz -> vmlinuz-5.15.0-46-generic
-rw------- 1 root root 11M Aug 4 12:47 vmlinuz-5.15.0-46-generic
I'm guessing I can't resize /boot as most of my disk is encrypted.
--
You received this bug notification because you are a member of Ubuntu
Foundations Bugs, which is subscribed to the bug report.
https://bugs.launchpad.net/bugs/1988299
Title:
Can't upgrade from 20.04 to 22.04 due to extreme space requirement for
/boot
Status in ubuntu-release-upgrader package in Ubuntu:
Triaged
Bug description:
I'm attempting to upgrade from 20.04 to 22.04 and my installation uses
full disk encryption, so I have a separate partition for /boot.
The size of the /boot partition was set by the installer for 20.04 (to
704 MiB) and I currently have 329 MiB free after removing old kernels
with apt autoremove:
$ df -h /boot
Filesystem Size Used Avail Use% Mounted on
/dev/sdb2 704M 324M 329M 50% /boot
When attempting to upgrade to 22.04 it fails with:
The upgrade has aborted. The upgrade needs a total of 787 M free
space on disk '/boot'. Please free at least an additional 442 M of
disk space on '/boot'. You can remove old kernels using 'sudo apt
autoremove' and you could also set COMPRESS=xz in
/etc/initramfs-tools/initramfs.conf to reduce the size of your
initramfs.
So it claims to need more space than the total size of the partition
(so presumably no amount of compressing initramfs will be enough!),
which as noted above is the default size for /boot chosen by the 20.04
installer.
Another instance of this issue has been raised here: https://askubuntu.com/q/1423156/57751
---
ProblemType: Bug
ApportVersion: 2.20.11-0ubuntu27.24
Architecture: amd64
CasperMD5CheckResult: skip
CrashDB: ubuntu
CurrentDesktop: ubuntu:GNOME
DistroRelease: Ubuntu 20.04
InstallationDate: Installed on 2020-04-25 (859 days ago)
InstallationMedia: Ubuntu 20.04 LTS "Focal Fossa" - Release amd64 (20200423)
NonfreeKernelModules: nvidia_modeset nvidia
Package: ubuntu-release-upgrader (not installed)
ProcVersionSignature: Ubuntu 5.15.0-46.49~20.04.1-generic 5.15.39
Tags: focal dist-upgrade
Uname: Linux 5.15.0-46-generic x86_64
UpgradeStatus: Upgraded to focal on 2022-08-31 (1 days ago)
UserGroups: adm cdrom dip docker lpadmin lxd plugdev sambashare sudo
_MarkForUpload: True
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/ubuntu-release-upgrader/+bug/1988299/+subscriptions
More information about the foundations-bugs
mailing list