diff options
author | William A. Kennington III <wak@google.com> | 2021-02-17 01:38:36 +0300 |
---|---|---|
committer | William A. Kennington III <wak@google.com> | 2021-02-17 01:59:20 +0300 |
commit | 4a2b9eba19ccd88a899d93bbcde88f612142821c (patch) | |
tree | 2e4e7d762d176dd2f21ad58ecfb839c7109c4137 /meta-google | |
parent | 5538c16344d49fab1fdce60c7c74d490753fc7dd (diff) | |
download | openbmc-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')
-rw-r--r-- | meta-google/recipes-google/nftables/files/nftables.service | 2 |
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] |