Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 17 Jul 2011 20:40:03 -0700
From:      Devin Teske <dteske@vicor.com>
To:        Doug Barton <dougb@FreeBSD.org>
Cc:        freebsd-hackers@freebsd.org, f0andrey@gmail.com, "Teske, Devin" <Devin.Teske@fisglobal.com>
Subject:   Re: [RELEASE] New Boot-Loader Menu bugs?
Message-ID:  <CD9C2164-EF12-4311-A090-7847C9CD6118@vicor.com>
In-Reply-To: <4E23797A.8060209@FreeBSD.org>
References:  <CA%2BK5SrOYCt8AROQ_oKPxHircm6prYFk6y7-kTdgSDaz9iD-WkQ@mail.gmail.com> <AC7A0D08A69F674492190A18365DC0BB0154D9A0@CMBFISLTC13.FNFIS.COM> <4E23797A.8060209@FreeBSD.org>

next in thread | previous in thread | raw e-mail | index | archive | help
Hi Doug,

On Jul 17, 2011, at 5:08 PM, Doug Barton wrote:

> There also seems to be a bug with the new boot loader that if you bounce
> out to the prompt and do 'boot kernel.other' the kern.module_path sysctl
> is not updated. It still lists /boot/kernel first; but that should be
> replaced by /boot/kernel.other.

I had a chance to try this out in a VM.

I just tested this in FreeBSD 8.1-RELEASE with my loader_menu applied (exac=
tly what's available from rev 222417).

The results I get are actually what you describe should happen.

Here's the steps I took:

1. Made sure all "kernel=3D" and "module_path=3D" lines were commented out =
in loader.conf(5)
2. Moved my kernel to /boot/kernel/kernel
3. Made a copy of my kernel to /boot/kernel2/kernel
4. Rebooted. Didn't touch anything. Verified that when I came up, `sysctl -=
n kern.bootfile' was /boot/kernel/kernel. Good. We have a baseline operatio=
n that things are working as-expected without interrupting the boot-process=
 (that is to say, that loader(8) loaded the kernel in it's default location=
).
5. Reboot again. This time, I press Escape to the drop to the loader(8) pro=
mpt.
6. I took "boot /boot/kernel2"
7. I see the new kernel being loaded.
8. The kernel executes.
9. My system boots as-expected.
10. The value of sysctl kern.module_path produces (drum roll): /boot/kernel=
2;/boot/kernel;/boot/modules

What release are you running? I can't replicate the bug in 8.1-RELEASE with=
 the new loader menu applied. It's possible that the bug was introduced som=
e other way.
--=20
Devin

______________________________________________________________________
The information contained in this message is proprietary and/or confidentia=
l. If you are not the intended recipient, please: (i) delete the message an=
d all copies; (ii) do not disclose, distribute or use the message in any ma=
nner; and (iii) notify the sender immediately. In addition, please be aware=
 that any message addressed to our domain is subject to archiving and revie=
w by persons other than the intended recipient. Thank you.



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CD9C2164-EF12-4311-A090-7847C9CD6118>