Fix /dev/sdb mount issue upon reboot

/etc/fstab modification is put in userdata.sh

Change-Id: Id3b330cd2a61eb105c548343459274a79eb5d586
This commit is contained in:
Changbin Liu 2013-06-10 11:18:02 -04:00
parent 85fed94b85
commit 181f2141d9
1 changed files with 1 additions and 0 deletions

View File

@ -3,6 +3,7 @@
# /dev/vdb is formatted and mounted on /mnt
# we need to use it as a volume for cinder instead
sudo /bin/umount /mnt/
sudo sed -i 's/\/dev\/vdb/#\/dev\/vdb/g' /etc/fstab
sudo parted /dev/vdb --script -- mklabel gpt
sudo parted /dev/vdb --script -- mkpart primary ext4 1 -1
sudo parted /dev/vdb --script -- set 1 lvm on