diff --git a/components/studio/bin/hab-studio.sh b/components/studio/bin/hab-studio.sh index 4ef3641c4d..c7117b4fb9 100755 --- a/components/studio/bin/hab-studio.sh +++ b/components/studio/bin/hab-studio.sh @@ -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 )) diff --git a/components/studio/libexec/hab-studio-type-default.sh b/components/studio/libexec/hab-studio-type-default.sh index fe690057d4..2172ec6e16 100755 --- a/components/studio/libexec/hab-studio-type-default.sh +++ b/components/studio/libexec/hab-studio-type-default.sh @@ -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