opnsense-src/sys/boot/common
Andrey V. Elsukov af90a87209 Make detection of GPT a bit more reliable.
When we are detecting a partition table and didn't find PMBR, try to
read backup GPT header from the last sector and if it is correct,
assume that we have GPT.

Reviewed by:	rpokala
MFC after:	1 month
Differential Revision:	https://reviews.freebsd.org/D4282
2015-12-10 10:35:07 +00:00
..
bcache.c
boot.c zfs boot: try to set vfs.root.mountfrom from currdev as a fallback 2012-05-12 09:07:41 +00:00
bootstrap.h loader: implement multiboot support for Xen Dom0 2015-01-15 16:27:20 +00:00
commands.c Close a file descriptor leak in an error case. 2009-10-28 10:06:27 +00:00
console.c Add a new loader(8) variable, twiddle_divisor, allowing control over the 2014-12-22 22:07:22 +00:00
crc32.c Remove second consts in r233288 in order to appease C++ compilers. 2012-03-26 18:22:04 +00:00
crc32.h - Split code shared by almost any boot loader into separate files and 2010-09-24 19:49:12 +00:00
dev_net.c Refactor net_getparams() to make it easier to get params from sources other 2015-05-18 15:46:43 +00:00
dev_net.h Refactor net_getparams() to make it easier to get params from sources other 2015-05-18 15:46:43 +00:00
devopen.c Show info about net devices in loader's 'lsdev' command. While there fix style. 2008-09-03 17:41:44 +00:00
disk.c Implement simple ops for umass_disk 2015-11-27 18:17:53 +00:00
disk.h Implement simple ops for umass_disk 2015-11-27 18:17:53 +00:00
gpt.c Read backup GPT header from the last LBA only when primary GPT header and 2012-04-12 12:37:53 +00:00
gpt.h - Split code shared by almost any boot loader into separate files and 2010-09-24 19:49:12 +00:00
help.common Replace a rarely used "depuration" with "debugging". 2006-10-13 20:48:17 +00:00
install.c Change the order of the arguments to file_loadraw(). They were swapped 2014-11-01 18:51:48 +00:00
interp.c Give loaders more control over the Forth initialization process. In 2014-07-27 16:12:51 +00:00
interp_backslash.c
interp_forth.c Give loaders more control over the Forth initialization process. In 2014-07-27 16:12:51 +00:00
interp_parse.c Replace index() and rindex() calls with strchr() and strrchr(). 2012-01-03 18:51:58 +00:00
isapnp.c
isapnp.h
load_elf.c An ARM kernel can be loaded at any 2MB boundary, make ubldr aware of that. 2015-05-17 19:59:05 +00:00
load_elf32.c Add support for FreeBSD/i386 guests under bhyve. 2014-02-05 04:39:03 +00:00
load_elf32_obj.c Add support for FreeBSD/i386 guests under bhyve. 2014-02-05 04:39:03 +00:00
load_elf64.c
load_elf64_obj.c
load_elf_obj.c loader: implement multiboot support for Xen Dom0 2015-01-15 16:27:20 +00:00
loader.8 Document loader(8) dumpdev option 2015-11-18 09:42:36 +00:00
ls.c
Makefile Install loader(8) and zfsloader(8) only once 2015-06-19 05:42:24 +00:00
Makefile.depend META MODE: Update dependencies with 'the-lot' and add missing directories. 2015-12-01 05:23:19 +00:00
Makefile.inc Install loader(8) and zfsloader(8) only once 2015-06-19 05:42:24 +00:00
md.c Small change in header order to allow this to compile. 2015-04-27 07:38:46 +00:00
merge_help.awk Ignore a sub-topic match if it is inside the command description. 2006-09-28 19:06:20 +00:00
misc.c In alloc_pread() and kern_pread(), print errors only when DEBUG is 2014-11-05 04:18:41 +00:00
module.c Fix a problem which made loader(8) load non-kld files twice. 2015-08-03 16:27:36 +00:00
newvers.sh Make vers.c creation atomic by using a temporary file, then moving 2015-10-24 21:59:58 +00:00
panic.c Fix WARNS=2 warnings. 2006-09-29 20:57:38 +00:00
part.c Make detection of GPT a bit more reliable. 2015-12-10 10:35:07 +00:00
part.h Create the interface to work with various partition tables from the 2012-08-05 11:29:44 +00:00
pnp.c Garbage collect the code for auto-loading modules based on ISAPNP IDs, 2007-01-07 22:25:45 +00:00
reloc_elf.c Implement elfN(reloc) for powerpc. With this change the kernel is now able to 2012-09-21 18:21:31 +00:00
reloc_elf32.c
reloc_elf64.c
self_reloc.c The self-relocation code is not efi-specific, move it to boot/common. 2015-05-10 13:24:26 +00:00
ufsread.c Apparently some of the i386 boot blocks are so close to full that adding 2014-04-13 14:50:52 +00:00
util.c strncmp for boot code: fix an off by one error 2013-04-05 09:14:30 +00:00
util.h Rename bcpy() macro to bcopy(). 2011-02-27 12:25:47 +00:00
zfsloader.8 Misc mdoc fixes: 2014-11-23 21:00:00 +00:00