create-vmachine: Use LVM block device paths for mounts in fstab

Recently, using LABEL= instead of the actual block device path in /etc/fstab
has caused errors in init.d/localmount because it tries to mount stuff that's
already mounted. Don't really know or care why.
master
Dustin C. Hatch 2014-01-11 11:08:53 -06:00
parent ba1a431a45
commit 95e33d79d6
1 changed files with 4 additions and 4 deletions

View File

@ -84,10 +84,10 @@ done
echo "Configuring fstab..."
cat << EOF > "${MOUNTPOINT}"/etc/fstab
LABEL=root / xfs ro,noatime 0 1
LABEL=usr /usr xfs ro,noatime 0 2
LABEL=var /var xfs noatime 0 2
LABEL=home /home xfs noatime 0 2
/dev/${VMNAME}/root / xfs ro,noatime 0 1
/dev/${VMNAME}/usr /usr xfs ro,noatime 0 2
/dev/${VMNAME}/var /var xfs noatime 0 2
/dev/${VMNAME}/home /home xfs noatime 0 2
tmpfs /tmp tmpfs defaults 0 0
EOF