From owner-freebsd-current@freebsd.org Mon Dec 11 22:30:15 2017 Return-Path: Delivered-To: freebsd-current@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 06379EA11BA for ; Mon, 11 Dec 2017 22:30:15 +0000 (UTC) (envelope-from wlosh@bsdimp.com) Received: from mail-it0-x234.google.com (mail-it0-x234.google.com [IPv6:2607:f8b0:4001:c0b::234]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id BE98B7CC13 for ; Mon, 11 Dec 2017 22:30:14 +0000 (UTC) (envelope-from wlosh@bsdimp.com) Received: by mail-it0-x234.google.com with SMTP id b5so19794730itc.3 for ; Mon, 11 Dec 2017 14:30:14 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bsdimp-com.20150623.gappssmtp.com; s=20150623; h=mime-version:sender:in-reply-to:references:from:date:message-id :subject:to:cc; bh=IFAeoXRX4GfGl12suF3pexSHx2V5jBNg+pZe5Y+B14o=; b=xsbAtjQNrpgkQgoGTvlK8Q7nQQAHmDWg7M/E1LH97CNAhfrUiQO4SBjTUoFM0MANmJ wVA8bE16CyB/xee1anKSsv+DLXLdHLe4XRrb7Ck1iGDwtf9vsnewoCpoU1c5G2lznZXx 6g7QJC15r+ZVt7ltgRNG4A88wQwfkextNOgnqC2AkB0noCb6XlzLHhSRRdPTrafH9fSM RKV3hq/Vpzy5DjFDHAhHLltReKXznz6iRsY1JV7eI6qw8H2rMog8voWJIhxIHDiM5zLl bQHAojSIHrMEqThzLdXc2RIuOABo53dp7kV2tV0WiDWNegHT675PR+i+H64GIk8yM0eK T9dQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:sender:in-reply-to:references:from :date:message-id:subject:to:cc; bh=IFAeoXRX4GfGl12suF3pexSHx2V5jBNg+pZe5Y+B14o=; b=VESVsho8c9HknGGmNRGRl4wrhC8yf7CWPOg7G0BVMnKN7SHQjwsXl3xZiFSQ7rpiws 1u6umW6SpnbyThSvai4xubRN/QVUfQYCQBdTQ+L6plq6IkDR7vDUgsoRTi1WNXkFIdes AYFwU1X7NguolEgzmAvCEKC/QyhwFjNtgMy8FNoTkU4FVAHB9NJjpXuhNwt/OiG49nQs yj8VsFP/CQ8RiV0gXiVrQoVxgYXsblWh+dhnoYjpdJ7JpHAtub2RYaq5m7oHQNMDyIvT IjtWoFSDPQBby7meNTdlADwOaRPjV6OqeLWis1x9fUo+PZXqdvxjFhPw+zD+pIR9J2Pi WVeA== X-Gm-Message-State: AKGB3mKU+5O89BGg2f2xliRky83yREln3giPps+KDfOdK7BUaV+yBl45 QwtZKd3pDwJsJfuEzuSXCtYaW7YI4nO/amesVj1A9w== X-Google-Smtp-Source: ACJfBosJp3PpyrD8d5KlAZOP6GVv9OSY0LFA6dyx70QIUW4b5av+dQ3dDmLcDZrnNJnNFAGGY+53GdeZIvGG8KxZ2Z8= X-Received: by 10.36.131.200 with SMTP id d191mr3252261ite.97.1513031413903; Mon, 11 Dec 2017 14:30:13 -0800 (PST) MIME-Version: 1.0 Sender: wlosh@bsdimp.com Received: by 10.79.108.204 with HTTP; Mon, 11 Dec 2017 14:30:13 -0800 (PST) X-Originating-IP: [75.104.71.74] In-Reply-To: References: From: Warner Losh Date: Mon, 11 Dec 2017 15:30:13 -0700 X-Google-Sender-Auth: wRXiaDeVfNFZ1sKiMpb60ecXuE4 Message-ID: Subject: Re: don't know how to load module '/boot/loader' To: Alan Somers Cc: FreeBSD CURRENT Content-Type: text/plain; charset="UTF-8" X-Content-Filtered-By: Mailman/MimeDel 2.1.25 X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.25 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 11 Dec 2017 22:30:15 -0000 On Mon, Dec 11, 2017 at 3:26 PM, Alan Somers wrote: > On Mon, Dec 11, 2017 at 3:19 PM, Warner Losh wrote: > >> >> >> On Mon, Dec 11, 2017 at 3:03 PM, Alan Somers wrote: >> >>> I just upgraded my head machine to r326772. Now, boot2 can't find the >>> loader. Instead, it tries to boot the kernel directly, which fails >>> because >>> the ZFS module isn't loaded. If I break into boot2 and type "boot >>> /boot/loader" I get the error "don't know how to load module >>> '/boot/loader'". I last updated on 30-Nov, so this bug must've been >>> introduced since then. Any ideas? >>> >>> BTW, I can successfully boot with the following commands: >>> unload >>> load /boot/kernel/kernel >>> load zfs >>> boot >>> >>> http://bayimg.com/iAKmFaAgl >> >> >> I'd bisect :) >> >> However, try to update to just before this commit: >> >> Author: imp >> Date: Fri Dec 8 19:57:16 2017 +0000 >> >> Create interp class. >> >> Create an interp class. Use it to separate out the different types of >> interpreters: forth and simple with function pointers rather than >> via #ifdefs. >> >> Obtained from: lua boot loader project >> (via https://bsdimp@github.com/bsdimp/freebsd.git lua-bootloader) >> Sponsored by: Netflix >> >> >> git-svn-id: svn+ssh://svn.freebsd.org/base/head@326712 >> ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f >> >> would be a good place to start. >> >> It's a shame we can't create zpool images with an unpriv'd user command. >> Would help out the ZFS testing of the boot loader refinement. >> >> Warner >> > > If I bisect this, what parts do I need to reinstall each time? A full > buildworld would be too slow. Is it sufficient to reinstall stand? > Just rebuild stand, reinstall it and reboot. Also, why are you trying to load /boot/loader from /boot/zfsloader? That has me confused. The screen shot looks like it found the kernel OK and was going to boot it, but then you interrupted it, unloaded it and tried to load /boot/loader. Shouldn't that be /boot/kernel or /boot/kernel.old or something like that? OK is /boot/loader's prompt (boot2 has no such prompt).... maybe the real bug here is that the menu has stopped working leading to your confusion... Warner