create-vmachine: Make / and /usr read-only

master
Dustin C. Hatch 2013-10-14 21:08:22 -05:00
parent 3e66d9345d
commit aab3775234
1 changed files with 2 additions and 2 deletions

View File

@ -113,8 +113,8 @@ ln -s /etc/init.d/sshd "${MOUNTPOINT}"/etc/runlevels/default/
echo "Configuring fstab..."
cat << EOF > "${MOUNTPOINT}"/etc/fstab
LABEL=root / xfs noatime 0 1
LABEL=usr /usr xfs noatime 0 2
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
tmpfs /tmp tmpfs defaults 0 0