create-vmachine: Make / and /usr read-only
parent
3e66d9345d
commit
aab3775234
|
@ -113,8 +113,8 @@ ln -s /etc/init.d/sshd "${MOUNTPOINT}"/etc/runlevels/default/
|
||||||
|
|
||||||
echo "Configuring fstab..."
|
echo "Configuring fstab..."
|
||||||
cat << EOF > "${MOUNTPOINT}"/etc/fstab
|
cat << EOF > "${MOUNTPOINT}"/etc/fstab
|
||||||
LABEL=root / xfs noatime 0 1
|
LABEL=root / xfs ro,noatime 0 1
|
||||||
LABEL=usr /usr xfs noatime 0 2
|
LABEL=usr /usr xfs ro,noatime 0 2
|
||||||
LABEL=var /var xfs noatime 0 2
|
LABEL=var /var xfs noatime 0 2
|
||||||
LABEL=home /home xfs noatime 0 2
|
LABEL=home /home xfs noatime 0 2
|
||||||
tmpfs /tmp tmpfs defaults 0 0
|
tmpfs /tmp tmpfs defaults 0 0
|
||||||
|
|
Loading…
Reference in New Issue