Skip to content

Commit

Permalink
docs: add the reason why uses readlink
Browse files Browse the repository at this point in the history
Signed-off-by: Jack Yu <jack.yu@suse.com>
  • Loading branch information
Yu-Jack committed Dec 21, 2023
1 parent 3e2cbff commit 4c92b3e
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions hack/collector-harvester
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,8 @@ collect_etc() {
}

collect_images_info() {
# In this case, we can't use /host/var/lib/rancher/rke2/bin directly because of host volume mount and symbolic link problem.
# So, we need to use real bin path to execute command with `readlink` command.
local rke2_bin=$(readlink ${HOST_PATH}/var/lib/rancher/rke2/bin)

${HOST_PATH}${rke2_bin}/ctr \
Expand Down

0 comments on commit 4c92b3e

Please sign in to comment.