Re: a place for a package directory in root
In article <[🔎] 20050902065319.GA4954@chistera.yi.org>,
Adeodato Simó <email@example.com> wrote:
>* Steve Langasek [Thu, 01 Sep 2005 23:03:21 -0700]:
>> Hrm. If this information is all just being copied to the real
>> filesystem at the end of the boot process anyway, why does it need to
>> write it out to disk instead of just storing it in memory, anyway?
> He claimed it's not possible:
Actually, it's pretty simple to do this, by using a lazy unmount.
No need to add an extra /run directory.
mount -n -t tmpfs tmpfs /tmp
umount -n -fl /tmp
# From this point on, the current working directory of this script
# and all its children is a tmpfs mount that isn't seen by the
# rest of the system. As soon as this script exits the tmpfs
# mount is cleaned up.
... bla, blah ...