Skip to content
This repository has been archived by the owner on May 12, 2021. It is now read-only.

Commit

Permalink
rootfs/config: Simplify config files
Browse files Browse the repository at this point in the history
Remove redundant `|| true` and use single equals in string test for
consistency.

Signed-off-by: James O. D. Hunt <[email protected]>
  • Loading branch information
jodh-intel committed Nov 29, 2018
1 parent c8950d4 commit 751f395
Show file tree
Hide file tree
Showing 6 changed files with 10 additions and 10 deletions.
2 changes: 1 addition & 1 deletion rootfs-builder/alpine/config.sh
Original file line number Diff line number Diff line change
Expand Up @@ -23,4 +23,4 @@ INIT_PROCESS=kata-agent
# as reported by `uname -m`
ARCH_EXCLUDE_LIST=()

[ "$SECCOMP" = "yes" ] && PACKAGES+=" libseccomp" || true
[ "$SECCOMP" = "yes" ] && PACKAGES+=" libseccomp"
4 changes: 2 additions & 2 deletions rootfs-builder/centos/config.sh
Original file line number Diff line number Diff line change
Expand Up @@ -27,12 +27,12 @@ PACKAGES="iptables"
#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"

# Init process must be one of {systemd,kata-agent}
INIT_PROCESS=systemd
# List of zero or more architectures to exclude from build,
# as reported by `uname -m`
ARCH_EXCLUDE_LIST=()

[ "$SECCOMP" = "yes" ] && PACKAGES+=" libseccomp" || true
[ "$SECCOMP" = "yes" ] && PACKAGES+=" libseccomp"
4 changes: 2 additions & 2 deletions rootfs-builder/clearlinux/config.sh
Original file line number Diff line number Diff line change
Expand Up @@ -20,12 +20,12 @@ PACKAGES="iptables-bin libudev0-shim"
#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"

# Init process must be one of {systemd,kata-agent}
INIT_PROCESS=systemd
# List of zero or more architectures to exclude from build,
# as reported by `uname -m`
ARCH_EXCLUDE_LIST=(ppc64le)

[ "$SECCOMP" = "yes" ] && PACKAGES+=" libseccomp" || true
[ "$SECCOMP" = "yes" ] && PACKAGES+=" libseccomp"
4 changes: 2 additions & 2 deletions rootfs-builder/euleros/config.sh
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ PACKAGES="iptables"
#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"

# Init process must be one of {systemd,kata-agent}
INIT_PROCESS=systemd
Expand All @@ -26,4 +26,4 @@ ARCH_EXCLUDE_LIST=()
# For more info see: https://github.com/kata-containers/osbuilder/issues/190
BUILD_CAN_FAIL=1

[ "$SECCOMP" = "yes" ] && PACKAGES+=" libseccomp" || true
[ "$SECCOMP" = "yes" ] && PACKAGES+=" libseccomp"
4 changes: 2 additions & 2 deletions rootfs-builder/fedora/config.sh
Original file line number Diff line number Diff line change
Expand Up @@ -14,10 +14,10 @@ PACKAGES="iptables"
#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"

# Init process must be one of {systemd,kata-agent}
INIT_PROCESS=systemd
ARCH_EXCLUDE_LIST=()

[ "$SECCOMP" = "yes" ] && PACKAGES+=" libseccomp" || true
[ "$SECCOMP" = "yes" ] && PACKAGES+=" libseccomp"
2 changes: 1 addition & 1 deletion rootfs-builder/ubuntu/config.sh
Original file line number Diff line number Diff line change
Expand Up @@ -30,4 +30,4 @@ INIT_PROCESS=systemd
# as reported by `uname -m`
ARCH_EXCLUDE_LIST=()

[ "$SECCOMP" = "yes" ] && PACKAGES+=" libseccomp2" || true
[ "$SECCOMP" = "yes" ] && PACKAGES+=" libseccomp2"

0 comments on commit 751f395

Please sign in to comment.