Just a note: the split-user functionality was fixed some days ago, so I
pushed this :)

There were some comments on checking for the existence of adduser /
addgroup and going the old way if present, but it seems many distros just
symlink useradd to adduser, making proper checking a pain.

On Wed, Sep 17, 2014 at 7:10 PM, Hrvoje Ribicic <[email protected]> wrote:

> Opened the issue right now:
> https://code.google.com/p/ganeti/issues/detail?id=949
>
> Will fix it ASAP, should not take long.
>
> On Wed, Sep 17, 2014 at 6:53 PM, Guido Serra <[email protected]> wrote:
>
>> ok, tnx Rabi
>>
>> let me know if I can support on this
>> … do u have a public ticket about it?
>>
>> cheers,
>> --
>> Guido Serra, SRE
>>
>> GAIKAI - Sony Playstation, Berlin
>>
>> On 17 Sep 2014, at 18:45, Hrvoje Ribicic <[email protected]> wrote:
>>
>> > It looks as if there is a bug with the split-user options in 2.12 -
>> will check it out, and push this patch if everything still works.
>> >
>> > On Wed, Sep 17, 2014 at 4:00 PM, Guido Serra <[email protected]> wrote:
>> > hey, any chance this made it into master?
>> >
>> > Zeph
>> >
>> >
>> > On Monday, July 28, 2014 8:28:07 AM UTC+2, Guido Serra wrote:
>> > Signed-off-by: Guido Serra <[email protected]>
>> > ---
>> >  Makefile.am | 6 +++---
>> >  1 file changed, 3 insertions(+), 3 deletions(-)
>> >
>> > diff --git a/Makefile.am b/Makefile.am
>> > index 7666d18..a8b6396 100644
>> > --- a/Makefile.am
>> > +++ b/Makefile.am
>> > @@ -1695,9 +1695,9 @@ tools/users-setup: Makefile $(userspecs)
>> >            echo 'read confirm'; \
>> >            echo 'if [ "x$$confirm" != "xy" ]; then exit 0; fi'; \
>> >            echo 'fi'; \
>> > -          $(AWK) -- '{print "addgroup --system",$$1}'
>> doc/users/groups; \
>> > -          $(AWK) -- '{if (NF > 1) {print "adduser --system
>> --ingroup",$$2,$$1} else {print "adduser --system",$$1}}' doc/users/users; \
>> > -          $(AWK) -- '{print "adduser",$$1,$$2}'
>> doc/users/groupmemberships; \
>> > +          $(AWK) -- '{print "groupadd --system",$$1}'
>> doc/users/groups; \
>> > +          $(AWK) -- '{if (NF > 1) {print "useradd --system
>> --gid",$$2,$$1} else {print "useradd --system",$$1}}' doc/users/users; \
>> > +          $(AWK) -- '{print "usermod --append --groups",$$2,$$1}'
>> doc/users/groupmemberships; \
>> >          } > $@
>> >          chmod +x $@
>> >
>> > --
>> > 1.8.5.2 (Apple Git-48)
>> >
>> >
>>
>>
>

Reply via email to