Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/distrib/atari/floppies Use kernfs to detect root file system...
details: https://anonhg.NetBSD.org/src/rev/279177d4d18f
branches: trunk
changeset: 357747:279177d4d18f
user: tsutsui <tsutsui%NetBSD.org@localhost>
date: Sat Nov 25 09:40:17 2017 +0000
description:
Use kernfs to detect root file system device, instead of fat sysctl(8).
Should fix sysinst.fs overflow that prevents daily build.
Discussed on port-atari@:
http://mail-index.netbsd.org/port-atari/2017/11/thread1.html#000558
and whole installation is briefly tested on TT030.
diffstat:
distrib/atari/floppies/common/dot.profile | 8 +++++---
distrib/atari/floppies/common/mtree.conf | 3 ++-
distrib/atari/floppies/install/list | 5 +++--
3 files changed, 10 insertions(+), 6 deletions(-)
diffs (71 lines):
diff -r f1514a87870e -r 279177d4d18f distrib/atari/floppies/common/dot.profile
--- a/distrib/atari/floppies/common/dot.profile Sat Nov 25 07:58:47 2017 +0000
+++ b/distrib/atari/floppies/common/dot.profile Sat Nov 25 09:40:17 2017 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: dot.profile,v 1.6 2017/11/15 16:19:19 tsutsui Exp $
+# $NetBSD: dot.profile,v 1.7 2017/11/25 09:40:17 tsutsui Exp $
#
# Copyright (c) 1995 Jason R. Thorpe
# Copyright (c) 1994 Christopher G. Demetriou
@@ -49,8 +49,7 @@
mount_gemdos() mount_msdos -G "$@"
makerootwritable() {
- # note, only handles up to partition 'j'
- rootdev=/dev/$(sysctl -n kern.root_device)$(sysctl -n kern.root_partition | sed y/0123456789/abcdefghij/)
+ rootdev=/kern/rootdev
if ! mount -u $rootdev / ; then
echo "Unable to mount $rootdev read-write"
exit 1
@@ -66,6 +65,9 @@
echo 'erase ^H, werase ^W, kill ^U, intr ^C'
stty newcrt werase ^W intr ^C kill ^U erase ^H 9600
+ # mount the kernfs so that we can check rootdev etc.
+ mount -t kernfs /kern /kern
+
# mount root read write
makerootwritable
diff -r f1514a87870e -r 279177d4d18f distrib/atari/floppies/common/mtree.conf
--- a/distrib/atari/floppies/common/mtree.conf Sat Nov 25 07:58:47 2017 +0000
+++ b/distrib/atari/floppies/common/mtree.conf Sat Nov 25 09:40:17 2017 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: mtree.conf,v 1.2 2016/01/30 05:15:18 tsutsui Exp $
+# $NetBSD: mtree.conf,v 1.3 2017/11/25 09:40:17 tsutsui Exp $
/set type=dir uname=root gname=wheel mode=0755
@@ -6,6 +6,7 @@
./bin
./dev
./etc
+./kern
./mnt
./mnt2
./sbin
diff -r f1514a87870e -r 279177d4d18f distrib/atari/floppies/install/list
--- a/distrib/atari/floppies/install/list Sat Nov 25 07:58:47 2017 +0000
+++ b/distrib/atari/floppies/install/list Sat Nov 25 09:40:17 2017 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: list,v 1.21 2017/11/15 16:37:00 tsutsui Exp $
+# $NetBSD: list,v 1.22 2017/11/25 09:40:17 tsutsui Exp $
PROG bin/cat
PROG bin/chmod
@@ -25,13 +25,14 @@
PROG sbin/mount
PROG sbin/mount_cd9660
PROG sbin/mount_ffs
+PROG sbin/mount_kernfs
PROG sbin/mount_msdos
PROG sbin/mount_nfs
PROG sbin/newfs sbin/mount_mfs
PROG sbin/ping
PROG sbin/reboot sbin/halt
PROG sbin/route
-PROG sbin/sysctl
+#PROG sbin/sysctl
PROG sbin/umount
PROG usr/bin/ftp
Home |
Main Index |
Thread Index |
Old Index