From 95e33d79d6762b0afc8e9b0b56abd794e6874e50 Mon Sep 17 00:00:00 2001 From: "Dustin C. Hatch" Date: Sat, 11 Jan 2014 11:08:53 -0600 Subject: [PATCH] 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. --- create-vmachine.sh | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/create-vmachine.sh b/create-vmachine.sh index c6b3eac..ef64447 100755 --- a/create-vmachine.sh +++ b/create-vmachine.sh @@ -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