freebsd-src/stand/common
Mitchell Horne 8859960436 loader: always install help files
Address two issues with current help file logic:

The existing condition prevents the common help file from being
installed when there are no additional help files defined. This results
in no loader.help on EFI platforms, for example.

Second, due to the fact that we build and install multiple loader types,
each successive install will clobber the previous loader.help. The
result is that we could lose type-specific commands, or possibly list
them in loaders that do not have such commands.

Instead, give each loader type a uniquely named help file. The EFI
loader will look for /boot/loader.help.efi, userboot will look for
/boot/loader.help.userboot, etc. The interpreter variant has no effect
on which help file is loaded.

This leaves the old /boot/loader.help unused.

Some credit for the final approach goes to Mathieu <sigsys@gmail.com>
for their version of the fix in https://reviews.freebsd.org/D22951.

PR:		267134
Reported by:	Daniel O'Connor <darius@dons.net.au>
Reviewed by:	imp
MFC after:	1 week
Differential Revision:	https://reviews.freebsd.org/D28591
2023-02-03 16:35:06 -04:00
..
bcache.c loader: bcache: Fix debug printf 2021-12-16 11:50:43 +01:00
boot.c stand: Remove a double word in a source code comment 2022-04-09 09:27:34 +02:00
bootstrap.h kboot: Don't need an arch pointer to get segments 2023-02-03 08:41:40 -07:00
commands.c loader: always install help files 2023-02-03 16:35:06 -04:00
console.c Handle MODULE_VERBOSE_TWIDDLE in module_verbose_set 2022-02-23 21:26:41 -08:00
dev_net.c stand: Use c99 structure initialization for network device 2022-07-24 16:53:34 -06:00
dev_net.h
devopen.c geli: Move check for DEVT_DISK into geli_probe_and_attach 2022-10-22 19:47:24 -06:00
disk.c stand: parsedev API change: devspec now points to start of full device name 2022-11-30 15:30:33 -07:00
disk.h stand: Change disk_parsedev() API 2022-11-30 15:30:31 -07:00
gfx_fb.c stand: Nuke double-semicolons 2022-11-02 09:34:54 -06:00
gfx_fb.h loader.efi: to preserve heap space, use AllocatePages() for shadow_fb 2021-12-22 11:39:28 +02:00
gfx_fb_stub.c loader: move all gfx_fb.c stubs to common/gfx_fb_stub.c 2021-12-14 15:27:47 -07:00
help.common loader: implement map-vdisk and unmap-vdisk commands 2019-04-26 17:58:44 +00:00
install.c Fix compilation error for install.c in loader 2020-07-31 16:08:25 +00:00
interp.c stand: Add interp_has_builtin_cmd to see if we have a command 2022-09-01 11:08:19 -06:00
interp_backslash.c
interp_forth.c veloader use vectx API for kernel and modules 2020-03-08 17:42:42 +00:00
interp_lua.c loader: Use tslog to instrument some functions 2021-06-20 20:09:48 -07:00
interp_parse.c
interp_simple.c veloader use vectx API for kernel and modules 2020-03-08 17:42:42 +00:00
isapnp.c stand: Fix a common typo in source code comments 2022-06-05 09:49:51 +02:00
isapnp.h
load_elf.c loader: fix elf lookup_symbol type filtering 2022-10-13 22:07:52 -05:00
load_elf32.c
load_elf32_obj.c
load_elf64.c
load_elf64_obj.c
load_elf_obj.c Add support for module_verbose 2022-02-13 12:45:57 -08:00
ls.c
Makefile.depend
md.c loader: md: Use default func for fmtdev and parsedev 2023-01-27 19:06:25 +01:00
merge_help.awk
metadata.c stand: fix mismerge 2022-09-16 10:54:04 -06:00
misc.c stand: create common set_currdev 2023-01-11 15:15:15 -07:00
modinfo.c kboot: Add md_addr to metadata 2022-12-04 13:52:22 -07:00
modinfo.h stand: update prototypes for md_load and md_load64 2022-12-05 16:59:58 -07:00
module.c module_verbose should also affect non-ELF modules. 2022-02-14 10:44:46 -08:00
newvers.sh Fix stand/newvers.sh with zsh in sh mode 2020-08-12 15:49:10 +00:00
nvstore.c stand: Separate base and cli parts of nvstore 2023-01-13 14:22:38 -07:00
part.c loader: variable i is unused without MBR/GPT support built in 2020-06-16 07:05:03 +00:00
part.h loader: show APFS partition type name 2019-11-04 12:20:19 +00:00
paths.h Regularize my copyright notice 2019-12-04 16:56:11 +00:00
pnp.c Prefer uintXX_t to u_intXX_t 2018-03-13 16:33:00 +00:00
rbx.h
readin.h veloader use vectx API for kernel and modules 2020-03-08 18:48:01 +00:00
reloc_elf.c stand: only compute symidx on x86 2023-02-02 13:04:05 -07:00
reloc_elf32.c
reloc_elf64.c
self_reloc.c RISC-V boot1.efi and loader.efi support 2020-07-06 18:19:42 +00:00
tslog.c stand/common: Add support for timestamp logging (tslog) 2021-06-20 20:09:43 -07:00
vdisk.c stand: For all disk drivers, connect dv_parsedev to disk_parsedev 2022-11-30 15:30:32 -07:00
zfs_cmd.c loader: zfs_cmd.c does not really compile without libzfs.h 2020-06-16 07:30:34 +00:00