Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/distrib/evbarm/instkernel/ramdisk Sync with amd64
details: https://anonhg.NetBSD.org/src/rev/711beef2e93a
branches: trunk
changeset: 940606:711beef2e93a
user: jmcneill <jmcneill%NetBSD.org@localhost>
date: Sun Oct 11 14:24:31 2020 +0000
description:
Sync with amd64
diffstat:
distrib/evbarm/instkernel/ramdisk/dot.profile | 26 +++++++++++++++++++-------
1 files changed, 19 insertions(+), 7 deletions(-)
diffs (53 lines):
diff -r c354738ca660 -r 711beef2e93a distrib/evbarm/instkernel/ramdisk/dot.profile
--- a/distrib/evbarm/instkernel/ramdisk/dot.profile Sun Oct 11 14:10:34 2020 +0000
+++ b/distrib/evbarm/instkernel/ramdisk/dot.profile Sun Oct 11 14:24:31 2020 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: dot.profile,v 1.3 2020/01/09 19:17:41 martin Exp $
+# $NetBSD: dot.profile,v 1.4 2020/10/11 14:24:31 jmcneill Exp $
#
# Copyright (c) 1997 Perry E. Metzger
# Copyright (c) 1994 Christopher G. Demetriou
@@ -35,10 +35,14 @@
PATH=/sbin:/bin:/usr/bin:/usr/sbin:/
export PATH
-TERM=vt100
+TERM=wsvt25
export TERM
HOME=/
export HOME
+BLOCKSIZE=1k
+export BLOCKSIZE
+EDITOR=ed
+export EDITOR
umask 022
@@ -51,14 +55,22 @@
# set up some sane defaults
echo 'erase ^?, werase ^W, kill ^U, intr ^C'
stty newcrt werase ^W intr ^C kill ^U erase ^?
- echo ''
+ mount -t tmpfs tmpfs /tmp
+ mount -t tmpfs tmpfs /var
+ mount -t tmpfs -o union tmpfs /etc
+
+ mkdir -p /var/run /var/db
# mount the ramdisk read write
mount -u $ROOTDEV /
- # mount the kern_fs so that we can examine the dmesg state
- mount -t kernfs /kern /kern
+ grep() sed -n "/$1/p"
- # run the installation or upgrade script.
- sysinst || stty sane
+ if [ -x /sysinst ]; then
+ # run the installation or upgrade script.
+ sysinst || stty sane
+ else
+ echo "This image contains utilities which may be needed"
+ echo "to get you out of a pinch."
+ fi
fi
Home |
Main Index |
Thread Index |
Old Index