Hi
I have an rpm that creates a user as part of the %pre in the rpm like so
%pre
getent group orca >/dev/null || groupadd -r orca
getent passwd orca >/dev/null || useradd -r -g orca -d /var/orca -s
/bin/bash -c "Orca Application User" orca
This works fine for when the package is installed in the %post or even
after installation.
However when i put this package into the %packages section of my
kickstart the package fails to install with
Installing procallator - 1.0-6.noarch
/var/tmp/rpm-tmp.18620: line 1: groupadd: command not found
/var/tmp/rpm-tmp.18620: line 2: useradd: command not found
error: %pre(procallator-1.0-6.noarch) scriptlet failed, exit status 127
error: install: %pre scriptlet failed (2), skipping procallator-1.0-6
Now i presume this is something to do with groupadd and useradd not
being available in anaconda, if so how can i resolve this so that this
can be installed in the %packages section or later on with yum without
changing the package?
thanks
_______________________________________________
Kickstart-list mailing list
Kickstart-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/kickstart-list