[ovs-git] [openvswitch/ovs] 2f4bfa: rhel: Fix literal dollar sign usage in systemd ser...

GitHub noreply at github.com
Tue Apr 17 15:39:35 UTC 2018

  Branch: refs/heads/branch-2.9
  Home:   https://github.com/openvswitch/ovs
  Commit: 2f4bfae0b0276a1628c3041db232a5893e50d8e8
  Author: Timothy Redaelli <tredaelli at redhat.com>
  Date:   2018-04-17 (Tue, 17 Apr 2018)

  Changed paths:
    M rhel/usr_lib_systemd_system_ovs-vswitchd.service.in
    M rhel/usr_lib_systemd_system_ovsdb-server.service

  Log Message:
  rhel: Fix literal dollar sign usage in systemd service files

Currently (at least on RHEL 7.5) openvswitch fails to start (with DPDK
enabled) as non-root, since chown fails and "/dev/hugepages" group is not

Commit tested on Fedora 28 and RHEL 7.5, both as root as non-root user.

>From man 5 systemd.service:

  To pass a literal dollar sign, use "$$". Variables whose value is not known
  at expansion time are treated as empty strings. Note that the first argument
  (i.e. the program to execute) may not be a variable.

CC: Aaron Conole <aconole at redhat.com>
Fixes: 4299145c1095 ("rhel: don't drop capabilities when running as root")
Signed-off-by: Timothy Redaelli <tredaelli at redhat.com>
Signed-off-by: Ben Pfaff <blp at ovn.org>
Acked-by: Aaron Conole <aconole at redhat.com>
Acked-by: Eelco Chaudron <echaudro at redhat.com>

More information about the git mailing list