Re: mountcritlocal rcorder (Was: Restrict mtree to specific directories)

2020-06-07 Thread Martin Husemann
I implemented the split and it works nicely for me. I can now just add things like "populate_var" into rc.d which REQUIRE: mountcritlocal and have BEFORE: MOUNTCRITLOCAL to fill the /var tmpfs that has just been mounted. While there I found that random_seed play special tricks and we might consid

mountcritlocal rcorder (Was: Restrict mtree to specific directories)

2020-06-03 Thread Martin Husemann
On Thu, Jun 04, 2020 at 05:48:34AM +0700, Robert Elz wrote: > And of course, I should have really read mtree(1) before replying, > so the suggested method would just be > > grep whatever original-spec-file [ | grep otherstuff ] | mtree I ended up not using mtree for this, as it was getting

Re: Restrict mtree to specific directories

2020-06-03 Thread Robert Elz
Date:Thu, 04 Jun 2020 05:45:01 +0700 From:Robert Elz Message-ID: <1215.1591224...@jinx.noi.kre.to> | If a change/addition to mtree is desirable, [...] And of course, I should have really read mtree(1) before replying, so the suggested method would just be

Re: Restrict mtree to specific directories

2020-06-03 Thread Robert Elz
Date:Tue, 2 Jun 2020 16:14:20 +0200 From:Martin Husemann Message-ID: <20200602141420.ga5...@mail.duskware.de> | I would like to create directory hierachies from mtree spec files, but | restrict this to selected hierachies (where the mtree files contain a | bit m

Re: Restrict mtree to specific directories

2020-06-03 Thread Martin Husemann
On Tue, Jun 02, 2020 at 04:14:20PM +0200, Martin Husemann wrote: > So in above example I could create a "onlyfile" containing something like: > > ./var > ./var/* > ./var/*/* > ./var/*/*/* > ./var/*/*/*/* > ./var/*/*/*/*/* > > or so I thought - but (a) it does n

Restrict mtree to specific directories

2020-06-02 Thread Martin Husemann
I have a small issue with mtree(8), that I am not quite sure how to fix best. I would like to create directory hierachies from mtree spec files, but restrict this to selected hierachies (where the mtree files contain a bit more). Example: mkdir /tmp/test && cd /tmp/test && mtree -f /etc/