On Wed, Sep 5, 2012 at 3:25 PM, Dan Kegel <d...@kegel.com> wrote: > I see Florian asked this a few weeks ago: > So that's one more requirement discovered: I need lxc-start-ephemeral > to support nontrivial amounts of disk storage, more than will > fit in tmpfs. > > Maybe I'll add an argument "--overlaydir PATH" for where to store the files; > if that's set, setup_container() will use that rather than doing > OVERLAY_DIR=`mktemp -d /tmp/lxc-lp-XXXXXXX` > sudo mount -t tmpfs none $OVERLAY_DIR > > For safety, I would create a subdirectory inside the specified directory, > and use that for $OVERLAY_DIR. That would let me clean up > that directory before and after runs without worrying about > accidentally destroying the host system if the user makes a typo.
Kinda like the attached patch. (It's a little dirty. I'll try to send a clean one once I've actually used it in production for a while.)
o.patch
Description: Binary data
------------------------------------------------------------------------------ Live Security Virtual Conference Exclusive live event will cover all the ways today's security and threat landscape has changed and how IT managers can respond. Discussions will include endpoint security, mobile security and the latest in malware threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________ Lxc-users mailing list Lxc-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/lxc-users