Temporary files left under /var/tmp by mkinitramfs
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
initramfs-tools (Debian) |
Fix Released
|
Unknown
|
|||
initramfs-tools (Ubuntu) |
Fix Released
|
Undecided
|
Unassigned | ||
Trusty |
Fix Released
|
High
|
Brian Murray | ||
Xenial |
Fix Released
|
High
|
Brian Murray |
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/
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/
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
ProcVersionSign
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)
PackageArchitec
SourcePackage: initramfs-tools
UpgradeStatus: No upgrade log present (probably fresh install)
Changed in initramfs-tools (Debian): | |
status: | Unknown → Fix Released |
Changed in initramfs-tools (Ubuntu Trusty): | |
assignee: | nobody → Brian Murray (brian-murray) |
Changed in initramfs-tools (Ubuntu Xenial): | |
assignee: | nobody → Brian Murray (brian-murray) |
Changed in initramfs-tools (Ubuntu Trusty): | |
status: | Triaged → In Progress |
Changed in initramfs-tools (Ubuntu Xenial): | |
status: | Triaged → In Progress |
description: | updated |
Looks like this bug is related to bug #1597661 and bug #1515513 although both of those point the upgrade process being the prompt for a failing run of the initramfs-tools.