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
parent
ba1a431a45
commit
95e33d79d6
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in New Issue