Remove residual blank line at start of MakefileThis is a residual of the $FreeBSD$ removal.MFC After: 3 days (though I'll just run the command on the branches)Sponsored by: Netflix
Remove $FreeBSD$: one-line sh patternRemove /^\s*#[#!]?\s*\$FreeBSD\$.*$\n/
loader: install help files only onceEvery file should be installed exactly once by `make installworld`.This is especially important for pkgbase.Loader help files were being installed by each loa
loader: install help files only onceEvery file should be installed exactly once by `make installworld`.This is especially important for pkgbase.Loader help files were being installed by each loader variant (e.g.,the simp, lua, and 4th EFI loaders). Add a (slightly hacky) mechanismto skip installing help files for all but one variant.PR: 271178Reviewed by: impSponsored by: The FreeBSD FoundationDifferential Revision: https://reviews.freebsd.org/D40021
show more ...
userboot: handle guest interpreter mismatches more intelligentlyThe switch to lualoader creates a problem with userboot: the host isinclined to build userboot with Lua, but the host userboot's int
userboot: handle guest interpreter mismatches more intelligentlyThe switch to lualoader creates a problem with userboot: the host isinclined to build userboot with Lua, but the host userboot's interpretermust match what's available on the guest. For almost all FreeBSD guests inthe wild, Lua is not yet available and a Lua-based userboot will fail.This revision updates userboot protocol to version 5, which adds aswap_interpreter callback to request a different interpreter, and tries todetermine the proper interpreter to be used based on how the guest/boot/loader is compiled. This is still a bit of a guess, but it's likelythe best possible guess we can make in order to get it right. Theinterpreter is now embedded in the resulting executable, so we can open/boot/loader on the guest and hunt that down to derive the interpreter itwas built with.Using -l with bhyveload will not allow an intepreter swap, even if theloader specified happens to be a userboot with the wrong interpreter. We'llsimply complain about the mismatch and bail out.For legacy guests without the interpreter marker, we assume they're 4th.For new guests with the interpreter marker, we'll read it and swap overto the proper interpreter if it doesn't match what the userboot we're usingwas compiled with.Both flavors of userboot are installed by default, userboot_4th.so anduserboot_lua.so. This fixes the build WITHOUT_FORTH as a coincidence, whichwas broken by userboot being forced to 4th.Reviewed by: imp, jhb, araujo (earlier version)Approved by: re (gjb)Differential Revision: https://reviews.freebsd.org/D16945