[ovs-dev] [PATCH] rhel: user/group openvswitch does not exist

Markos Chandras mchandras at suse.de
Tue Apr 10 14:01:29 UTC 2018


On 10/04/18 14:49, Aaron Conole wrote:
> +%pre
> +getent group openvswitch >/dev/null || groupadd -r openvswitch
> +getent passwd openvswitch >/dev/null || \
> +    useradd -r -g openvswitch -d / -s /sbin/nologin \
> +    -c "Open vSwitch Daemons" openvswitch
> +
> +%if %{with dpdk}
> +    getent group hugetlbfs >/dev/null || groupadd hugetlbfs
> +    usermod -a -G hugetlbfs openvswitch
> +%endif
> +exit 0

Maybe this 'exit 0' is not actually needed here?

-- 
markos

SUSE LINUX GmbH | GF: Felix Imendörffer, Jane Smithard, Graham Norton
HRB 21284 (AG Nürnberg) Maxfeldstr. 5, D-90409, Nürnberg



More information about the dev mailing list