From owner-freebsd-current@freebsd.org Fri Mar 23 07:51:09 2018 Return-Path: Delivered-To: freebsd-current@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 9C030F4FF94; Fri, 23 Mar 2018 07:51:09 +0000 (UTC) (envelope-from franco@lastsummer.de) Received: from host64.shmhost.net (host64.shmhost.net [IPv6:2a01:4f8:a0:51d7::103:2]) (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 3CB85856EB; Fri, 23 Mar 2018 07:51:08 +0000 (UTC) (envelope-from franco@lastsummer.de) Received: from [IPv6:2001:470:25:233:ad60:93d2:9211:833] (unknown [IPv6:2001:470:25:233:ad60:93d2:9211:833]) by host64.shmhost.net (Postfix) with ESMTPSA id A3E3B1653D9; Fri, 23 Mar 2018 08:50:59 +0100 (CET) Content-Type: text/plain; charset=utf-8 Mime-Version: 1.0 (Mac OS X Mail 11.2 \(3445.5.20\)) Subject: Re: Testing requested: Hybrid ISO/USB boot From: Franco Fichtner In-Reply-To: Date: Fri, 23 Mar 2018 08:50:57 +0100 Cc: FreeBSD Current , freebsd-hackers@freebsd.org Content-Transfer-Encoding: quoted-printable Message-Id: References: To: Benno Rice X-Mailer: Apple Mail (2.3445.5.20) X-Virus-Scanned: clamav-milter 0.99.4 at host64.shmhost.net X-Virus-Status: Clean 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: Fri, 23 Mar 2018 07:51:09 -0000 Hi Benno, > On 22. Mar 2018, at 7:06 PM, Benno Rice wrote: >=20 > I=E2=80=99ve been working on the ability to create hybrid ISO/HDD boot = images for x86, a la what Linux systems do with ISOHYBRID. The general = theory seems to be that ISO images have a 32KB hunk of zeroes at the = front that they generally ignore so we=E2=80=99ll stick something in = there that can handle booting if need be. The cases generally break down = as follows: Very cool! I ported the patch to 11.1-RELEASE and built an OPNsense image[1] based on the commands enclosed. (I'm not entirely sure if the porting was ok as there were quite a few challenges... but for the sake of testing...) Bhyve boot: ok VirtualBox boot: ok (when using extension .iso) APU1C boot: aborts with "Invalid partition" 3x, then "No /boot/loader" and then escapes to "FreeBSD/x86 boot" etc. It's an UEFI style ISO[2] so not sure if this is problematic. I have other hardware to try and your image, but that's for later. Cheers, Franco -- [1] = https://pkg.opnsense.org/FreeBSD:11:amd64/snapshots/OPNsense-18.1.5-OpenSS= L-dvd-amd64.iso.bz2 [2] https://github.com/opnsense/tools/blob/master/build/dvd.sh