Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/etc If machdep.booted_kernel can be found in sysctl output, ...
details: https://anonhg.NetBSD.org/src/rev/77e13ff0d7bf
branches: trunk
changeset: 476423:77e13ff0d7bf
user: darrenr <darrenr%NetBSD.org@localhost>
date: Thu Sep 16 11:00:44 1999 +0000
description:
If machdep.booted_kernel can be found in sysctl output, feed that name into
kvm_mkdb so that when we boot we always have an upto-date kvm db, allowing
dmesg and friends to run without error when we do "boot netbsd.fun" to test
kernels, etc.
diffstat:
etc/rc | 8 +++++++-
1 files changed, 7 insertions(+), 1 deletions(-)
diffs (22 lines):
diff -r dddf34f52cee -r 77e13ff0d7bf etc/rc
--- a/etc/rc Thu Sep 16 09:57:06 1999 +0000
+++ b/etc/rc Thu Sep 16 11:00:44 1999 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: rc,v 1.130 1999/09/03 13:40:15 itojun Exp $
+# $NetBSD: rc,v 1.131 1999/09/16 11:00:44 darrenr Exp $
# originally from: @(#)rc 8.2 (Berkeley) 3/17/94
# System startup script run by init on autoboot
@@ -141,6 +141,12 @@
rm -f /var/spool/uucp/STST/*
(cd /var/run && { rm -rf -- *; install -c -m 664 -g utmp /dev/null utmp; })
+# if this kernel supports machdep.booted_kernel, use that to build the KVM
+# db so dmesg will run work when we boot /netbsd.new, etc.
+sysctl machdep | grep -q booted_kernel
+if [ $? -eq 0 ] ; then
+ kvm_mkdb `sysctl -n machdep.booted_kernel`
+fi
# get the system dmesg output, hopefully containing the boot messages
# $dmesg_flags is imported from /etc/rc.conf
if checkyesno dmesg; then
Home |
Main Index |
Thread Index |
Old Index