Commit Graph

469 Commits

Author SHA1 Message Date
martin 8d9b89d19f PR 55991: when extending the marked partition (typically: the NetBSD root
partition) round the new size up to current alignment.

This may lead to a slightly smaller than initialy planned last partition
(depending on order added) if the disk size is odd or the partitioning
scheme needs some internal space (like GPT) - but it avoids gaps elsewhere
due to alignement.

Ideally we would pin all other partitions in a first pass and then let
the partitioning backend pick the full available size for the extended
partition, but this should be good enough.
2021-02-13 15:31:35 +00:00
rillig 6dccb7a0e9 sysinst: remove trailing whitespace from *.c *.h
In contrast to the messages files, this whitespace is not significant.
2021-01-31 22:45:46 +00:00
rillig 3d3e682f03 sysinst: fix some more typos in the German translation 2021-01-31 22:19:24 +00:00
rillig cc8233cb1e sysinst: restore the few intentional line breaks in German
Marking a forced line break with a trailing space is a terrible idea.
Most of the lines that previously had trailing whitespace did so
unintentionally, destroying the auto-layout.
2021-01-31 21:28:16 +00:00
rillig 105c093d2a sysinst: proofread German translation
It was a mixture of all possible styles, with several typos and
inconsistencies.
2021-01-31 21:00:43 +00:00
rillig 002fd351ad sysinst: warp factor.c to the 21st century
That file contained some conditionally defined code that still used
old-style function definitions.
2021-01-31 20:51:04 +00:00
rillig 014e728a52 sysinst: fix German translation, remove more trailing whitespace 2021-01-31 18:31:59 +00:00
rillig 2065669482 sysinst: remove trailing whitespace in German translation 2021-01-31 18:22:11 +00:00
wiz 0fff63c9f6 comparision -> comparison 2020-12-02 14:20:19 +00:00
jmcneill 5bdad892bd Make sure the kernel set is selected, even if extracting parts of it
manually.
2020-11-28 13:05:58 +00:00
martin fe44212f38 Disable all entropy checks for now untill consensus has been found how
to properly deal with it.
2020-11-13 17:39:06 +00:00
gson d56a0f0357 Fix typos in comment 2020-11-10 09:14:01 +00:00
martin 35097c7d0a Minimize the installer for crunched install media 2020-11-06 19:47:31 +00:00
martin 6948e0f3e4 Fix copy & pasted copyright comments. 2020-11-06 12:23:10 +00:00
christos a71fcfa7e4 Print the program name in error messages. 2020-11-05 19:13:21 +00:00
martin aeba785f6e Remove an unused message (accidently placed inconsistently in
previous)
2020-11-05 11:10:11 +00:00
martin 78ab2ae046 Avoid warnings 2020-11-04 16:26:35 +00:00
martin 043e812b52 Add (experimental) entropy input support:
Early during new installs or after upgrades we check if entropy is
available. If not (no hardware random number generator available)
we inform the user and ask them to fix it.
2020-11-04 14:29:40 +00:00
martin bfb6e5613b PR 55769: avoid the module set if we do not build any 2020-10-30 18:47:38 +00:00
martin da165701f6 When we did not magically find any CD medium with sets, offer a manual
override (so ISO images on USB sticks or Xen's xbd(4) work).
2020-10-27 15:28:01 +00:00
martin a466822889 PR 55752: relax an assertion, the first getvfsstat() call may overestimate
the file systems visible to us.
2020-10-26 20:18:33 +00:00
martin 6c05a6401d Mark a variable only used in an assert as __diagused. 2020-10-25 08:50:32 +00:00
martin 04645caa29 When looking for available CD media, skip those that are already mounted.
When no medium with sets is found, show a new error message and return
to the source selection menu.
Rearrange all source option menus to have the proper set suffix
available (either .tgz or .tar.xz).
2020-10-24 16:13:15 +00:00
martin 57bc5d61da Do not force bootselector MBR code for installs with only a single named
partition.
2020-10-23 19:03:42 +00:00
martin ea4944af8e Do not force alignment of the first partition by default (which is
treated special to skip the first track), unless an existing partition
table hints at it.
2020-10-23 19:02:58 +00:00
martin 7714ed32ca Properly convert partition default sizes in MB to number of sectors 2020-10-14 15:09:10 +00:00
martin bb6bc013a3 Move MBR writing (if any) post disklabel writing, otherwise strange
interactions happen.
2020-10-14 14:37:59 +00:00
martin 7a17fd0552 Remove dead code 2020-10-14 13:20:27 +00:00
martin 0d9613fa7b Fix copy & pasto (missing "again" label) 2020-10-14 08:49:04 +00:00
martin 852192b2dd Fix copy & pasto noticed by Jason Mitchell: change the type of a GPT
partition via "gpt type" - not "gpt label".
2020-10-14 04:17:43 +00:00
martin cb429b904f PR 55142: on popular demand bring back expert options to adjust the
number of free inodes, block size and fragment size for FFS and LFS.
2020-10-13 17:26:28 +00:00
martin a207068d8b When renumbering partitions (after deletions) be slightly more lax
in matching, to cope with differences between MBR EFI partitions and
disklabel MSDOS partitions.
2020-10-13 11:28:32 +00:00
martin 29ef4ac716 Ooops, part of previous was not meant to be included yet 2020-10-13 10:44:25 +00:00
martin d03b267b69 Before forcing MBR partitions into our disklabel, make sure they are not
there yet - could happen in various paths when reusing existing partitions
(or parts of that) - previously we would blindly duplicate identical
partitions.
2020-10-13 10:43:23 +00:00
martin df588a63f3 Minor fix to previous: fix condition when we offer the partition type
switch - it makes sense even if the disk is partitioned but has no valid
partitions.
2020-10-12 16:27:23 +00:00
martin 957b5cd6f4 PR 55536: when we find existing partition tables and have alternative
formats available, offer to delete partitions and create new ones from
scratch (in some other or the same on-disk format).
2020-10-12 16:14:32 +00:00
martin f184b4ad4d Remove very strange code that special-cased MSDOS file systems and refused
to newfs the partition (despite explicit request to do so) if it was
mountable.
Accidently carried over from a dim and distant past, before we had
fsck_newfs.
2020-10-12 14:29:41 +00:00
martin a615c4ceeb Previously we abused pm->ptstart / pm->ptsize to pass the bounds of the
NetBSD outer partition to the inner partition editor - but now this is
not a valid assumption any more, so explicitly fix the bounds if an
outer partition exists.
2020-10-12 12:17:29 +00:00
martin a4ca382971 Fix editing start and size of not yet existing outer partitions. 2020-10-12 11:23:45 +00:00
martin 6ddad1490c Remove more pm->ptstart abuse - calculate values localy where needed
instead.
2020-10-10 19:42:19 +00:00
martin 6a8fd65bf3 Use an install target hint to mark a new partition active.
When compiled with BOOTSEL support, also name the new partition "NetBSD".
2020-10-10 18:49:27 +00:00
martin 951934d3a6 When creating new partitions for "full disk" use, pass a install target
hint to the partitioning backend (for the outer NetBSD partition).
2020-10-10 18:48:32 +00:00
martin 8f65adda90 When MD code requests a reserved area (at the start of the disk)
make sure to properly account for the "lost" space during all calculations
and especially when expanding the main partition to fill the disk.

Avoid using the global "pm" or a passed device descriptons when we are
passing disk limits explicitly anyway.

Simplify/fix a few rounding calculations.
2020-10-09 18:33:00 +00:00
martin 325b99962d Add a heuristic to detect and properly mark EFI system partitions
when re-using pre-existing partitions.
2020-10-05 12:28:45 +00:00
martin 905a0d3296 When merging existing partitions with desired target system layout
information, only force the "mount" flag if the existing partitions
has a valid mount point.
2020-10-04 19:05:47 +00:00
martin a2df346540 If we have no explicitly marke target root partition, make sure to set
the proper flag on the implicit one.
2020-10-04 16:09:12 +00:00
martin d9c7022040 PR 55384: detangle pm->ptstart from the "install" flag (selecting a
target partition). Instead introduce a new PTI_INSTALL_TARGET per partition
flag and deal with it in the partitioning backends.

Honour pm->ptstart when allocating new partitions - it is supposed to be
the first sector usable by NetBSD.
2020-10-03 18:54:18 +00:00
martin a23a20c65a Apply patch provided by Izumi Tsutsui in PR 55382: make ext2 partitions
show up in the outer (MBR) partition table, needed for example on Cobalt
where firmware boots from that partition.
2020-09-29 15:29:17 +00:00
martin 8e2247ea41 PR 55381: try to deal with moved (but not yet saved) partitions when
calculating free space
2020-09-29 14:29:56 +00:00
msaitoh 57920690e6 s/occurence/occurrence/ 2020-09-29 02:58:51 +00:00