[Bug 1640645] Re: free space check doesn't take into account kernel upgrades

Brian Murray brian at ubuntu.com
Wed Dec 14 23:44:55 UTC 2016


Testing the package from -proposed I ran into the following error, which
is the desired effect:

Not enough free disk space

The upgrade has aborted. The upgrade needs a total of 69.8 M free 
space on disk '/boot'. Please free at least an additional 41.8 M of 
disk space on '/boot'. Empty your trash and remove temporary packages 
of former installations using 'sudo apt-get clean'. 

bdmurray at upgrade-trusty-amd64:~$ cat /tmp/ubuntu-release-upgrader-gtif11_8/DistUpgradeVersion.py 
VERSION = '16.04.20'

Setting to verification-done.

** Tags removed: verification-needed
** Tags added: verification-done

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

Title:
  free space check doesn't take into account kernel upgrades

Status in ubuntu-release-upgrader package in Ubuntu:
  Fix Released
Status in ubuntu-release-upgrader source package in Xenial:
  Fix Committed

Bug description:
  [Test Case]
  If you don't have a separate /boot partition you can create a file which will be loopback mounted as boot and then test having a full /boot.
  1) Install xenial hwe backport kernel
  2) dd if=/dev/zero of=fake-boot bs=1024 count=204800
  3) mkfs -t ext3 fake-boot
  4) copy your real /boot somewhere
  5) sudo mount -t ext3 fake-boot /boot
  6) copy the files from your old /boot into the /boot
  7) fill /boot up some more e.g. fallocate -l 50M filler.txt
  8) upgrade from Trusty to Xenial (do-release-upgrader)

  With the version of the release-upgrader in the archive you'll receive
  an error regarding "gzip: stdout: No space left on device...
  mkinitramfs failure cpio 141 gzip 1".

  With the version of the release-upgrader from -proposed you'll receive
  an error notification that there is "Not enough free disk space" and
  the upgrade will not proceed.

  [Regression Potential]
  There is little chance of regression as we are just checking to see if linux-image or linux-image-debug packages are marked for upgrade.

  Could not install 'linux-image-4.4.0-45-generic'

  ProblemType: BugDistroRelease: Ubuntu 16.04
  Package: ubuntu-release-upgrader-core 1:16.04.17
  ProcVersionSignature: Ubuntu 4.4.0-45.66~14.04.1-generic 4.4.21
  Uname: Linux 4.4.0-45-generic x86_64
  ApportVersion: 2.20.1-0ubuntu2.1
  Architecture: amd64
  CrashDB: ubuntu
  CurrentDesktop: Unity
  Date: Wed Nov  9 20:11:19 2016
  InstallationDate: Installed on 2015-05-24 (535 days ago)
  InstallationMedia: Ubuntu 14.04.2 LTS "Trusty Tahr" - Release amd64 (20150218.1)
  PackageArchitecture: all
  ProcEnviron:
   LANGUAGE=en_CA:en
   PATH=(custom, no user)
   XDG_RUNTIME_DIR=<set>
   LANG=en_CA.UTF-8
   SHELL=/bin/bashSourcePackage: ubuntu-release-upgrader
  Symptom: release-upgrade
  UpgradeStatus: Upgraded to xenial on 2016-11-10 (0 days ago)
  VarLogDistupgradeAptclonesystemstate.tar.gz: Error: command ['pkexec', 'cat', '/var/log/dist-upgrade/apt-clone_system_state.tar.gz'] failed with exit code 127: Error creating textual authentication agent: Error opening current controlling terminal for the process (`/dev/tty'): No such device or address
  VarLogDistupgradeTermlog:

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/ubuntu-release-upgrader/+bug/1640645/+subscriptions



More information about the foundations-bugs mailing list