Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 30 Jul 2011 00:51:36 +0000 (UTC)
From:      Nathan Whitehorn <nwhitehorn@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r224504 - in head/release: amd64 i386 powerpc
Message-ID:  <201107300051.p6U0paFj073011@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: nwhitehorn
Date: Sat Jul 30 00:51:36 2011
New Revision: 224504
URL: http://svn.freebsd.org/changeset/base/224504

Log:
  Mount memsticks read-only by default to prevent them being filled by
  user modifications and subsequently preventing a functioning installation.
  
  Approved by:	re (kib)

Modified:
  head/release/amd64/make-memstick.sh
  head/release/i386/make-memstick.sh
  head/release/powerpc/make-memstick.sh

Modified: head/release/amd64/make-memstick.sh
==============================================================================
--- head/release/amd64/make-memstick.sh	Sat Jul 30 00:43:18 2011	(r224503)
+++ head/release/amd64/make-memstick.sh	Sat Jul 30 00:51:36 2011	(r224504)
@@ -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

Modified: head/release/i386/make-memstick.sh
==============================================================================
--- head/release/i386/make-memstick.sh	Sat Jul 30 00:43:18 2011	(r224503)
+++ head/release/i386/make-memstick.sh	Sat Jul 30 00:51:36 2011	(r224504)
@@ -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

Modified: head/release/powerpc/make-memstick.sh
==============================================================================
--- head/release/powerpc/make-memstick.sh	Sat Jul 30 00:43:18 2011	(r224503)
+++ head/release/powerpc/make-memstick.sh	Sat Jul 30 00:51:36 2011	(r224504)
@@ -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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201107300051.p6U0paFj073011>