This bug was fixed in the package initramfs-tools - 0.103ubuntu4.10 --------------- initramfs-tools (0.103ubuntu4.10) trusty; urgency=medium
* mkinitramfs: Delete or report temporary files in /var/tmp/ on failure. (LP: #1713004) -- Brian Murray <br...@ubuntu.com> Tue, 05 Dec 2017 11:29:04 -0800 ** Changed in: initramfs-tools (Ubuntu Trusty) Status: Fix Committed => Fix Released -- You received this bug notification because you are a member of Ubuntu Touch seeded packages, which is subscribed to initramfs-tools in Ubuntu. https://bugs.launchpad.net/bugs/1713004 Title: Temporary files left under /var/tmp by mkinitramfs Status in initramfs-tools package in Ubuntu: Fix Released Status in initramfs-tools source package in Trusty: Fix Released Status in initramfs-tools source package in Xenial: Fix Released Status in initramfs-tools package in Debian: Fix Released Bug description: Test Case --------- 1) confirm there are no mkinitramfs junk files in /var/tmp 2) run 'sudo update-initramfs -k all -u -v' 3) interrupt update-initramfs with Ctrl-C 4) observe junk files in /var/tmp e.g. /var/tmp/mkinitramfs* With the version of initramfs-tools in -proposed you should see not have any leftovers in /var/tmp. I recently ran out of disk space on my / mount. While looking for what consumed the disk I noticed a large number (130) of directories with names / paths beginning /var/tmp/mkinitramfs. These directories seem to be either ~103 MB or ~927 MB in size. Many of these files are months old, some are almost a year. Having had a quick look about for an explanation as to why these files are here and found Debian Bug #814345. That explains that temporary files are left behind by the initramfs-tools if something fails in the process. If this is the cause of my files then updating the Ubuntu package to version 0.123 should resolve this issue. ProblemType: Bug DistroRelease: Ubuntu 16.04 Package: initramfs-tools 0.122ubuntu8.8 ProcVersionSignature: Ubuntu 4.4.0-72.93-generic 4.4.49 Uname: Linux 4.4.0-72-generic x86_64 ApportVersion: 2.20.1-0ubuntu2.10 Architecture: amd64 CurrentDesktop: Unity Date: Fri Aug 25 09:40:41 2017 InstallationDate: Installed on 2015-03-12 (896 days ago) InstallationMedia: Ubuntu 14.04.2 LTS "Trusty Tahr" - Release amd64 (20150218.1) PackageArchitecture: all SourcePackage: initramfs-tools UpgradeStatus: No upgrade log present (probably fresh install) To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/initramfs-tools/+bug/1713004/+subscriptions -- Mailing list: https://launchpad.net/~touch-packages Post to : touch-packages@lists.launchpad.net Unsubscribe : https://launchpad.net/~touch-packages More help : https://help.launchpad.net/ListHelp