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:
parent
fddf7baebe
commit
86354c8d38
release
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user