[Bug 1652469] Re: Boot partition too small, apt-get upgrade fails
Launchpad Bug Tracker
1652469 at bugs.launchpad.net
Sat Jun 3 20:24:33 UTC 2017
Status changed to 'Confirmed' because the bug affects multiple users.
** Changed in: debian-installer (Ubuntu)
Status: New => Confirmed
--
You received this bug notification because you are a member of Ubuntu
Foundations Bugs, which is subscribed to debian-installer in Ubuntu.
https://bugs.launchpad.net/bugs/1652469
Title:
Boot partition too small, apt-get upgrade fails
Status in debian-installer package in Ubuntu:
Confirmed
Bug description:
PROBLEM:
On install, the boot partition has the size 244.0 MiB or 499,712 sectors
SYMPTOM:
This causes apt-get upgrade to fail at a later time with messages like:
apt-get --yes dist-upgrade
…
update-initramfs: Generating /boot/initrd.img-4.4.0-57-generic
gzip: stdout: No space left on device
E: mkinitramfs failure cpio 141 gzip 1
update-initramfs: failed for /boot/initrd.img-4.4.0-57-generic with 1.
run-parts: /etc/kernel/postinst.d/initramfs-tools exited with return code 1
dpkg: error processing package linux-image-extra-4.4.0-57-generic (--configure):
subprocess installed post-installation script returned error exit status 1
dpkg: dependency problems prevent configuration of linux-image-generic:
linux-image-generic depends on linux-image-extra-4.4.0-57-generic; however:
Package linux-image-extra-4.4.0-57-generic is not configured yet.
…
Errors were encountered while processing:
linux-image-extra-4.4.0-57-generic
linux-image-generic
linux-generic
linux-signed-image-generic
linux-signed-generic
E: Sub-process /usr/bin/dpkg returned an error code (1)
- status code: 100
FIX:
usually want multiple of 2,048 sectors / 1 MiB
One kernel revision is 56 MiB
Miscellaneous files is 28 MiB
File system overhead is 11 MiB
Typically there are 3 kernels: is the running, the latest and the second to latest
56 * 3 + 28 = 196 MiB
A system upgrade requires 120 MiB free
So /boot should be at least 196 + 11 + 120 = 327 MiB in 1 MiB increments
A power of 2 would be 512 MiB or 1,048,576 sectors
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/debian-installer/+bug/1652469/+subscriptions
More information about the foundations-bugs
mailing list