mirror of
https://github.com/apache/cloudstack.git
synced 2025-10-26 08:42:29 +01:00
CLOUDSTACK-8324: updated the mount directory name and kvm virt device
This commit is contained in:
parent
ea09e6c196
commit
6518607885
@ -17,7 +17,7 @@
|
|||||||
# under the License.
|
# under the License.
|
||||||
|
|
||||||
|
|
||||||
mountdir=/mnt/configdrive
|
mountdir=$(mktemp -d)
|
||||||
filepath=$mountdir/cloudstack
|
filepath=$mountdir/cloudstack
|
||||||
|
|
||||||
user_data=$filepath/userdata/user_data.txt
|
user_data=$filepath/userdata/user_data.txt
|
||||||
|
|||||||
@ -26,7 +26,7 @@
|
|||||||
# Modify this line to specify the user (default is root)
|
# Modify this line to specify the user (default is root)
|
||||||
user=root
|
user=root
|
||||||
|
|
||||||
mountdir=/mnt/configdrive
|
mountdir=$(mktemp -d)
|
||||||
|
|
||||||
# If lable name is other than config, please change the below line as required
|
# If lable name is other than config, please change the below line as required
|
||||||
DefaultDisk=/dev/disk/by-label/config
|
DefaultDisk=/dev/disk/by-label/config
|
||||||
@ -45,7 +45,7 @@ function prepare_mount
|
|||||||
if [ -e $DefaultDisk ]; then
|
if [ -e $DefaultDisk ]; then
|
||||||
Disk=$DefaultDisk
|
Disk=$DefaultDisk
|
||||||
else
|
else
|
||||||
BLOCK_DEVICE=$(blkid -t LABEL='config' /dev/hd? /dev/sd? /dev/xvd? -o device)
|
BLOCK_DEVICE=$(blkid -t LABEL='config' /dev/hd? /dev/sd? /dev/xvd? /dev/vd? -o device)
|
||||||
if [ -n $BLOCK_DEVICE ]; then
|
if [ -n $BLOCK_DEVICE ]; then
|
||||||
Disk=$BLOCK_DEVICE
|
Disk=$BLOCK_DEVICE
|
||||||
else
|
else
|
||||||
|
|||||||
@ -26,7 +26,7 @@
|
|||||||
# Modify this line to specify the user (default is root)
|
# Modify this line to specify the user (default is root)
|
||||||
user=root
|
user=root
|
||||||
|
|
||||||
mountdir=/mnt/configdrive
|
mountdir=$(mktemp -d)
|
||||||
|
|
||||||
# If lable name is other than config, please change the below line as required
|
# If lable name is other than config, please change the below line as required
|
||||||
DefaultDisk=/dev/disk/by-label/config
|
DefaultDisk=/dev/disk/by-label/config
|
||||||
@ -44,7 +44,7 @@ function prepare_mount
|
|||||||
if [ -e $DefaultDisk ]; then
|
if [ -e $DefaultDisk ]; then
|
||||||
Disk=$DefaultDisk
|
Disk=$DefaultDisk
|
||||||
else
|
else
|
||||||
BLOCK_DEVICE=$(blkid -t LABEL='config' /dev/hd? /dev/sd? /dev/xvd? -o device)
|
BLOCK_DEVICE=$(blkid -t LABEL='config' /dev/hd? /dev/sd? /dev/xvd? /dev/vd? -o device)
|
||||||
if [ -n $BLOCK_DEVICE ]; then
|
if [ -n $BLOCK_DEVICE ]; then
|
||||||
Disk=$BLOCK_DEVICE
|
Disk=$BLOCK_DEVICE
|
||||||
else
|
else
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user