aboutsummaryrefslogtreecommitdiff
path: root/release/amd64/make-memstick.sh
diff options
context:
space:
mode:
authorNathan Whitehorn <nwhitehorn@FreeBSD.org>2011-07-30 00:51:36 +0000
committerNathan Whitehorn <nwhitehorn@FreeBSD.org>2011-07-30 00:51:36 +0000
commit86354c8d3810d21453af04990b7a14235a0241f3 (patch)
tree6fe7dc71c409fa9865abf037cedb9f93c89cd8f9 /release/amd64/make-memstick.sh
parentfddf7baebea4f9843f9d7d7cd5b974c0ad252bfa (diff)
downloadsrc-86354c8d3810d21453af04990b7a14235a0241f3.tar.gz
src-86354c8d3810d21453af04990b7a14235a0241f3.zip
Mount memsticks read-only by default to prevent them being filled by
user modifications and subsequently preventing a functioning installation. Approved by: re (kib)
Notes
Notes: svn path=/head/; revision=224504
Diffstat (limited to 'release/amd64/make-memstick.sh')
-rwxr-xr-xrelease/amd64/make-memstick.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/release/amd64/make-memstick.sh b/release/amd64/make-memstick.sh
index 42f56f74f2a0..f26b79dbf7f4 100755
--- a/release/amd64/make-memstick.sh
+++ b/release/amd64/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