summaryrefslogtreecommitdiff
path: root/meta-google/recipes-google/nftables/files/nftables.service
diff options
context:
space:
mode:
authorWilliam A. Kennington III <wak@google.com>2021-02-17 01:38:36 +0300
committerWilliam A. Kennington III <wak@google.com>2021-02-17 01:59:20 +0300
commit4a2b9eba19ccd88a899d93bbcde88f612142821c (patch)
tree2e4e7d762d176dd2f21ad58ecfb839c7109c4137 /meta-google/recipes-google/nftables/files/nftables.service
parent5538c16344d49fab1fdce60c7c74d490753fc7dd (diff)
downloadopenbmc-4a2b9eba19ccd88a899d93bbcde88f612142821c.tar.xz
meta-google: nftables-systemd: Fix for missing rules
We need nftables-systemd to execute correctly even if the machine has no rules installed. Change-Id: I20d58b721381a2829eaa2baedd5d79e8e0a10fd0 Signed-off-by: William A. Kennington III <wak@google.com>
Diffstat (limited to 'meta-google/recipes-google/nftables/files/nftables.service')
-rw-r--r--meta-google/recipes-google/nftables/files/nftables.service2
1 files changed, 1 insertions, 1 deletions
diff --git a/meta-google/recipes-google/nftables/files/nftables.service b/meta-google/recipes-google/nftables/files/nftables.service
index 7130dea93..3830988eb 100644
--- a/meta-google/recipes-google/nftables/files/nftables.service
+++ b/meta-google/recipes-google/nftables/files/nftables.service
@@ -4,7 +4,7 @@ Before=network-pre.target
[Service]
Type=oneshot
RemainAfterExit=yes
-ExecStart=/bin/bash -c 'echo /etc/nftables/*.rules | xargs -n 1 nft -f'
+ExecStart=/bin/bash -c 'shopt -s nullglob; echo /etc/nftables/*.rules | xargs -r -n 1 nft -f'
ExecStop=/bin/bash -c 'nft flush ruleset'
[Install]