Add OS agent (#1269)

* Add OS Agent

* Do go vendoring as part of the buildroot build

* Allow to skip confirmation in datactl
This commit is contained in:
Stefan Agner
2021-03-12 18:00:39 +01:00
committed by GitHub
parent 55f8704523
commit 0a2fdf47b3
5 changed files with 41 additions and 6 deletions

View File

@@ -28,12 +28,14 @@ if [ "${1}" = "move" ] && [ -e "${2}" ]; then
fi
# Flag device
echo "WARNING: All partitions on ${NEW_DEVICE_ROOT} will be deleted!"
printf "Enter \"yes\" to confirm: "
read -r confirm
if [ "${confirm}" != "yes" ]; then
echo "Aborting."
exit 1
if [ -z "${DATACTL_NOCONFIRM}" ]; then
echo "WARNING: All partitions on ${NEW_DEVICE_ROOT} will be deleted!"
printf "Enter \"yes\" to confirm: "
read -r confirm
if [ "${confirm}" != "yes" ]; then
echo "Aborting."
exit 1
fi
fi
# Create GPT partition table with a single data partition