Unverified Commit 4765b926 by Rachid Koucha Committed by GitHub

Use BUSYBOX_EXE variable in configure_busybox()

As "which busybox" is stored in BUSYBOX_EXE global variable at startup, use it wherever it is needed. Signed-off-by: 's avatarRachid Koucha <rachid.koucha@gmail.com>
parent adbde0cc
...@@ -179,13 +179,8 @@ configure_busybox() ...@@ -179,13 +179,8 @@ configure_busybox()
{ {
rootfs="${1}" rootfs="${1}"
if ! which busybox > /dev/null 2>&1; then
echo "ERROR: Failed to find busybox binary"
return 1
fi
# copy busybox in the rootfs # copy busybox in the rootfs
if ! cp "$(which busybox)" "${rootfs}/bin"; then if ! cp "${BUSYBOX_EXE}" "${rootfs}/bin"; then
echo "ERROR: Failed to copy busybox binary" echo "ERROR: Failed to copy busybox binary"
return 1 return 1
fi fi
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment