Updates and fixes
Some checks reported errors
continuous-integration/drone Build encountered an error

This commit is contained in:
2022-04-06 22:59:58 +03:00
committed by Lauri Võsandi
parent f3d01845be
commit ee987dc516
7 changed files with 178 additions and 94 deletions

View File

@@ -3,6 +3,19 @@
# TODO: Make sure fdisk from busybox is NOT used, it's counting sectors incorrectly (?!)
# TODO: Check connectivity with API server
#######################################
### Check for presence of utilities ###
#######################################
for util in btrfs jq fdisk find ntfsresize udp-sender udp-receiver ntpdate curl mktemp sgdisk test true sort uniq dig; do
if [ -z "$(which $util)" ]; then
echo "Butterknife was unable to locate $util," \
"are you sure the provisioning image was compiled properly?"
exit 253
else
echo "Found $util..."
fi
done
BUTTERKNIFE_POOL_MOUNTPOINT=/var/lib/butterknife/pool
TARGET_MOUNTPOINT=/mnt/target