From owner-freebsd-hackers@freebsd.org Mon Aug 3 14:48:27 2015 Return-Path: Delivered-To: freebsd-hackers@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 201C39B2D56 for ; Mon, 3 Aug 2015 14:48:27 +0000 (UTC) (envelope-from ganael.laplanche@corp.ovh.com) Received: from 1.mo174.mail-out.ovh.net (1.mo174.mail-out.ovh.net [178.33.109.103]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id AE9DFC3 for ; Mon, 3 Aug 2015 14:48:26 +0000 (UTC) (envelope-from ganael.laplanche@corp.ovh.com) Received: from MBX002.OVH.local (corp.ovh.com [5.196.251.137]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-SHA384 (256/256 bits)) (No client certificate requested) by mo174.mail-out.ovh.net (Postfix) with ESMTPS id 774C7FF808F; Mon, 3 Aug 2015 15:32:45 +0200 (CEST) Received: from desk533202.ovh.net (5.196.2.34) by MBX002.OVH.local (172.16.2.2) with Microsoft SMTP Server (TLS) id 15.0.1104.5; Mon, 3 Aug 2015 15:32:27 +0200 From: Ganael Laplanche Organization: OVH To: Eric McCorkle Subject: Boot loader arguments (was: ZFS support for EFI) Date: Mon, 3 Aug 2015 15:32:44 +0200 User-Agent: KMail/1.13.7 (Linux/3.2.0-4-amd64; KDE/4.8.4; x86_64; ; ) CC: MIME-Version: 1.0 Message-ID: <201508031532.44478.ganael.laplanche@corp.ovh.com> X-Originating-IP: [5.196.2.34] X-ClientProxiedBy: cas01.OVH.local (172.16.1.1) To MBX002.OVH.local (172.16.2.2) X-Ovh-Tracer-Id: 7889462125500152538 X-VR-SPAMSTATE: OK X-VR-SPAMSCORE: -100 X-VR-SPAMCAUSE: gggruggvucftvghtrhhoucdtuddrfeekfedrudegucdltddurdefkedvrddttddmucetufdoteggucfrrhhofhhilhgvmecuqfggjfenuceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddm Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable X-Content-Filtered-By: Mailman/MimeDel 2.1.20 X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 03 Aug 2015 14:48:27 -0000 Hi Eric, I am replying to this -quite old now- post : https://lists.freebsd.org/pipermail/freebsd-hackers/2015-March/047486.html > More importantly, the EFI loader doesn't seem to make use of its > command-line arguments at all. But a ZFS-enabled loader would really > need the ability to take arguments from boot1 (or grub, or whatever > else). where you were suggesting it would be interesting for the EFI loader to mak= e=20 use of its arguments, which is still not the case. We've faced a similar problem here, where we needed the EFI loader be able = to=20 locally override the root-path offered through BOOTP. A quick fix would hav= e=20 been to hardcode the root-path but instead we chose to pass it through an=20 argument to the loader (which then sets a new environment variable :=20 dhcp.root-path.override). =46ind attached the two -simple- patches that allow such an operation. I do= n't=20 know if they can be interesting for you or for upstream inclusion (though t= hey=20 are probably *not* ready for direct inclusion yet). Best regards, =2D-=20 Gana=EBl LAPLANCHE