nakayama
09498a8d06
Add ${DEST_DIR} prefix to check target directory not host directory.
2019-09-24 13:27:39 +00:00
wiz
e78f83e1ff
Merge single letter options in usage.
2019-09-24 11:31:06 +00:00
mrg
be571cf8e9
add -z flag to intrctl list, which elides all-zero rows.
2019-09-23 20:15:31 +00:00
christos
38a0431bfa
Restore binary compatibility by using the statvfs90 structure internally.
2019-09-23 12:00:57 +00:00
mrg
5b627c2de1
add "-w wait" arg to "intrctl list" to have it loop forever.
...
don't bother testing poitner for NULL before calling free().
2019-09-23 09:17:19 +00:00
gson
a9987ef8b8
Look for up to 16 USB controllers, to match the number of device nodes
...
now created by MAKEDEV.
2019-09-21 16:22:25 +00:00
nat
40dc704098
Fix off by one in sbc encoder. Test mode transmission and reception
...
works again.
XXX pullup -8 and -9.
2019-09-21 00:01:33 +00:00
thorpej
6e45676f26
Add support for additional install step directives to enable using
...
installboot(8) to write u-boot images to SPI NOR and other types of
raw flash devices: input-block-size, input-pad-size, output-size, and
output-block-size.
Add the ability to create aliases for install objects, useful for when
e.g. sdmmc and emmc share the same steps.
Tested on an A20-OLinuXino-LIME2-e16Gs16M by bouyer@.
XXX pullup netbsd-9
2019-09-19 01:25:29 +00:00
uwe
faa52db526
exclude_libs - redirect ls 2> /dev/null so that the user is not
...
spammed with errors for directories without any libraries; the most
common case in the wild would be empty /usr/libdata/debug. Add -d to
ls for good measure while here.
2019-09-12 21:56:55 +00:00
msaitoh
5360c5e2f0
Call cpu_dcp_cacheinfo() only when the cpuid Topology Extension flag is set
...
on AMD prcessor.
2019-09-09 05:36:21 +00:00
brad
6f990d2afc
The cleaner is compiled into rump_lfs and executed as a thread. Pass
...
in the raw device using the new -J option. This avoids the use of
getdiskrawname which is not particularly rump safe in this context and
insures that the rump container device is used for cleaning, not the
outer device.
2019-08-30 23:41:48 +00:00
msaitoh
87de9f9cf5
Decode AMD's CPUID Fn8000_0008 %ebx.
2019-08-30 13:12:24 +00:00
martin
ff2c12f319
Remove dead (#if 0) code.
2019-08-28 15:19:05 +00:00
martin
c62f035be3
When requesting no special FS sub type, default to FAT32 with LBA.
...
Fixes one part of PR 54490.
2019-08-27 17:23:24 +00:00
martin
32ccf04c1c
Do not offer to upgared the "current system" if we are running off a CD
...
(i.e. / is mounted read-only)
2019-08-27 14:11:00 +00:00
martin
6f0d7230f9
Fix a bug when installing to pre-exising GPT partitions.
...
Handle GPT labels with spaces.
2019-08-26 12:14:06 +00:00
rmind
298883fee6
- npfctl_load_nvlist: simplify the config loading logic.
...
- Fix a small race condition in npf_nat_getaddr().
- Rework pserialize/EBR wrappers, make it easier to maintain.
2019-08-25 13:21:03 +00:00
rmind
0dd7abe473
libnpf fix: link the library itself to libnv; libnpf users should not be
...
expected to assume this dependency.
2019-08-24 13:20:52 +00:00
rmind
f916b9b1ff
- npftest: fix a memleak in a unit test (standalone path only).
...
- Minor style fixes. No functional change.
2019-08-21 21:41:53 +00:00
martin
d7f55bad98
PR install/54480: when upgrading a system and re-mounting the target /
...
with proper options, and the installed system does not use NAME= syntax
in fstab(5), use the device name we used to get here, instead of the
name from fstab, it might be different to what the real system calls the
device (compact flash root showing up as wd0 native, but sd? on the
card reader used for updating it right now).
This is an abuse of the upgrade functionality and in general pretty dangerous
when multiple devices are used in the upgraded fstab (e.g. separate /usr),
and it used to work more by accident with the old code.
However, it is a quite usefull way to upgrade tiny systems with compact flash
root, and it used to work - so support it properly (as far as we can).
2019-08-20 06:38:17 +00:00
martin
6bccae72f0
Fix memory leak (found by MKSANITIZER=yes build).
2019-08-18 11:11:48 +00:00
abhinav
b0ca50fb4d
PR bin/54343: We want the callback_args.machine to be NULL if it is not present in the DB.
...
The previous commit fixed the problem of allowing apropos to not crash and
produce output even if the database is missing values for certain mandatory
fields, such as name, section etc. Normally we don't expect those values
to be missing in the database but in case of parsing errors it can happen.
However, the machine architecture is an optional field since not all man pages
are hardware specific so that should be allowed to be set to NULL if not
present in the database.
2019-08-18 09:14:30 +00:00
kamil
0c4f7708cb
traceroute: Add indirection of symbol to remove clash with sanitizers
...
Add indirection and symbol renaming under MKSANITIZER for the linked in
version of getifaddrs.
2019-08-18 04:12:07 +00:00
martin
2b9b247d73
Oops, avoid double free.
2019-08-17 18:08:06 +00:00
martin
31a289cd68
Fix some memory leaks in error paths
2019-08-17 18:03:12 +00:00
martin
1b565566ff
PR 54473: fix error prompt when a set file is missing
2019-08-17 17:51:19 +00:00
martin
effa0345f7
Never trust a compiler that predefines i386 as 1 - do the symbol name
...
concatenation at the make level instead.
2019-08-15 19:53:01 +00:00
martin
3e1d4a8ce3
Replace black voodo linker magic (sometimes failing) with some
...
makefile + macro magic to trim the list of available machines on size
restricted install media.
2019-08-15 14:06:40 +00:00
christos
2d0aa66b2f
PR/54343: Prevent NULL pointers in callback strings; use "*?*" for now to
...
identify them.
2019-08-15 10:29:07 +00:00
kamil
74a26dbbb0
Add missing extern declaration of ib_mach_emips in installboot
...
Change added for the consistency with the existing code.
2019-08-15 08:36:09 +00:00
kamil
bffacbd197
Stop defining _rpcsvcdirty in bss and data
...
_rpcsvcdirty is already defined in the generated code from rpcgen(1).
Detected during the build with Address Sanitizer (MKSANITIZER).
2019-08-15 08:34:19 +00:00
kamil
cb47fa61ba
Avoid symbol clashes in usr.sbin/ypserv/ypserv under MKSANITIZER
...
Remove symbol conflicts for: gethostbyname2
2019-08-15 08:30:19 +00:00
martin
3004d9767f
Fix some "partition index" (as used in the abstract interface)
...
versus disklabel "partition letter" confusion.
2019-08-14 13:58:00 +00:00
martin
b04f4d6257
On architectures that usually do MBR/disklabel, nevertheless deal with
...
pure/plain disklabel disks, and explicitly offer this as partitioning
option when bootability is not a concern.
2019-08-14 13:02:23 +00:00
martin
6fec679845
When we ask the user to select a partitioning scheme and they refuse
...
(that is: select "Exit" in the menu), abort installation.
2019-08-14 12:55:35 +00:00
martin
13f836ecb6
Provide some documentation for macros / defines used in the machine
...
dependent backend parts of sysinst.
2019-08-14 12:49:37 +00:00
martin
736e79ce31
Make sure to completely initialize dynamic menu entries.
2019-08-13 17:57:49 +00:00
maxv
2b4397de4a
sync with reality
2019-08-13 09:48:24 +00:00
gutteridge
1e1742aedb
npf.7: add xref to npf-params.7
...
(Adding directly here since this particular file isn't included in
rmind@'s upstream GitHub repo at present.)
2019-08-11 22:27:15 +00:00
rmind
04ad65d955
Adjust some internal NPF APIs:
...
* npfkern: use the npfk_ prefix.
* NPF portmap: amend the API so it could be used elsewhere.
* Make npf_connkey_t public.
2019-08-11 20:26:33 +00:00
rmind
b7b9a92305
npf-params(7): add more bpf.jit details.
...
From David H. Gutteridge.
2019-08-11 20:25:14 +00:00
rmind
64b4ec4316
npfctl show/validate: fix couple bugs in multiple table/port representation.
...
Fixes PR/54122.
2019-08-10 22:23:55 +00:00
rmind
54d339ec04
NPF: fix BPF byte-code generation for a port-range used in a group.
...
Resolved PR/52609 and PR/54169.
2019-08-08 21:29:15 +00:00
martin
0dfd6624ca
Do not even consider to fsck partitions where we do not know the file
...
system type. Add v7fs support.
2019-08-08 13:45:19 +00:00
martin
62c0076db0
Do not try to fsck partitions we are never going to mount.
...
Found by Andreas Gustafsson's baremetal test bed.
2019-08-08 11:41:16 +00:00
martin
b8a71b5965
When creating the /etc/fstab for new installs, the sense of the "noauto"
...
flag was inverted (editor mishap?)
2019-08-07 10:12:32 +00:00
martin
a7267d5357
Support upgrade of systems using NAME= syntax in /etc/fstab.
...
Make supported file system types dynamic - instead of hardcoding the
available types at compile time, check for available newfs_* helper
binaries in the actual install environment at runtime.
2019-08-07 10:08:04 +00:00
maya
771183eb32
Consistent indentation / whitespace
2019-08-05 13:50:58 +00:00
maya
0189925033
KNF for loops
2019-08-05 13:49:10 +00:00
maya
e203dacf10
Remove duplicate check for curpkt > 13
...
We already guarantee this above:
if (numpkts < 1 || numpkts > 13) {
return -1;
2019-08-05 13:45:01 +00:00