rcorder keep list

Brooks Davis brooks at one-eyed-alien.net
Wed May 12 11:53:51 PDT 2004


While working on some diskless cluster support I realized that it would
be useful to be able to run initdiskless (and its requirement
preseedrandom) before the main rcorder run.  This would allow inserting
new scripts using /conf to reduce the number of modifications required
to the source tree.

The obvious thing to do seemed to be to tag scripts that need to run
before the main rcorder run in some way.  I tried taging them with
an early keyword, but ran into a problem with rcorder because I then
need to check for both FreeBSD and early keywords.  I was suprised to
discover that keep lists are evaluated as an OR operation so you only
need to have one of they keyword.  The only way I can see to evaluate
them with AND is something like:

files=`rcorder -k keyword1 /etc/rc.d/*`
files=`rcorder -k keyword2 ${files}`

This seems to be a somewhat expensive solution. Also, the documentation
is a bit vague.  I'd tend to read it as an AND not an OR list, but I'm
not 100% sure and I've got an obvious bias:

     -k      Add the specified keyword to the ``keep list''.  If any -k option
             is given, only those files containing the matching keyword are
             listed.

Is the current implemenation correct?  If so, should we add the ability
to make the list evaluate as AND instead of OR or even change the
behavior?

-- Brooks

-- 
Any statement of the form "X is the one, true Y" is FALSE.
PGP fingerprint 655D 519C 26A7 82E7 2529  9BF0 5D8E 8BE9 F238 1AD4
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
Url : http://lists.freebsd.org/pipermail/freebsd-rc/attachments/20040512/59df3058/attachment.bin


More information about the freebsd-rc mailing list