Skip to content

Commit

Permalink
Change relative default path location
Browse files Browse the repository at this point in the history
  • Loading branch information
ms-mahuber committed Dec 19, 2023
1 parent 0ef769e commit 1a5105d
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions tools/osbuilder/rootfs-builder/rootfs.sh
Original file line number Diff line number Diff line change
Expand Up @@ -28,12 +28,12 @@ LIBC=${LIBC:-musl}
SECCOMP=${SECCOMP:-"yes"}
SELINUX=${SELINUX:-"no"}
AGENT_POLICY=${AGENT_POLICY:-no}
AGENT_POLICY_FILE=${AGENT_POLICY_FILE:-"../../../src/kata-opa/allow-all.rego"}
AGENT_POLICY_FILE=${AGENT_POLICY_FILE:-"allow-all.rego"}

lib_file="${script_dir}/../scripts/lib.sh"
source "$lib_file"

agent_policy_file="${script_dir}/${AGENT_POLICY_FILE}"
agent_policy_file="$(readlink -f "${script_dir}/../../../src/kata-opa/${AGENT_POLICY_FILE}")"

#For cross build
CROSS_BUILD=${CROSS_BUILD:-false}
Expand Down Expand Up @@ -118,9 +118,9 @@ AGENT_INIT When set to "yes", use ${AGENT_BIN} as init process in place
AGENT_POLICY_FILE Path to the agent policy rego file to be set in the rootfs.
If defined, this overwrites the default setting of the
permissive policy file. The path is relative to the script
directory designated by the script_dir variable.
Default value: ../../../src/kata-opa/allow-all.rego
permissive policy file. The path is relative to the policy
rego file directory 'src/kata-opa'.
Default value: allow-all.rego
AGENT_SOURCE_BIN Path to the directory of agent binary.
If set, use the binary as agent but not build agent package.
Expand Down

0 comments on commit 1a5105d

Please sign in to comment.