Mount memsticks read-only by default to prevent them being filled by

user modifications and subsequently preventing a functioning installation.

Approved by:	re (kib)
This commit is contained in:
Nathan Whitehorn 2011-07-30 00:51:36 +00:00
parent fddf7baebe
commit 86354c8d38
3 changed files with 3 additions and 3 deletions

@ -32,7 +32,7 @@ if [ -e ${2} ]; then
exit 1
fi
echo '/dev/gpt/FreeBSD_Install / ufs rw,noatime 1 1' > ${1}/etc/fstab
echo '/dev/gpt/FreeBSD_Install / ufs ro,noatime 1 1' > ${1}/etc/fstab
rm -f ${tempfile}
makefs -B little ${tempfile} ${1}
if [ $? -ne 0 ]; then

@ -32,7 +32,7 @@ if [ -e ${2} ]; then
exit 1
fi
echo '/dev/gpt/FreeBSD_Install / ufs rw,noatime 1 1' > ${1}/etc/fstab
echo '/dev/gpt/FreeBSD_Install / ufs ro,noatime 1 1' > ${1}/etc/fstab
rm -f ${tempfile}
makefs -B little ${tempfile} ${1}
if [ $? -ne 0 ]; then

@ -32,7 +32,7 @@ if [ -e ${2} ]; then
exit 1
fi
echo '/dev/da0s3 / ufs rw,noatime 1 1' > ${1}/etc/fstab
echo '/dev/da0s3 / ufs ro,noatime 1 1' > ${1}/etc/fstab
rm -f ${tempfile}
makefs -B big ${tempfile} ${1}
if [ $? -ne 0 ]; then