Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 409177 - sys-kernel/dracut-017-r1 should use /tmp instead of /var/tmp for temporary data
Summary: sys-kernel/dracut-017-r1 should use /tmp instead of /var/tmp for temporary data
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Core system (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Amadeusz Żołnowski (RETIRED)
URL: http://www.pathname.com/fhs/pub/fhs-2...
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-03-21 14:09 UTC by Martin von Gagern
Modified: 2012-03-26 14:29 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Martin von Gagern 2012-03-21 14:09:09 UTC
dracut will assemble its initramfs content in a temporary directory somewhere under /var/tmp. The FHS states that /var/tmp is for data which should be preserved over reboots (see URL field above), whereas /tmp need not be preserved. On modern systems, /tmp is likely to be a tmpfs, whereas /var/tmp still needs to be written to disk. As there is little point in preserving temporary dracut trees over reboots, /tmp would be the better place to store such things. Assembling stuff in ram should be considerably faster.

<rant>
I realize that an increasing number of developers no longer care about established standards like FHS. The latest developments with udev requiring /usr are a clear indication of this. But I still hope that you will still fix this, unless there is some good reason not to.
</rant>
Comment 1 Amadeusz Żołnowski (RETIRED) gentoo-dev 2012-03-26 11:39:51 UTC
Patch ready, sent upstream. Thanks.
Comment 2 Martin von Gagern 2012-03-26 12:07:51 UTC
Upstream ML post: http://thread.gmane.org/gmane.linux.kernel.initramfs/2564
Comment 3 Amadeusz Żołnowski (RETIRED) gentoo-dev 2012-03-26 13:06:44 UTC
I have added tmpdir option instead of changing it to /tmp, because "/tmp is for small files only" as upstream says and this directory might be quite huge in some cases.

Patch with tmpdir option is applied by upstream and I have added it in dracut-017-r2.
Comment 4 Amadeusz Żołnowski (RETIRED) gentoo-dev 2012-03-26 13:07:35 UTC
And thanks for the report! I use /tmp on my system, now. :-)
Comment 5 Amadeusz Żołnowski (RETIRED) gentoo-dev 2012-03-26 14:28:47 UTC
http://article.gmane.org/gmane.linux.kernel.initramfs/2567
Comment 6 Amadeusz Żołnowski (RETIRED) gentoo-dev 2012-03-26 14:29:49 UTC
Ups, this one: http://article.gmane.org/gmane.linux.kernel.initramfs/2565