Merge pull request #46734 from terminalmage/busybox

Make busybox image builder work with newer busybox releases
This commit is contained in:
Nicole Thomas 2018-03-27 17:14:28 -04:00 committed by GitHub
commit bd1e8bcc7d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -32,6 +32,9 @@ cp "$busybox" "$rootfsDir/bin/busybox"
unset IFS
for module in "${modules[@]}"; do
# Don't stomp on the busybox binary (newer busybox releases
# include busybox in the --list-modules output)
test "$module" == "bin/busybox" && continue
mkdir -p "$(dirname "$module")"
ln -sf /bin/busybox "$module"
done