BLFS profile group/user checking
Kevin P. Fleming
kpfleming at linuxfromscratch.org
Fri May 21 11:59:07 PDT 2004
Kevin P. Fleming wrote:
> The sections of the profiles that add groups and users use grep to check
> /etc/group and /etc/passwd to check if the groups and users to be added
> already exist.
> However, the profiles are not using "grep -q", but instead are
> redirecting the output of grep to /dev/null. "grep -q" is much cleaner.
Forgot one more item: in my own profile I put this user/group adding
into a separate stage (before the Installing stage). I think this is
easier to deal with in the user interface, as the stage can be
de-selected if the user doesn't want to run it.
More information about the alfs-discuss