Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/distrib/atari/floppies/common Simply use "mount -u" to (re)m...
details: https://anonhg.NetBSD.org/src/rev/1866aa484833
branches: trunk
changeset: 779940:1866aa484833
user: tsutsui <tsutsui%NetBSD.org@localhost>
date: Sat Jun 30 10:20:26 2012 +0000
description:
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.
diffstat:
distrib/atari/floppies/common/dot.profile | 17 +++++++----------
1 files changed, 7 insertions(+), 10 deletions(-)
diffs (32 lines):
diff -r fa543cbe32a7 -r 1866aa484833 distrib/atari/floppies/common/dot.profile
--- a/distrib/atari/floppies/common/dot.profile Sat Jun 30 09:25:55 2012 +0000
+++ b/distrib/atari/floppies/common/dot.profile Sat Jun 30 10:20:26 2012 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: dot.profile,v 1.3 2008/11/17 20:14:35 abs Exp $
+# $NetBSD: dot.profile,v 1.4 2012/06/30 10:20:26 tsutsui Exp $
#
# Copyright (c) 1995 Jason R. Thorpe
# Copyright (c) 1994 Christopher G. Demetriou
@@ -47,16 +47,13 @@
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
Home |
Main Index |
Thread Index |
Old Index