On 9/9/06, Jonas Karlsson <[EMAIL PROTECTED]> wrote:
> For adding users and groups I usually use this in pre_build():
>
> if ! grep -q foo $goboSettings/group
> then
>     Log_Normal "Adding group foo"
>     groupadd foo
> fi
>
> if ! grep -q "foo:x:" $goboSettings/passwd
> then
>     Log_Normal "Adding user foo"
>     useradd foo -g foo -c 'added by Compile for Foo' -d $goboVariable/empty
> -s $goboExecutables/false
> fi

Won't work in cross-compile mode, as passwd/shadow/group are stored in
a different prefix. I wonder if union-mount eg.:
/System/ARM/System/Settings over /System/Settings will do the trick.
We'll either need to add functionality to Shadow or to use a wrapper
in those cases.

-- 
Lucas
powered by /dev/dsp
_______________________________________________
gobolinux-devel mailing list
gobolinux-devel@lists.gobolinux.org
http://lists.gobolinux.org/mailman/listinfo/gobolinux-devel

Reply via email to