From owner-freebsd-current Fri Nov 10 17:29:13 2000 Delivered-To: freebsd-current@freebsd.org Received: from wall.polstra.com (rtrwan160.accessone.com [206.213.115.74]) by hub.freebsd.org (Postfix) with ESMTP id 716DA37B4C5 for ; Fri, 10 Nov 2000 17:29:09 -0800 (PST) Received: from vashon.polstra.com (vashon.polstra.com [206.213.73.13]) by wall.polstra.com (8.9.3/8.9.3) with ESMTP id RAA03322 for ; Fri, 10 Nov 2000 17:29:08 -0800 (PST) (envelope-from jdp@polstra.com) Message-ID: X-Mailer: XFMail 1.3 [p0] on FreeBSD X-Priority: 3 (Normal) Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 8bit MIME-Version: 1.0 Date: Fri, 10 Nov 2000 17:29:08 -0800 (PST) Organization: Polstra & Co., Inc. From: John Polstra To: current@freebsd.org Subject: savecore broken because kern.bootfile is set wrong Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG Savecore isn't working in -current, dying in my case with "read: invalid argument". (This is on an Alpha -- I don't have an i386 -current machine to test it on at the moment.) I traced it down to the fact that getbootfile() is returning "kernel" -- not the full pathname as the man page promises. This seems to be because the "kern.bootfile" sysctl variable isn't getting set correctly: alpha# sysctl kern.bootfile kern.bootfile: kernel Because I had an old "/kernel" file and savecore runs in "/", it was finding the wrong kernel. This seems to be some sort of coordination problem between the loader and the kernel and, maybe, the Alpha SRM. Can anybody shed some light on it? Also, in "src/sys/boot/common/boot.c" we still have this: static const char *default_bootfiles = "kernel.ko"; which isn't right any more. John To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message