Use --script option to parted in templates

Provisioning scripts should never expect user input.

Change-Id: I0099cee6a920313c2b5c8e86ddb18de11bab8329
Signed-off-by: Zane Bitter <zbitter@redhat.com>
This commit is contained in:
Zane Bitter 2012-10-15 16:13:12 +02:00
parent 65496df4a9
commit 64965db9de
4 changed files with 8 additions and 8 deletions

View File

@ -131,8 +131,8 @@
"# 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",

View File

@ -167,8 +167,8 @@
"# 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",

View File

@ -134,8 +134,8 @@
"# 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",

View File

@ -158,8 +158,8 @@
"/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",