Skip to content

Commit

Permalink
sleep command cannot be used
Browse files Browse the repository at this point in the history
Signed-off-by: Phani Sajja <[email protected]>
  • Loading branch information
sajjaphani committed Dec 13, 2024
1 parent bb2e582 commit 8685087
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 5 deletions.
6 changes: 4 additions & 2 deletions components/studio/bin/hab-studio.sh
Original file line number Diff line number Diff line change
Expand Up @@ -1040,8 +1040,10 @@ chown_certs() {
fi
}

# **Internal**
# Mimic delay using busy loop
# **Internal** Mimic delay using busy loop
# We cannot use the sleep command as we have already unmounted, but we are
# encountering 'device busy' failures on AArch64 Linux. We need this because
# we unmounted the resource and want to allow some time for it to be freed.
busy_sleep() {
local duration=$1
local end_time=$(( $(date +%s) + duration ))
Expand Down
3 changes: 0 additions & 3 deletions components/studio/libexec/hab-studio-type-default.sh
Original file line number Diff line number Diff line change
Expand Up @@ -101,9 +101,6 @@ finish_setup() {
_hab pkg binlink core/bash bash
_hab pkg binlink core/bash sh

# binlink sleep command
_hab pkg binlink core/coreutils sleep

# Create a wrapper to `build` so that any calls to it have a super-stripped
# `$PATH` and not whatever augmented version is currently in use. This should
# mean that running `build` from inside a `studio enter` and running `studio
Expand Down

0 comments on commit 8685087

Please sign in to comment.