Module Name: src
Committed By: riz
Date: Thu Jul 5 17:33:59 UTC 2012
Modified Files:
src/distrib/atari/floppies/common [netbsd-6]: dot.profile
Log Message:
Pull up following revision(s) (requested by tsutsui in ticket #394):
distrib/atari/floppies/common/dot.profile: revision 1.4
Simply use "mount -u" to (re)mount root file system read-write
rather than denoting it using temporary /tmp/.root_writable file,
because it will never be removed if root file system is on floppy.
Fixes PR port-atari/37470.
Should be pulled up to netbsd-6.
To generate a diff of this commit:
cvs rdiff -u -r1.3 -r1.3.10.1 src/distrib/atari/floppies/common/dot.profile
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: src/distrib/atari/floppies/common/dot.profile
diff -u src/distrib/atari/floppies/common/dot.profile:1.3 src/distrib/atari/floppies/common/dot.profile:1.3.10.1
--- src/distrib/atari/floppies/common/dot.profile:1.3 Mon Nov 17 20:14:35 2008
+++ src/distrib/atari/floppies/common/dot.profile Thu Jul 5 17:33:59 2012
@@ -1,4 +1,4 @@
-# $NetBSD: dot.profile,v 1.3 2008/11/17 20:14:35 abs Exp $
+# $NetBSD: dot.profile,v 1.3.10.1 2012/07/05 17:33:59 riz Exp $
#
# Copyright (c) 1995 Jason R. Thorpe
# Copyright (c) 1994 Christopher G. Demetriou
@@ -47,16 +47,13 @@ export EDITOR
umask 022
makerootwritable() {
- if [ ! -e /tmp/.root_writable ]; then
- # note, only handles up to partition 'j'
- rootdev=/dev/$(sysctl -n kern.root_device)$(sysctl -n kern.root_partition | sed y/0123456789/abcdefghij/)
- if ! mount $rootdev / ; then
- echo "Unable to mount $rootdev read-write"
- exit 1
- fi
- cp /dev/null /tmp/.root_writable
- echo "Mounted $rootdev read-write"
+ # note, only handles up to partition 'j'
+ rootdev=/dev/$(sysctl -n kern.root_device)$(sysctl -n kern.root_partition | sed y/0123456789/abcdefghij/)
+ if ! mount -u $rootdev / ; then
+ echo "Unable to mount $rootdev read-write"
+ exit 1
fi
+ echo "Mounted $rootdev read-write"
}
if [ "X${DONEPROFILE}" = "X" ]; then