Commit Graph

405 Commits

Author SHA1 Message Date
tsutsui
089d36aae0 MBR type for Ext2 should be MBR_PTYPE_LNXEXT2, not MBR_PTYPE_FAT12. 2020-06-10 16:56:22 +00:00
tsutsui
08529c6341 Change mountpoint of boot ext2fs from /stand to /ext2 to avoid conflict.
Should be pulled up to netbsd-9, with fixes of PR/55060.
2020-06-10 16:26:33 +00:00
jmcneill
c34f2808e8 DTB are no longer part of kernel set 2020-05-29 10:25:06 +00:00
jmcneill
03c974c07b Set HAVE_INSTALL_IMAGE for evbarm 2020-05-28 19:03:09 +00:00
jmcneill
ec07eed79a Remove "If you booted from a floppy" message 2020-05-28 19:00:52 +00:00
snj
5ce7b84928 it's "its" 2020-05-26 15:20:45 +00:00
jmcneill
043d88a7c1 Separate devicetree .dts -> .dtb building from kernel builds. They are now
part of a separate set, "dtb.tgz", and only built when MKDTB=yes. This
defaults to yes for earmv[67]* and aarch64, and no everywhere else.
2020-05-18 21:19:34 +00:00
martin
98c332e311 PR 55202: disable swapping if we started it due to low ram 2020-05-12 17:26:43 +00:00
martin
0466f2885f Ooops, backout previous - twice the entropy saving is not needed.
Instead slightly improve the (slightly) hidden other code that already
did it.
2020-05-12 17:04:00 +00:00
martin
a55d2d6bdf At the end of a new installation save entropy. 2020-05-12 16:18:04 +00:00
martin
46db4168b5 Minor tweak to previous: when forcing a /usr partition just to have an
arbitrary extendable partition, still use its default size initially.
2020-05-12 06:23:07 +00:00
martin
d567815e89 When extending a partition (to fill the total disk size) do respect
size limits.
Do not suggest a size limited partition for extension by default.
2020-05-11 17:40:50 +00:00
martin
a3e2f2a69a Redo the root-size-limit check again after we grew the root partition
for kernel dumps. Auto-enable the /usr partition if it overflows.
For all non-root partitions, default to FFSv2.
2020-05-11 15:27:41 +00:00
joerg
a692036705 boardype should not be common. 2020-05-04 18:19:34 +00:00
joerg
e45e02400d Don't depend on common symbol definitions. 2020-04-22 23:43:12 +00:00
martin
103d2d1e66 Ooops, fix previous (PT_* enum values here are not DKW_PTYPE_* values) 2020-03-30 12:19:28 +00:00
martin
3d593cdb32 Support partition type ZFS 2020-03-30 10:42:49 +00:00
martin
989c6e9048 PR misc/54886: bump threshold for automatic/default creation of a tmpfs /tmp
up slightly (to 384 MB ram). This will make sure the default install has
a > 64 MB /tmp available (number pulled out of thin air, 64 MB is the minimum
required by the ZFS tests).
2020-03-16 06:48:17 +00:00
martin
e1e8b0b2d4 The (unused) md_pre_disklabel() function needs to return success, otherwise
all installations will be aborted.
2020-03-09 17:10:31 +00:00
maya
e8183c3622 Remove note that has been incorrect for a while.
Thanks ottavio for the heads up.
2020-03-06 20:07:26 +00:00
martin
34fc30f813 PR 55045: strlcpy(NULL, ..., 0) considered harmfull in some implementations. 2020-03-04 11:15:06 +00:00
martin
bcf119c046 Remove unused "rel" global variable and make the -r option a no-op. 2020-02-19 21:51:21 +00:00
martin
9990dbf0aa Do not force -Os optimization (unless SMALLPROG) 2020-02-19 21:49:48 +00:00
martin
561693de2d Rever previous: the d_packname in struct disklabel is not NUL terminated.
Disable the warning instead.
2020-02-19 21:45:09 +00:00
martin
fe36d07293 Move sysinst man page next to the source 2020-02-19 21:42:53 +00:00
martin
f16eda658a Use strlcpy in a few places to guarnatee 0-terminated strings 2020-02-19 18:08:03 +00:00
martin
0e36a5a930 Finish conversion to generic partitioning backend 2020-02-10 16:08:58 +00:00
martin
1b607b5c42 Do not use -P for tar extractions - the in tree tar has been fixed. 2020-02-10 14:55:53 +00:00
martin
6c253ac2a4 Only a single partition can ever have the "extend" flag (grow to available
size).
2020-02-06 20:17:04 +00:00
martin
04b0ec0dc6 Fix copy&pasto in previous - from kre. 2020-02-06 19:53:10 +00:00
martin
d767a2bd18 Make re-install sets also work for an explicit selected root wedge 2020-02-06 19:50:04 +00:00
martin
53cb08e207 Reformat a query to add an automatically detected swap partition
so it fits on narrow screens.
2020-02-06 19:41:57 +00:00
martin
38baaacf51 PR bin/54944: make the "explicit single wedge" selection also work for
upgrades.
2020-02-06 19:08:38 +00:00
martin
5dd26405c9 PR bin/54944: explicitly reject GPT protective MBRs. 2020-02-06 18:07:22 +00:00
martin
7cc1a7bbc8 PR bin/54944: deal with escaped spaces in NAME= syntax in /etc/fstab. 2020-02-06 16:28:10 +00:00
martin
bc25142e5e Do not assum a partitioning scheme that supports innner partitions always
needs to actually have such partitions defined.
2020-02-06 15:08:04 +00:00
martin
c37ad2b6d5 Deal with partitioning schemes having no inner counterpart.
Avoid NULL derefs.
2020-02-06 11:55:18 +00:00
martin
e25168ca3e Remove a bogus assert: when reading disklabel partitions and the outer
(MBR) partitioning has changed, but the changes have not yet been written
back to disk, we need to ignore the kernels idea of the disklabel and
instead continue with an empty one.
2020-02-06 11:46:35 +00:00
martin
8ef7426ad0 PR install/54934: always use -f on the installboot invocation. We come
here post-newfs (and maybe should have dd'd zeros to the start of the
disk before newfs instead).
2020-02-06 10:47:33 +00:00
martin
6588e96561 bootxx_name() - fix oversight in previous change (do not assume first
partition is the root partition)
2020-02-06 10:42:06 +00:00
martin
bef52f433c PR install/54921: skip non-user partitions when checking for overlaps 2020-02-03 13:09:29 +00:00
martin
8f8ab8791d PR install/54921: message "ordering" takes a %s argument. 2020-02-03 10:37:46 +00:00
martin
6bcc9cde3d remove unused "emptypart" message (or moved to ifdef notyet area) 2020-02-03 10:29:34 +00:00
martin
29f96e8198 Do not compare a char array to NULL, test for empty string instead. 2020-01-29 19:04:40 +00:00
martin
13c212dcb2 Too much disklabel magic happening in the kernel - to compensate force
MBR first when trying to identify the existing partitioning scheme of
a disk.
2020-01-28 07:43:42 +00:00
martin
6a7f7ee8d0 Use a few strlcpy() instead of strncpy() for network ioctl structs.
We seem to have no formal documentation stating the various

	char if*_name[IFNAMSIZ]; /* if name, e.g. "en0" */

elements in ioctls are nul terminated, but the peanut gallery claims
it is so - and at least half of the code in-tree touching them agrees.
2020-01-27 21:30:17 +00:00
martin
86906049de Fix support for non-512-byte/sector disks again after I broke it when
introducing the abstract partition backends.
2020-01-27 21:21:21 +00:00
martin
53d0b64d08 When retrying sets during extraction, reset the relevant statistics
to avoid counting retried sets multiple times.

Reported by kim.
2020-01-26 14:37:29 +00:00
martin
7fd225f6ad Factor out all RAM size thresholds as defines to avoid magic numbers.
To work around PR misc/54886 bump the threshold for a tmpfs /tmp mount
up to 256 MB.
2020-01-24 07:31:15 +00:00
martin
ce6562a91d Deal with even stranger fictious empty disklabels (PR kern/54882). 2020-01-21 20:04:30 +00:00