summaryrefslogtreecommitdiffstats
path: root/release/i386/make-memstick.sh
diff options
context:
space:
mode:
authornwhitehorn <nwhitehorn@FreeBSD.org>2011-07-30 00:51:36 +0000
committernwhitehorn <nwhitehorn@FreeBSD.org>2011-07-30 00:51:36 +0000
commit7c1cc185fa5ada5f2a7e4eea0e6a5ff56be1ee3e (patch)
tree6fe7dc71c409fa9865abf037cedb9f93c89cd8f9 /release/i386/make-memstick.sh
parent7a7c3b6e78c347dbbc2ca8360853a5c0000d66af (diff)
downloadFreeBSD-src-7c1cc185fa5ada5f2a7e4eea0e6a5ff56be1ee3e.zip
FreeBSD-src-7c1cc185fa5ada5f2a7e4eea0e6a5ff56be1ee3e.tar.gz
Mount memsticks read-only by default to prevent them being filled by
user modifications and subsequently preventing a functioning installation. Approved by: re (kib)
Diffstat (limited to 'release/i386/make-memstick.sh')
-rwxr-xr-xrelease/i386/make-memstick.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/release/i386/make-memstick.sh b/release/i386/make-memstick.sh
index 42f56f7..f26b79d 100755
--- a/release/i386/make-memstick.sh
+++ b/release/i386/make-memstick.sh
@@ -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
OpenPOWER on IntegriCloud