From owner-freebsd-current@freebsd.org Mon Dec 11 22:19:54 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 2D9D4EA0908 for ; Mon, 11 Dec 2017 22:19:54 +0000 (UTC) (envelope-from wlosh@bsdimp.com) Received: from mail-it0-x22a.google.com (mail-it0-x22a.google.com [IPv6:2607:f8b0:4001:c0b::22a]) (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 E50537C21F for ; Mon, 11 Dec 2017 22:19:53 +0000 (UTC) (envelope-from wlosh@bsdimp.com) Received: by mail-it0-x22a.google.com with SMTP id u62so19760347ita.2 for ; Mon, 11 Dec 2017 14:19:53 -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=axktQCbDtOXgSWfh2A3F4AFK8Kt8qvdvQ+sIBkwhJYo=; b=qzqYQxiG6X07fAeJuWVXP60y/QcAYq8ykZpoEkabQDnYzPfAepOueJwL4Btvfit7NT NdxWLYx+epkKB6AfQYGlYCaQlC9GP1FRDXkmZ+AKXTGbV5jlwcFvmZltRKXLprwpGMmG 6Ry8vkkz7zbIMqiQSzTeIZ///C9MCmxIdCwklqoEM7rOeLGnZQrxZHUc/uxZcKFmEGdm n4ZqJUNu1i2Wb5VMOjlEdpEuKA0PPrgEKX1EymnPcl2vuW7JYROLEzMLDn68qbHVdlfw wU7yf8FRMjr2GmbffjMhWCy0CuKdtsHvrnY2ltVHrDef9Uav4HMijcJ+jl/c3oHqU5Iw Eb8Q== 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=axktQCbDtOXgSWfh2A3F4AFK8Kt8qvdvQ+sIBkwhJYo=; b=tPiNU88YO0T8qawwjqQmvifQortpWXb5UnU/2pMk7heO6BaiiDUmoMt8oOT3UP/puO ZiUL5PfoeeFUk3tY5yweUJbhMK3ZPAjsuevpFpOc2YhDG6nIULQ2cRVcaNilsIvLlWi6 eXSn91UKdaZaJ92L6PGFAHAHRFXoF8+34tIYFSk/te99fbVgTIb6MqyuJTXIjv08s841 0XwOKKGV7CatAv+6TsNh92s5Mq73mR4aCPNp4BvFOr0Tbc+P6W+tjPOVLPcXzEqlxnFR fNkENHaHjliwfOg645POgG6SpErUTGV0vv1mhkS9pcJvGUL50xFaG2zFk4oc2YupVyNy sU4g== X-Gm-Message-State: AKGB3mIhTS1Z85IjpmQEsN3ogg260n7NwEma39yajiOC1P+ixbf6iD4D NvAxjQCfbN4cLcHp/YvnnJuzpjHcbq8tI0SF2FrwHs1W X-Google-Smtp-Source: ACJfBou0b1zXMtdVzBuDKlbWtMgo/2mBdkwAa2XHxdFWZaG1n61tT9uO5Ac1JLYA/wP5g9dNStc0l//1SqbC+9HGoVA= X-Received: by 10.36.164.13 with SMTP id z13mr3275163ite.115.1513030793076; Mon, 11 Dec 2017 14:19:53 -0800 (PST) MIME-Version: 1.0 Sender: wlosh@bsdimp.com Received: by 10.79.108.204 with HTTP; Mon, 11 Dec 2017 14:19:52 -0800 (PST) X-Originating-IP: [75.104.71.74] In-Reply-To: References: From: Warner Losh Date: Mon, 11 Dec 2017 15:19:52 -0700 X-Google-Sender-Auth: G-OOXc5M5PTtHDWQ4OgztwmOqFA 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:19:54 -0000 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