From owner-freebsd-bugs@FreeBSD.ORG Tue Oct 9 22:30:27 2012 Return-Path: Delivered-To: freebsd-bugs@hub.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 8F463353 for ; Tue, 9 Oct 2012 22:30:27 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [8.8.178.135]) by mx1.freebsd.org (Postfix) with ESMTP id 66C8A8FC26 for ; Tue, 9 Oct 2012 22:30:27 +0000 (UTC) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.5/8.14.5) with ESMTP id q99MURc5043719 for ; Tue, 9 Oct 2012 22:30:27 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.5/8.14.5/Submit) id q99MURPU043718; Tue, 9 Oct 2012 22:30:27 GMT (envelope-from gnats) Resent-Date: Tue, 9 Oct 2012 22:30:27 GMT Resent-Message-Id: <201210092230.q99MURPU043718@freefall.freebsd.org> Resent-From: FreeBSD-gnats-submit@FreeBSD.org (GNATS Filer) Resent-To: freebsd-bugs@FreeBSD.org Resent-Reply-To: FreeBSD-gnats-submit@FreeBSD.org, Ralf Wenk Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 952FCE3B for ; Tue, 9 Oct 2012 12:06:00 +0000 (UTC) (envelope-from nobody@FreeBSD.org) Received: from red.freebsd.org (red.freebsd.org [IPv6:2001:4f8:fff6::22]) by mx1.freebsd.org (Postfix) with ESMTP id 63BE38FC14 for ; Tue, 9 Oct 2012 12:06:00 +0000 (UTC) Received: from red.freebsd.org (localhost [127.0.0.1]) by red.freebsd.org (8.14.5/8.14.5) with ESMTP id q99C5xPt043234 for ; Tue, 9 Oct 2012 12:05:59 GMT (envelope-from nobody@red.freebsd.org) Received: (from nobody@localhost) by red.freebsd.org (8.14.5/8.14.5/Submit) id q99C5xv3043233; Tue, 9 Oct 2012 12:05:59 GMT (envelope-from nobody) Message-Id: <201210091205.q99C5xv3043233@red.freebsd.org> Date: Tue, 9 Oct 2012 12:05:59 GMT From: Ralf Wenk To: freebsd-gnats-submit@FreeBSD.org X-Send-Pr-Version: www-3.1 Subject: kern/172550: stage booting via grub and loader does not work any more after revision 241053 X-BeenThere: freebsd-bugs@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 09 Oct 2012 22:30:27 -0000 >Number: 172550 >Category: kern >Synopsis: stage booting via grub and loader does not work any more after revision 241053 >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Tue Oct 09 22:30:26 UTC 2012 >Closed-Date: >Last-Modified: >Originator: Ralf Wenk >Release: FreeBSD 10.0-CURRENT i386 >Organization: Hochschule Karlsruhe, University of Applied Sciences >Environment: FreeBSD IZ-T193196065251a 10.0-CURRENT FreeBSD 10.0-CURRENT #23: Fri Oct 5 12:36:19 CEST 2012 root@IZ-T193196065251a:/usr/obj/usr/src/sys/E4300 i386 >Description: loader(8) does not find the kernel any more after revision 241053. The message shown is "can't load 'kernel'". Comparing the show-command output between a loader build at Sep 3 2012 and Oct 5 2012 shows that a lot of variables (e.g. "kernelname") are missing. >How-To-Repeat: This machine uses multiboot with grub as bootloader. The menuentry in grub.cf for FreeBSD which used to work is menuentry "FreeBSD, via /boot/loader (on /dev/sda7[a])" { # set root=(hd0,7,a) set root=(hd0,7) kfreebsd /boot/loader } The partition layout as shown by gpart is: # gpart show => 63 312581745 ada0 MBR (149G) 63 674667 1 linux-data (329M) 674730 1110 - free - (555k) 675840 1536000 2 ntfs (750M) 2211840 5130 - free - (2.5M) 2216970 65529135 3 ntfs [active] (31G) 67746105 244830600 4 ebr (116G) 312576705 5103 - free - (2.5M) => 0 244830600 ada0s4 EBR (116G) 0 65529135 1 linux-data (31G) 65529135 7823655 1040146 linux-swap (3.7G) 73352790 65529135 1164331 freebsd (31G) 138881925 105948675 - free - (50G) => 0 65529072 ada0s7 BSD (31G) 0 65529072 1 freebsd-ufs (31G) # >Fix: Reverting revision 241053 fixes the problem. I just build loader with the pre 241053 versions of sys/boot/common/disk.c, sys/boot/common/disk.h and sys/boot/i386/libi386/biosdisk.c and it worked again as expected. >Release-Note: >Audit-Trail: >Unformatted: