[Bug 2027847] Re: Bump minimum /boot size in ubuntu-release-upgrader
Bump
2027847 at bugs.launchpad.net
Sat Jul 15 19:59:33 UTC 2023
ls -RSs1pq --block-size=1 /boot/
/boot/:
total 254656512
231763968 initrd.img-6.2.0-24-generic
13856768 vmlinuz-6.2.0-24-generic
8155136 System.map-6.2.0-24-generic
278528 config-6.2.0-24-generic
147456 memtest86+x64.efi
147456 memtest86+x64.bin
143360 memtest86+ia32.efi
139264 memtest86+ia32.bin
16384 lost+found/
4096 efi/
4096 grub/
0 initrd.img
0 initrd.img.old
0 vmlinuz
0 vmlinuz.old
ls: cannot open directory '/boot/lost+found': Permission denied
ls: cannot open directory '/boot/efi': Permission denied
/boot/grub:
total 2445312
2396160 unicode.pf2
20480 x86_64-efi/
12288 grub.cfg
4096 fonts/
4096 locale/
4096 grubenv
4096 gfxblacklist.txt
/boot/grub/x86_64-efi:
total 3584000
180224 normal.mod
147456 core.efi
147456 grub.efi
135168 net.mod
81920 zstd.mod
81920 regexp.mod
61440 gfxmenu.mod
61440 zfs.mod
49152 bsd.mod
49152 functional_test.mod
49152 legacycfg.mod
45056 mpi.mod
45056 xnu.mod
36864 gcry_twofish.mod
32768 syslinuxcfg.mod
28672 video_fb.mod
28672 gcry_camellia.mod
28672 btrfs.mod
28672 relocator.mod
28672 file.mod
28672 ehci.mod
24576 multiboot2.mod
24576 ahci.mod
24576 gcry_whirlpool.mod
24576 multiboot.mod
24576 linux.mod
24576 terminfo.mod
24576 luks2.mod
24576 gcry_rijndael.mod
20480 xzio.mod
20480 font.mod
20480 pgp.mod
20480 chain.mod
20480 cryptodisk.mod
20480 gfxterm.mod
20480 gcry_serpent.mod
20480 gcry_des.mod
16384 legacy_password_test.mod
16384 ohci.mod
16384 usb.mod
16384 acpi.mod
16384 ntfs.mod
16384 gcry_cast5.mod
16384 serial.mod
16384 reiserfs.mod
16384 linuxefi.mod
16384 gcry_seed.mod
16384 gcry_tiger.mod
16384 diskfilter.mod
16384 efi_gop.mod
16384 gzio.mod
16384 iso9660.mod
16384 udf.mod
12288 gcry_crc.mod
12288 lvm.mod
12288 hfsplus.mod
12288 usbms.mod
12288 macho.mod
12288 xfs.mod
12288 png.mod
12288 zfsinfo.mod
12288 jpeg.mod
12288 efinet.mod
12288 hdparm.mod
12288 hfs.mod
12288 uhci.mod
12288 f2fs.mod
12288 video_colors.mod
12288 squash4.mod
12288 nilfs2.mod
12288 mmap.mod
12288 http.mod
12288 bfs.mod
12288 geli.mod
12288 loadenv.mod
12288 video_cirrus.mod
12288 gcry_blowfish.mod
12288 jfs.mod
12288 ata.mod
12288 video.mod
12288 linux16.mod
12288 ext2.mod
12288 fat.mod
12288 signature_test.mod
12288 exfat.mod
12288 gettext.mod
12288 smbios.mod
12288 zfscrypt.mod
12288 hashsum.mod
12288 video_bochs.mod
12288 afs.mod
12288 setpci.mod
12288 ldm.mod
8192 affs.mod
8192 div_test.mod
8192 gcry_rmd160.mod
8192 sfs.mod
8192 ufs1_be.mod
8192 ufs1.mod
8192 ufs2.mod
8192 gfxterm_menu.mod
8192 extcmd.mod
8192 gcry_sha1.mod
8192 tftp.mod
8192 pata.mod
8192 test.mod
8192 halt.mod
8192 nativedisk.mod
8192 parttool.mod
8192 tpm.mod
8192 lspci.mod
8192 efi_uga.mod
8192 lsacpi.mod
8192 scsi.mod
8192 crypto.mod
8192 tga.mod
8192 lzopio.mod
8192 at_keyboard.mod
8192 terminal.mod
8192 luks.mod
8192 cmp_test.mod
8192 keylayouts.mod
8192 ls.mod
8192 elf.mod
8192 gcry_sha512.mod
8192 minicmd.mod
8192 minix3_be.mod
8192 usb_keyboard.mod
8192 minix2_be.mod
8192 minix3.mod
8192 cbfs.mod
8192 romfs.mod
8192 minix_be.mod
8192 minix2.mod
8192 ntfscomp.mod
8192 cbls.mod
8192 minix.mod
8192 probe.mod
8192 videotest.mod
8192 usbtest.mod
8192 search.mod
8192 bitmap_scale.mod
8192 appleldr.mod
8192 gptsync.mod
8192 lsefi.mod
8192 videoinfo.mod
8192 moddep.lst
8192 gcry_sha256.mod
8192 tar.mod
8192 macbless.mod
8192 json.mod
8192 search_fs_uuid.mod
8192 search_label.mod
8192 loopback.mod
8192 search_fs_file.mod
8192 cmdline_cat_test.mod
8192 loadbios.mod
8192 memrw.mod
8192 iorw.mod
8192 gcry_md5.mod
8192 archelp.mod
8192 newc.mod
8192 password_pbkdf2.mod
8192 cbtime.mod
8192 fshelp.mod
8192 gfxterm_background.mod
8192 cat.mod
8192 hexdump.mod
8192 lsefisystab.mod
8192 cpio_be.mod
8192 cpio.mod
8192 odc.mod
8192 hfspluscomp.mod
8192 part_bsd.mod
8192 gcry_md4.mod
4096 gcry_idea.mod
4096 cs5536.mod
4096 play.mod
4096 cbmemc.mod
4096 help.mod
4096 procfs.mod
4096 boot.mod
4096 testload.mod
4096 lssal.mod
4096 usbserial_pl2303.mod
4096 msdospart.mod
4096 videotest_checksum.mod
4096 lsefimmap.mod
4096 tr.mod
4096 random.mod
4096 command.lst
4096 pcidump.mod
4096 testspeed.mod
4096 configfile.mod
4096 usbserial_ftdi.mod
4096 pbkdf2_test.mod
4096 gcry_dsa.mod
4096 morse.mod
4096 sleep.mod
4096 gcry_rsa.mod
4096 sleep_test.mod
4096 raid6rec.mod
4096 bswap_test.mod
4096 xnu_uuid.mod
4096 bitmap.mod
4096 strtoull_test.mod
4096 part_gpt.mod
4096 spkmodem.mod
4096 memdisk.mod
4096 xnu_uuid_test.mod
4096 date.mod
4096 shift_test.mod
4096 progress.mod
4096 gcry_rfc2268.mod
4096 disk.mod
4096 rdmsr.mod
4096 datetime.mod
4096 fixvideo.mod
4096 datehook.mod
4096 echo.mod
4096 part_msdos.mod
4096 part_apple.mod
4096 blocklist.mod
4096 bufio.mod
4096 keystatus.mod
4096 password.mod
4096 lsmmap.mod
4096 cmp.mod
4096 usbserial_common.mod
4096 dm_nv.mod
4096 mdraid09_be.mod
4096 mdraid09.mod
4096 ctz_test.mod
4096 part_dfly.mod
4096 mdraid1x.mod
4096 part_amiga.mod
4096 setjmp_test.mod
4096 cpuid.mod
4096 part_plan.mod
4096 backtrace.mod
4096 part_sunpc.mod
4096 modinfo.sh
4096 mul_test.mod
4096 wrmsr.mod
4096 gcry_arcfour.mod
4096 time.mod
4096 usbserial_usbdebug.mod
4096 part_acorn.mod
4096 priority_queue.mod
4096 read.mod
4096 exfctest.mod
4096 offsetio.mod
4096 part_sun.mod
4096 part_dvh.mod
4096 eval.mod
4096 efifwsetup.mod
4096 crc64.mod
4096 afsplitter.mod
4096 test_blockarg.mod
4096 trig.mod
4096 raid5rec.mod
4096 adler32.mod
4096 pbkdf2.mod
4096 true.mod
4096 hello.mod
4096 reboot.mod
4096 cbtable.mod
4096 aout.mod
4096 div.mod
4096 crypto.lst
4096 setjmp.mod
4096 all_video.mod
4096 fs.lst
4096 terminal.lst
4096 partmap.lst
4096 load.cfg
4096 video.lst
4096 parttool.lst
/boot/grub/fonts:
total 2396160
2396160 unicode.pf2
/boot/grub/locale:
total 131072
118784 en at quot.mo
4096 en_GB.mo
4096 en_AU.mo
4096 en_CA.mo
--
You received this bug notification because you are a member of Ubuntu
Foundations Bugs, which is subscribed to dpkg in Ubuntu.
https://bugs.launchpad.net/bugs/2027847
Title:
Bump minimum /boot size in ubuntu-release-upgrader
Status in apt package in Ubuntu:
Won't Fix
Status in dpkg package in Ubuntu:
Invalid
Status in kernel-package package in Ubuntu:
Invalid
Status in linux package in Ubuntu:
Invalid
Status in linux-firmware package in Ubuntu:
Invalid
Status in linux-kernel-headers package in Ubuntu:
Invalid
Status in linux-restricted-modules package in Ubuntu:
Invalid
Status in ubuntu-release-upgrader package in Ubuntu:
New
Bug description:
System information:
ubuntu 23.04 x86_64
6.2.0-24-generic
Upgrading the system:
$ sudo dpkg --configure -a
Setting up linux-firmware (20230323.gitbcdcfbcf-0ubuntu1.2) ...
update-initramfs: Generating /boot/initrd.img-6.2.0-24-generic
I: The initramfs will attempt to resume from /dev/dm-2
I: (/dev/mapper/ubuntu--vg-swap_1)
I: Set the RESUME variable to override this.
zstd: error 70 : Write error : cannot write block : No space left on device
E: mkinitramfs failure zstd -q -1 -T0 70
Check space left (none):
$ df -h /boot
Filesystem Size Used Avail Use% Mounted on
/dev/sdb2 707M 693M 0 100% /boot
What is required is to remove older kernels (and purge them most likely). List all the installed kernels except the current one:
$ dpkg -l 'linux-*' | sed '/^ii/!d;/'"$(uname -r | sed "s/\(.*\)-\([^0-9]\+\)/\1/")"'/d;s/^[^ ]* [^ ]* \([^ ]*\).*/\1/;/[0-9]/!d'
linux-headers-6.2.0-23
linux-headers-6.2.0-23-generic
linux-headers-6.2.0-25
linux-headers-6.2.0-25-generic
linux-image-6.2.0-23-generic
linux-libc-dev:amd64
linux-libc-dev:i386
linux-modules-6.2.0-23-generic
linux-modules-6.2.0-25-generic
linux-modules-extra-6.2.0-23-generic
linux-modules-extra-6.2.0-25-generic
Is not possible to uninstall any kernel because fails:
$ sudo apt purge linux-headers-6.2.0-23
E: dpkg was interrupted, you must manually run 'sudo dpkg --configure -a' to correct the problem.
Reconfigure fails again so some kernel have to be manually removed to free up space:
$ sudo rm /boot/initrd.img-6.2.0-23-generic
$ sudo rm -rf /boot/initrd.img-6.2.0-25-generic.new
Now you can reconfigure:
$
Remove kernels:
$ sudo apt purge linux-headers-6.2.0-23 linux-headers-6.2.0-23-generic linux-headers-6.2.0-25 linux-headers-6.2.0-25-generic linux-image-6.2.0-23-generic linux-modules-6.2.0-23-generic linux-modules-6.2.0-25-generic linux-modules-extra-6.2.0-23-generic linux-modules-extra-6.2.0-25-generic
Reboot:
$ sudo reboot
Upgrade as usual:
$ sudo apt update && sudo apt upgrade
Before upgrading new kernels I need to check for free space and remove
older kernels manually. Fix this so there's only one kernel left.
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/apt/+bug/2027847/+subscriptions
More information about the foundations-bugs
mailing list