Make busybox image builder work with newer busybox releases

This commit is contained in:
Erik Johnson 2018-03-26 13:40:15 -05:00
parent 554400e067
commit 6502b6b4ff
No known key found for this signature in database
GPG key ID: 5E5583C437808F3F

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