metalog -> makefs is broken again in -HEAD
Warner Losh
imp at bsdimp.com
Fri Aug 19 21:38:16 UTC 2016
On Fri, Aug 19, 2016 at 3:27 PM, Adrian Chadd <adrian at freebsd.org> wrote:
> hi,
>
> ok, so here's the hilarity.
>
> We don't really have tools for consistently manipulating
> metalog/manifest files. So, in order to do things like
> add/delete/modify things in the manifest file, we need to do some ..
> hackery.
>
> So that's what filter.pl does. It takes in the metalog file and does a
> replace or append. It currently doesn't have a "delete" method.
>
> the .tmp file is "the extra files that we add /after/ the system
> installs". Ie, it's the customisations done. It goes through filter.pl
> and then the resultant metalog file has the complete thing that's
> going into the image.
>
> When I get around to adding package support for mips (not mips_ap)
> then it'll also have a second intermediary metalog file that has the
> combination of all of the package installs, so makefs knows what to
> do.
>
> Ok, so for metalog versus manifest. I remember doing it one way and
> then brooks saying "Don't do that, here's the bugs". I'll have to go
> over that and see.
NanoBSD will eventually follow suit as well. I really want to be able to
create entire images, including installing packages, as a normal user.
Making sure all this works is on that path. I have similar scripts to Adrian's
filter script as well for manipulating mtree files (and makefs does take mtree
files, it's just picky about the exact form, sadly).
Warner
More information about the freebsd-arch
mailing list