Provisioning scripts should never expect user input.
Change-Id: I0099cee6a920313c2b5c8e86ddb18de11bab8329
Signed-off-by: Zane Bitter <zbitter@redhat.com>
"# Wait for the volume to appear\n",
"while [ ! -e /dev/vdc ]; do echo Waiting for volume to attach; sleep 1; done\n",
- "parted /dev/vdc mklabel msdos\n",
- "parted /dev/vdc mkpart primary ext3 1 1000\n",
+ "parted -s /dev/vdc mklabel msdos\n",
+ "parted -s /dev/vdc mkpart primary ext3 1 1000\n",
"# Format the EBS volume and mount it\n",
"systemctl stop mysqld.service\n",
"sleep 1\n",
"# Wait for the volume to appear\n",
"while [ ! -e /dev/vdc ]; do echo Waiting for volume to attach; sleep 1; done\n",
- "parted /dev/vdc mklabel msdos\n",
- "parted /dev/vdc mkpart primary ext3 1 1000\n",
+ "parted -s /dev/vdc mklabel msdos\n",
+ "parted -s /dev/vdc mkpart primary ext3 1 1000\n",
"# Format the EBS volume and mount it\n",
"systemctl stop mysqld.service\n",
"sleep 1\n",
"# Wait for the volume to appear\n",
"while [ ! -e /dev/vdc ]; do echo Waiting for volume to attach; sleep 1; done\n",
- "parted /dev/vdc mklabel msdos\n",
- "parted /dev/vdc mkpart primary ext3 1 1000\n",
+ "parted -s /dev/vdc mklabel msdos\n",
+ "parted -s /dev/vdc mkpart primary ext3 1 1000\n",
"# Format the EBS volume and mount it\n",
"systemctl stop mysqld.service\n",
"sleep 1\n",
"/opt/aws/bin/cfn-init\n",
"# Wait for the volume to appear\n",
"while [ ! -e /dev/vdc ]; do echo Waiting for volume to attach; sleep 1; done\n",
- "parted /dev/vdc mklabel msdos\n",
- "parted /dev/vdc mkpart primary ext3 1 1000\n",
+ "parted -s /dev/vdc mklabel msdos\n",
+ "parted -s /dev/vdc mkpart primary ext3 1 1000\n",
"# Format the EBS volume and mount it\n",
"systemctl stop mysqld.service\n",
"sleep 1\n",