summaryrefslogtreecommitdiff
path: root/distrib
AgeCommit message (Collapse)Author
2023-07-10syncTheo de Raadt
2023-07-09sync perl 5.36.1Alexander Bluhm
2023-07-09syncTheo Buehler
2023-07-08syncTheo Buehler
2023-07-08sync perl 5.36.1Alexander Bluhm
2023-07-08Floppies don't have bioctl(8)Klemens Nanni
The installer always checks for softraid using it, skip if unavailable. Apply the usual idiom in encrypt_root() to silence stderr noise. Do so in do in get_softraid_chunks() as well which is always called in get_dkdevs_unitialized() and finish_up(); get_softraid_chunks() discards stderr and both users still do the right thing on bioctl failure/empty output from get_dkdevs_unitialized(), but there's no point in trying plus the idiom clarifies how this code is indeed used on floppies. Found and tested by krw OK deraadt krw
2023-07-08syncTheo de Raadt
2023-07-06syncTheo de Raadt
2023-07-02syncTheo de Raadt
2023-06-19syncClaudio Jeker
2023-06-18accept 'a' as shortcut for 'autoconf'; ok op afresh1 knTheo de Raadt
2023-06-11No need to check for DTYPE_FLOPPY. If there is neither a GPT norKenneth R Westerback
an MBR then install biosboot in sector 0. Without the check for DTYPE_FLOPPY there is no need for FSDISKTYPE=floppy3 and therefore flip the last two Makefiles to the "echo '/ *' | disklabel -wAT-" idiom. Feedback/fix from kn@
2023-06-10syncTheo de Raadt
2023-06-06Fold disk crypto question '?' text into promptKlemens Nanni
Since this question moved after the root disk one and '?' stopped listing disks, hoist the implementation details in order to drop the custom answer and reuse existing ask_yn(), thus Encrypt the root disk? (yes, no or '?' for details) [no] ? Create a passphrase protected CRYPTO softraid volume to be used as root disk. Encrypt the root disk? (yes, no or '?' for details) [no] becomes Encrypt the root disk? (passphrase CRYPTO softraid) [no] Prodded by afresh1
2023-05-26simplify yes/no answer handlingKlemens Nanni
ask_yn() returns 0/1 on yes/no, so use the shorter '|| skip' found in install.sub; no functional change. OK solene
2023-05-24replace "$(cat file)" with the ksh construct "$(<file)"Christian Weisgerber
ok kn@ millert@
2023-05-22Drop unused md_prep_fdisk() argument in disk crypto question handlerKlemens Nanni
It takes just one, the disk; the second snuck from earlier development into the intial r1.1231 commit.
2023-05-22fix usage, name arg is optionalKlemens Nanni
2023-05-20typofix message in previousKlemens Nanni
2023-05-20Ask for disk crypto after root disk questionKlemens Nanni
Encrypt the root disk? (disk, no or '?' for details) [no] Which disk is the root disk? ('?' for details) [sdN] becomes Which disk is the root disk? ('?' for details) [sd0] Encrypt the root disk? (yes, no or '?' for details) [no] so that answering 'sd0' at this point during installation behaves the same as before the new question: specifying the root disk. Users no longer deal with two (softraid chunk sd0, root disk sd1), but just one disk as before, while sdN are dealt with transparently. Code also gets simpler and should enable more improvements soon. Feedback OK afresh1
2023-05-15syncTheo de Raadt
2023-05-02Absolutely astounding that custom code was written for the softraid caseTheo de Raadt
to require "no", instead of "n" or "no" which works at every other damn prompt in the installer. This seems to be an artifact of relentlessly pushing people towards softraid by default, and I think that is a bit nasty and pushy.
2023-05-01syncTheo Buehler
2023-04-30FSSIZE was not updated when 'fakeramdisk' was enlarged from 5760Kenneth R Westerback
blocks to 6080 blocks with etc.alpha/disktab r1.24. Noticed by deraadt@
2023-04-30syncTheo Buehler
2023-04-30syncTheo Buehler
2023-04-28timer(4/sparc64): remove driverScott Soule Cheloha
The timer(4/sparc64) driver was effectively disabled during the previous release. Nobody has come forward asking for it to be adapted to work with the new clockintr framework, so it's time to remove the driver from the tree. As of today, if you want to run OpenBSD on SPARC v9 hardware, that hardware needs to sport either %tick and %tick_compare (%asr23), or %stick (%asr24) and %stick_compare (%asr25). All Sun/Oracle SPARC v9 hardware meets these conditions, from the UltraSPARC I onward. Most HAL/Fujitsu SPARC v9 hardware meets these conditions, from the SPARC64 III onward. The only HAL/Fujitsu hardware that might not have %tick_compare are the HAL SPARC64 I and SPARC64 II, for which I can find no documentation. However, those processors are currently unsupported by OpenBSD for other reasons, so their support status is unchanged by the removal of this driver. With help from miod@. Link: https://marc.info/?l=openbsd-tech&m=167898759928206&w=2 "after unlock" deraadt@, ok mlarkin@ miod@
2023-04-28Revert amd64/i386 floppy change. Missing diff to vnconfig brokeKenneth R Westerback
installboot'ing due to incorrect d_type (must be 'floppy' not 'vnd') in disklabel. Noticed by deraadt@ and sthen@
2023-04-28Move FSDISKTYPE uses from disklabel(8) invocations to vnconfig(8)Kenneth R Westerback
invocations, making the geometry information written to the disklabel a bit more logically related to the disktab information from whence it came. Also makes FSDISKTYPE usage consistent. Flip the disklabel(8) invocations to the "echo '/ *'" idiom to make it obvious that the desire is to create a single 'a' partition containing all free space. No intentional functional change. MBRs, disklabels and newfs outputs appear identical. reads good to kn@
2023-04-28Retire -E's "expert" mode. Introduced 23 years ago to avoidKenneth R Westerback
confusing users with FFS attributes that only experts should fiddle with. Actual use has withered away with functionality rendered moot or moved elsewhere. '-e' remains for the truly obscure corner cases. Simply excise the code for now to see if hidden users/uses are exposed. Further simplifications are possible if no such users/uses surface. ok with sthen@ millert@ kn@ otto@
2023-04-28syncKevin Lo
2023-04-28Add support for RTL8188FTV chip to urtwn(4).Kevin Lo
Tested with Comfast CF-WU710N v4. "go ahead" deraadt@ OK stsp@
2023-04-27arm64 install.md: fix softraid crypto installation on MacCaspar Schutijser
Make sure we don't newfs the EFI Sys partition on systems that have an "apfsisc" partition in the case we're installing with softraid crypto. Debugged with help from and came up with a fix with kn@ "go ahead" kettenis@ "no objections" krw@ OK kn@
2023-04-27Treat crypto disk like the root disk, both are boot disksKlemens Nanni
Chosing [W]hole on a GPT disk means it needs non-default `-b' fdisk(8) to account for existing EFI Sys partitions, whether it modifies an existing GPT (Apple APFS ISC) or writing a new one. With 'Encrypt the root disk?' answered postively, the crypto disk instead of the root disk becomes the boot disk. Extend the logic to both crypto and root disk, really asking "is this a boot disk?". with caspar
2023-04-27syncTheo Buehler
2023-04-27syncTheo Buehler
2023-04-27syncTheo Buehler
2023-04-27syncTheo de Raadt
2023-04-26Treat crypto disk like the root disk, both are boot disksKlemens Nanni
Chosing [W]hole on a GPT disk means it needs non-default `-b' fdisk(8) to boot and preserve any existing BIOS boot partition. With 'Encrypt the root disk?' answered postively, the crypto disk instead of the root disk becomes the boot disk. Extend the sanity check to both crypto and root disk, really asking "is this a boot disk?". This preserves existing boot partitions when using guided disk encryption.
2023-04-26Treat crypto disk like the root disk, both are boot disksKlemens Nanni
Chosing an existing OpenBSD partition on GPT during disk setup requires an existing EFI Sys partition (the installer does not create it in thi case). With 'Encrypt the root disk?' answered postively, the crypto disk instead of the root disk becomes the boot disk. Extend the EFI Sys sanity check to both crypto and root disk, really asking "is this a boot disk?".
2023-04-26Don't rely on the disklabel defaults or a disktab entry's ba#/fa#Kenneth R Westerback
values for the block/fragment sizes that some install media need. Hoist the desired values into the newfs(8) invocations to make it obvious non-default values are required and what the values are. No functional change.
2023-04-26Don't rely on the disklabel defaults or a disktab entry's ba#/fa#Kenneth R Westerback
values for the block/fragment sizes that some install media need. Hoist the desired values into the newfs(8) invocations to make it obvious non-default values are required and what the values are. No functional change. ok kn@
2023-04-26Nuke variable 'LBA'. Always set for ramdisk_cd, never set forKenneth R Westerback
ramdisk, so just keep or remove the conditional sections. ok kn@ miod@
2023-04-25syncTheo Buehler
2023-04-25syncTheo Buehler
2023-04-25drop empty lines around disk crypto '?' help textKlemens Nanni
2023-04-25Delete now unused disklabel template files.Kenneth R Westerback
2023-04-24Replace the only two uses of disklabel template files with 'echo "/ *"'.Kenneth R Westerback
No functional change. ok kn@
2023-04-24Change variables 'MRFSDISKTYPE' to 'MRDISKTYPE' like every other arch.Kenneth R Westerback
No functional change. Noticed by & ok kn@
2023-04-24Change variable 'DISKTYPE' to 'FSDISKTYPE' like every other arch.Kenneth R Westerback
No functional change. ok patrick@