forked from pinecrypt/butterknife-provisioning-image
Updates and fixes
Some checks reported errors
continuous-integration/drone Build encountered an error
Some checks reported errors
continuous-integration/drone Build encountered an error
This commit is contained in:
@@ -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
|
||||
|
||||
|
Reference in New Issue
Block a user