From pb@ludd.luth.se  Wed Oct  1 09:41:58 2003
Return-Path: <pb@ludd.luth.se>
Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125])
	by hub.freebsd.org (Postfix) with ESMTP id 71A6416A4B3
	for <FreeBSD-gnats-submit@freebsd.org>; Wed,  1 Oct 2003 09:41:58 -0700 (PDT)
Received: from mother.ludd.luth.se (mother.ludd.luth.se [130.240.16.3])
	by mx1.FreeBSD.org (Postfix) with ESMTP id ACFF44400D
	for <FreeBSD-gnats-submit@freebsd.org>; Wed,  1 Oct 2003 09:41:56 -0700 (PDT)
	(envelope-from pb@ludd.luth.se)
Received: from brother.ludd.luth.se (daemon@brother.ludd.luth.se [130.240.16.78])
	by mother.ludd.luth.se (8.12.8+Sun/8.12.8) with ESMTP id h91Gfttc000627
	for <FreeBSD-gnats-submit@freebsd.org>; Wed, 1 Oct 2003 18:41:55 +0200 (MEST)
Received: (from pb@localhost)
	by brother.ludd.luth.se (8.11.6+Sun/8.9.3) id h91Gfio11611
	for FreeBSD-gnats-submit@freebsd.org; Wed, 1 Oct 2003 18:41:44 +0200 (MEST)
Message-Id: <200310011641.h91Gfio11611@brother.ludd.luth.se>
Date: Wed, 1 Oct 2003 18:41:44 +0200 (MEST)
From: Peter B <pb@ludd.luth.se>
To: FreeBSD-gnats-submit@freebsd.org
Subject: Boot process:  loader(8) seems to confuse files..

>Number:         57464
>Category:       misc
>Synopsis:       [boot] loader(8) seems to confuse files [4.7]
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-bugs
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Wed Oct 01 09:50:17 PDT 2003
>Closed-Date:    Fri Nov 11 19:28:44 UTC 2011
>Last-Modified:  Fri Nov 11 19:28:44 UTC 2011
>Originator:     Peter B
>Release:        FreeBSD 4.8-RELEASE i386
>Organization:
>Environment:
System: 

machine  i386 DELL Optiplex P4
os       FreeBSD 4.8-RELEASE #0 BOOTMFS

>Description:
  I have created a bootcd with:   mkisofs 2.0 (i386-unknown-freebsd4.7)
    mkisofs -b boot/cdboot -no-emul-boot -R -J -h -V LiveCD cdroot/

  boot/loader.conf:   (/boot/ is otherwise untouched from bin.?? dist)
    kernel="/kernel.LIVECD48"
    mfs_load="YES"
    mfs_name="/mfsroot"
    mfs_type="mfs_root"

  The following kernel files are in root /:
    kernel.LIVECD48
    kernel.LIVECD48_STRIP

  The boot sequence works like this:
    cdboot                   Ok
    loader                   Ok
    boot/loader.rc           Ok
    boot/loader.4th          Ok
    boot/loader.conf         Ok
    kernel.LIVECD48_STRIP    (Get's loaded instead of kernel.LIVECD48 ..!)
    mfsroot                  Ok
    Booting..                Here it get's obvious what's going on..
    mounting ufs:/dev/md0c   Ok
    /sbin/init               Ok

  Somehow 'kernel.LIVECD48_STRIP' get's loaded instead of 'kernel.LIVECD48'.
  It doesn't help to load the kernel manually at loader prompt. If you try
  everything will look ok. But once you boot it becomes obvious that loader(8)
  got the wrong kernel.

  My suspicion is that the filesystem lookup routines in boot/loader is not
  working correctly.
  Specificly length of filenames, and characters '_0123456789' might be
  involved.

>How-To-Repeat:
  Make bootcd with above kernel names. Boot.

>Fix:
  Rename kernel files to:
     kernel.LIVECDFULL48
     kernel.LIVECDSTRIP48

>Release-Note:
>Audit-Trail:
Responsible-Changed-From-To: gnats-admin->freebsd-bugs 
Responsible-Changed-By: ceri 
Responsible-Changed-When: Wed Oct 1 13:33:55 PDT 2003 
Responsible-Changed-Why:  
Reassign misfiled PR. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=57464 
Responsible-Changed-From-To: freebsd-bugs->brucec  
Responsible-Changed-By: brucec 
Responsible-Changed-When: Tue Mar 2 23:38:37 UTC 2010 
Responsible-Changed-Why:  
Take. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=57464 
State-Changed-From-To: open->feedback 
State-Changed-By: arundel 
State-Changed-When: Wed Nov 24 02:06:43 UTC 2010 
State-Changed-Why:  
Is there a possibility you could verify this issue with a newer version of 
FreeBSD (7.x or even better 8.x)? 

http://www.freebsd.org/cgi/query-pr.cgi?pr=57464 
Responsible-Changed-From-To: brucec->freebsd-bugs 
Responsible-Changed-By: brucec 
Responsible-Changed-When: Sun Jan 23 21:34:46 UTC 2011 
Responsible-Changed-Why:  
Back to the pool due to lack of time. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=57464 
State-Changed-From-To: feedback->closed 
State-Changed-By: jh 
State-Changed-When: Fri Nov 11 19:28:42 UTC 2011 
State-Changed-Why:  
Feedback timeout. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=57464 
>Unformatted:
