On 9/26/11 8:47 PM, Julian Pidancet wrote: > On Tue, Sep 27, 2011 at 12:59 AM, Julian Pidancet > <julian.pidan...@gmail.com> wrote: >> On Tue, Sep 27, 2011 at 12:38 AM, Saul Wold <s...@linux.intel.com> wrote: >>> >>> Is there a reason you did not include the group and --disable-password here? >>> >>> I think it would be good to leave thelong name options in also. >>> >>> Sau! >>> >> >> The -U option creates a group with the same name. The >> --disable-password option only exists with adduser and is default with >> useradd -r. >> I'd just like to point out that adduser is originally a perl script >> from debian and reimplemented in busybox. The options it takes are not >> compatible with the more standard useradd from the shadow package. >> >> For some reason, some long options like --system (which is supposed to >> be supported in useradd) did not work during my first >> experimentations, but I will investigate and respin a patch with long >> options if possible. >> >> Also, I discovered that the following recipes still depends on adduser: >> ppp-dialin, avahi, distcc, xserver-nodm-init, pulseaudio, hal, dbus >> >> It would be good to use the useradd class with all of them. >> > > In the shadow-sysroot package that we build to be able to use the > useradd class, we apply the add_root_cmd_options.patch to add the > --root option to useradd. > > The --root option allows useradd to chroot somewhere so it can modify > /etc/passwd, but at the same time, it disables all the other long > options in the program. > > It looks like it is impossible to use long options with the useradd > class. I don't know how straighforward it would be to modify this > patch to get the long options back. But is it worth the pain ? >
If the long options got disabled due to the path, it's a bug. (File a bug on bugzilla.yoctoproject.org and someone will look at it.. or submit a patch...) --Mark _______________________________________________ Openembedded-core mailing list Openembedded-core@lists.openembedded.org http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/openembedded-core