*BSD News Article 15211


Return to BSD News archive

Newsgroups: comp.os.386bsd.bugs
Path: sserve!newshost.anu.edu.au!munnari.oz.au!news.Hawaii.Edu!ames!agate!howland.reston.ans.net!ira.uka.de!gmd.de!mururoa!veit
From: veit@mururoa.gmd.de (Holger Veit)
Subject: Re: (lpa driver) savecore: Can't find device 1/0
Message-ID: <1993Apr27.071539.23505@gmd.de>
Sender: veit@mururoa (Holger Veit)
Nntp-Posting-Host: mururoa
Organization: GMD, Sankt Augustin, Germany
References: <C639Ln.7p@veda.is> <1993Apr26.130106.19745@gmd.de> <C63txA.15t@veda.is>
Date: Tue, 27 Apr 1993 07:15:39 GMT
Lines: 40

In article <C63txA.15t@veda.is>, adam@veda.is (Adam David) writes:
|> veit@mururoa.gmd.de (Holger Veit) writes:
|> 
|> >Is the kernel you booted /386bsd or have you called it different
|> >(and booted via Julian's bootloader)? savecore gets confused if it 
[...]
|> Yes, this is exactly the problem. I guess the name of the booted kernel
|> should be available for programs that need it to be able to look it up.
|> 
|> How is (or should be) the name of the currently executed kernel
|> made available?
|> 
|> --
|> Adam D. (adam@veda.is)

This is difficult, because unless you tell it by yourself, the kernel
has no chance to find out how it is called itself. Imagine you
create a file "/nameofkernel" which contains for instance the line
"/386bsd.testkernel". Who should maintain it if not you yourself?
The secondary bootloader has enough trouble to locate the kernel image
itself on the root device, and cannot create and write files in advance to
this. Even creating a symbolic link from /bootedkernel to
/386bsd.testkernel is too complicated.
A possible solution could be that the running kernel identifies its inode
and creates such a link by itself. But what if it was booted from a 
remote readonly partition by bootd?
The best idea would be to leave this as is, for the reason that the
normally used kernel has the name '386bsd'. If you test a new version
with a different name, you may accept the problem with savecore or 
rename your /etc/rc to a different one which does not contain savecore.

Holger

-- 
         Dr. Holger Veit                   | INTERNET: Holger.Veit@gmd.de
|  |   / GMD-SET German National Research  | Phone: (+49) 2241 14 2448
|__|  /  Center for Computer Science       | Fax:   (+49) 2241 14 2342
|  | /   P.O. Box 13 16                    |    Three lines Signature space
|  |/    Schloss Birlinghoven              |    available for rent. Nearly
         DW-5205 St. Augustin, Germany     |    unused, good conditions