From owner-freebsd-hackers@freebsd.org Wed Aug 26 08:49:13 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 31ED499AC28 for ; Wed, 26 Aug 2015 08:49:13 +0000 (UTC) (envelope-from ganael.laplanche@corp.ovh.com) Received: from 5.mo174.mail-out.ovh.net (5.mo174.mail-out.ovh.net [46.105.34.17]) (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 EB511E5C for ; Wed, 26 Aug 2015 08:49:12 +0000 (UTC) (envelope-from ganael.laplanche@corp.ovh.com) Received: from MBX001.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 5830EFF8094; Wed, 26 Aug 2015 10:42:48 +0200 (CEST) Received: from desk533202.ovh.net (5.196.2.34) by MBX001.OVH.local (172.16.2.1) with Microsoft SMTP Server (TLS) id 15.0.1104.5; Wed, 26 Aug 2015 09:41:59 +0100 From: Ganael Laplanche Organization: OVH To: Subject: Re: EFI ZFS loader success story Date: Wed, 26 Aug 2015 10:42:47 +0200 User-Agent: KMail/1.13.7 (Linux/3.2.0-4-amd64; KDE/4.8.4; x86_64; ; ) CC: Eric McCorkle References: <201508121139.40852.ganael.laplanche@corp.ovh.com> In-Reply-To: <201508121139.40852.ganael.laplanche@corp.ovh.com> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Message-ID: <201508261042.47680.ganael.laplanche@corp.ovh.com> X-Originating-IP: [5.196.2.34] X-ClientProxiedBy: cas01.OVH.local (172.16.1.1) To MBX001.OVH.local (172.16.2.1) X-C2ProcessedOrg: adf1d41a-9ee8-48fd-a72d-f604a03a8e62 X-Ovh-Tracer-Id: 8937393462334831144 X-VR-SPAMSTATE: OK X-VR-SPAMSCORE: -100 X-VR-SPAMCAUSE: gggruggvucftvghtrhhoucdtuddrfeekfedrieduucetufdoteggucfrrhhofhhilhgvmecuqfggjfenuceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddm 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: Wed, 26 Aug 2015 08:49:13 -0000 On Wednesday, August 12, 2015 11:39:40 AM Ganael Laplanche wrote: Hi, > Prepare the EFI partition : > --------------------------- > [...] > # cat > /mnt/boot/loader.rc << EOF > unload > set currdev=3Dzfs:root/ROOT/default: > load boot/kernel/kernel > load boot/kernel/zfs.ko > autoboot > EOF > [...] =46YI, I've faced a problem today with the configuration above : loading th= e=20 kernel with a *relative* path leads to kern.bootfile being defined as=20 "boot/kernel/kernel" (instead of "/boot/kernel/kernel") ; as a consequence,= =20 freebsd-update exits with the following error : "Cannot identify running=20 kernel". It is much better to use absolute file names within loader.rc, so the above= =20 paragraph should be re-written this way : # cat > /mnt/boot/loader.rc << EOF unload set currdev=3Dzfs:root/ROOT/default: load /boot/kernel/kernel load /boot/kernel/zfs.ko autoboot EOF Best regards, =2D-=20 Gana=EBl LAPLANCHE