On Sun, 13 May 2012 00:48:00 +0200 Michael Weber <[email protected]> wrote:
> On 01/19/2011 11:44 PM, Mike Frysinger wrote:
> > this is why we allow people to pick the appropriate step. ebuilds
> > should be using pkg_{pre,post}inst unless the user/group is needed
> > at src_* time. -mike
>
> I noticed a rather annoying test inside enewuser for existence of the
> provided "shell" path in the filesystem ( user.eclass lines 153-156 ).
>
> If you want to create an user and set the shell variable to an program
> you just emerge, you have to call it from pkg_postinst.
If you don't need it in install-time (i.e. don't install any files
owned by it), you should indeed defer the check as late as possible.
There's no point in creating user earlier when the emerge can still
fail/be aborted.
--
Best regards,
Michał Górny
signature.asc
Description: PGP signature
