From 924a68d08df55fed897e27a0072bcff1db363abc Mon Sep 17 00:00:00 2001 From: Binbin Zhang Date: Tue, 7 Sep 2021 17:26:07 +0800 Subject: [PATCH] osbuilder: Change to "=" operator to make script more portable zsh doesn't support "==" as equal comparison operator, so replace "==" with "=" to make the script more portable Fixes: #2584 Signed-off-by: Binbin Zhang --- tools/osbuilder/rootfs-builder/centos/config.sh | 2 +- tools/osbuilder/rootfs-builder/clearlinux/config.sh | 2 +- tools/osbuilder/rootfs-builder/fedora/config.sh | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/tools/osbuilder/rootfs-builder/centos/config.sh b/tools/osbuilder/rootfs-builder/centos/config.sh index 8f80d1f3e9..f908d1af10 100644 --- a/tools/osbuilder/rootfs-builder/centos/config.sh +++ b/tools/osbuilder/rootfs-builder/centos/config.sh @@ -27,7 +27,7 @@ PACKAGES="iptables chrony" #Optional packages: # systemd: An init system that will start kata-agent if kata-agent # itself is not configured as init process. -[ "$AGENT_INIT" == "no" ] && PACKAGES+=" systemd" || true +[ "$AGENT_INIT" = "no" ] && PACKAGES+=" systemd" || true # Init process must be one of {systemd,kata-agent} INIT_PROCESS=systemd diff --git a/tools/osbuilder/rootfs-builder/clearlinux/config.sh b/tools/osbuilder/rootfs-builder/clearlinux/config.sh index c26cc049a4..cf84976249 100644 --- a/tools/osbuilder/rootfs-builder/clearlinux/config.sh +++ b/tools/osbuilder/rootfs-builder/clearlinux/config.sh @@ -20,7 +20,7 @@ PACKAGES="libudev0-shim kmod-bin" #Optional packages: # systemd: An init system that will start kata-agent if kata-agent # itself is not configured as init process. -[ "$AGENT_INIT" == "no" ] && PACKAGES+=" systemd chrony iptables-bin util-linux-bin" || true +[ "$AGENT_INIT" = "no" ] && PACKAGES+=" systemd chrony iptables-bin util-linux-bin" || true # Init process must be one of {systemd,kata-agent} INIT_PROCESS=systemd diff --git a/tools/osbuilder/rootfs-builder/fedora/config.sh b/tools/osbuilder/rootfs-builder/fedora/config.sh index 4aff698d79..3e5e9a13f3 100644 --- a/tools/osbuilder/rootfs-builder/fedora/config.sh +++ b/tools/osbuilder/rootfs-builder/fedora/config.sh @@ -14,7 +14,7 @@ PACKAGES="iptables chrony" #Optional packages: # systemd: An init system that will start kata-agent if kata-agent # itself is not configured as init process. -[ "$AGENT_INIT" == "no" ] && PACKAGES+=" systemd" || true +[ "$AGENT_INIT" = "no" ] && PACKAGES+=" systemd" || true # Init process must be one of {systemd,kata-agent} INIT_PROCESS=systemd