summaryrefslogtreecommitdiff
path: root/distrib
AgeCommit message (Collapse)Author
2023-04-19syncTheo de Raadt
2023-04-17Remove unused variables FSDISKTYPE that point at non-existantKenneth R Westerback
'install' disktab entries. No functional change.
2023-04-17Indent interface and disk listingsKlemens Nanni
'?' output to list available answers could better distuingish from questions and other lines, like sets selection does with four leading spaces. OK deraadt
2023-04-16if (actually... when) the compiler is flipped to do BTI/ENDBR by default,Theo de Raadt
the install media would grow too much, so use the same strategy as we for stack protector and other things: disable them, just on the install media ok kettenis
2023-04-16Dump (leak) info using utrace(2) and compile the code always inOtto Moerbeek
except for bootblocks. This way we have built-in leak detecction always (if enable by malloc flags). See man pages for details.
2023-04-14check if there is actually anything to extract from the firmware tarballRobert Nagy
on apple silicon so that we don't fill up the ramdisk by extracting the whole tarball while here, change the code so that the machdep.compatible sysctl gets read once and then that value is used in the script instead of calling sysctl several times from input and ok kn@, kettenis@
2023-04-10fix 'in in'Jonathan Gray
2023-04-07Default 'Is the disk partition alrady mounted?' to 'no' on installKlemens Nanni
For installation, no partitions whatsoever are mounted, so 'yes' is always wrong unless the user manually mounted stuff before that question. No change for upgrade, where partitions on the root disk are mounted. Idea from naddy, diff from Mikhail (mp39590 AT gmail) Tweaks from me OK op afresh1
2023-04-07Nail the root disk default in the guided disk encryption caseKlemens Nanni
Save the softraid volume's device and make it root disk default, being the only legit choice in this case; this gets it always right on systems with multiple physical disks. All other install/upgrade cases keep picking the first available [sw]d* disk as root disk default. OK afresh1
2023-04-05syncJonathan Gray
2023-04-04Enable guided disk encryption support on arm64Klemens Nanni
All board specific quirks inside the installer (and other bugs) relating to root on softraid are fixed, so that install media with the new question just works for plain as well as encrypted installs. Tested on Pinebook Pro, Raspberry Pi 4b, SolidRun CEX7.
2023-04-04Make root on softraid installations boot out of the box on Raspberry PisKlemens Nanni
Various files are put onto a pi's ESP, assuming root disk means boot disk, which is not true for root on softraid(4). Wrap the code in a loop over chunks (if any) or the single disk as before, just like installboot(8) does. OK mbuhl
2023-04-03Stop writing pine64 firmware to diskKlemens Nanni
pine64 happens to be the first board "we ran on", as kettenis explains, and this code tries to handle the situation of installing to the same disk the installer booted from. Similar boards like the Pinebook Pro don't get special treatment and work; INSTALL.arm64 already explains how to flash required firmware onto disks or install media -- Allwinner SoCs like the pine64 included. Spotted through md_installboot() dd'ing blobs onto the root disk, which does not fly with root on softraid and is in the way of arm64 getting support for guided disk encryption. Suggested by kettenis patrick Feedback jsg patrick OK patrick
2023-04-02syncKevin Lo
2023-04-02Rename get_softraid_{disks -> chunk}() and CRYPTO{DISK -> CHUNK}Klemens Nanni
"disk" can mean both "chunk" and "volume" and a future diff for better softraid volumes handling will benefit from this distinction. No functional change.
2023-04-01Limit IFS scope to effect parsing code onlyKlemens Nanni
Set to split `hw.disknames' strings is neat, but functionn-wide means the bsort() invocation honours it, i.e. it'll output newlines not spaces. Break the one-liner into the same multi-line idom occuring elsewhere and contain IFS in the subshell that needs it. This was never visible due how the output of was consumed by the shell. The only visual, but otherwise effectless bug due to this appeared with the new disk encryption question double-quoting get_dkdevs() output, i.e. multiple disks printed across multiple lines; this yields one, as inteded. OK afresh1
2023-03-29Quote possible 'none' answer as part of help text after questionKlemens Nanni
'Default IPv4 route?' takes an IP or this word, not no IP at all. All other questions already quote their 'none', 'done', etc. answers. No behaviour change for autoinstall(8) files, questions end after the qestion mark and potential answers/help in parentheses comes after that.
2023-03-29Add missing semicolon to properly end switch caseKlemens Nanni
There since introduction, lucked out since it is the last case. No functional change.
2023-03-29Use character not block devices with dd(1) like the restKlemens Nanni
All other dd invocations in installer code, INSTALL.* instructions and dd(1) EXAMPLES use the disk's "raw device".
2023-03-29Unify variable usage in arm64 and armv7 md_installboot() with the restKlemens Nanni
`_disk' (and related variables) hold disk names as "sd0" so that all else can be constructed from it. Fix the only two offenders across distrib/ which put start the variable with "/dev/"; no functional change.
2023-03-28Properly disable informational dd(1) messages, retain errorsKlemens Nanni
Same as done for arm64 already
2023-03-27Silence informational messages from dd(1) when zeroing a disk's first 1MBKlemens Nanni
2023-03-27Revert r1.1235, "simplify final MAKEDEV call"Theo Buehler
While MAKEDEV accepts multiple args, it complains loudly on repeated args. It is silent when trying to create a single already existing device. This is probably a bug in MAKEDEV.
2023-03-26Simplify apple firmware copyingKlemens Nanni
Less duplicate code, easier to add new firmware. OK afresh1
2023-03-25pine64: Silence dd(1) properlyKlemens Nanni
We must not discard all errors, just disable informational messages. OK tb
2023-03-25simplify final MAKEDEV callKlemens Nanni
No need to loop here, the script takes multiple args. OK tb afresh1
2023-03-19syncTheo de Raadt
2023-03-16Update for 7.3.Miod Vallat
2023-03-16syncTheo Buehler
2023-03-14syncTheo de Raadt
2023-03-13syncTheo de Raadt
2023-03-10Remove unused make variables FSTYPE (=install360) and FSDISKTYPEKenneth R Westerback
(=mini34). Preparatory to removing some obsolete/unused disktab entries.
2023-03-10syncTheo Buehler
2023-03-10Fix error on installer abort/exitKlemens Nanni
^C during questiong yields /install: /tmp/cppid: cannot open $(<) input The trap handler must first test existence, then read the PID file. Quote like other PID file constructs in install.sub do. Use newlines to make the trap function readable. OK miod
2023-03-09remove obsolete libLLVM.so.[0-6].0 during upgradeChristian Weisgerber
ok kn@ deraadt@
2023-03-08Treat WEP like WPA: only offer if supportedKlemens Nanni
WEP does not work with our bwfm(4) and it shows: Which network interface do you wish to configure? (or 'done') [bse0] bwfm0 ifconfig: SIOCS80211NWKEY: Operation not supported by device Access point? (ESSID, 'any', list# or '?') [any] 2 Security protocol? (O)pen, (W)EP, WPA-(P)SK [O] Handle the error and disable (W)EP unless the driver has it. No objections from anyone.
2023-03-08Delete obsolete /* ARGSUSED */ lint comments.Philip Guenther
ok miod@ millert@
2023-03-07Use "installboot -p"; tested by/OK miodKlemens Nanni
2023-03-07Initial support for guided disk encryptionKlemens Nanni
One new question to cover the most common use case, such that manual setup in (S)hell or '!' prior to install is no longer required: Encrypt the root disk? (disk, 'no' or '?' for details) [no] ? Create a passphrase protected CRYPTO softraid volume to be used as root disk. Available disks are: sd0. Encrypt the root disk? (disk, 'no' or '?' for details) [no] Use of keydisk or different disciplines are not covered. Only asked in interactive installations; no autoinstall(8) or upgrades. Only reachable on i386, amd64, sparc64 and riscv64 for now (arm64 WIP). Tested by cheloha naddy and a few users Feedback from cheloha deraadt claudio OK cheloha "get it in now" deraadt
2023-03-06syncTheo de Raadt
2023-03-04syncTheo de Raadt
2023-03-02syncTheo de Raadt
2023-02-28+syncStuart Henderson
2023-02-21Have disk and string list helpers print trailing newlins consistentlyKlemens Nanni
In practise, omitting \n is pointless in get_*devs*(), addel() and rmel() as they are all all used in such a way that the shell always ensures a trailing \n anyway. (This might have been needed with the old recursive bsort(), but not now.) The one exception being the case of a ramdisk with no disks, which revealed \n mishandling in the root disk question where it ought to print "none" instead of an empty list of available disks (since inception in r1.1114): Available disks are: . Which disk is the root disk? ('?' for details) ? OK afresh1
2023-02-21syncTheo de Raadt
2023-02-21syncTheo de Raadt
2023-02-21Don't install DebugWrap.1 manpageAndrew Fresh
It's from a test file and should never have been installed. Noticed by xse in #openbsd on libera.chat
2023-02-20Disable strict bourne shell mode to get ksh behaviour in (S)hellKlemens Nanni
Enable features like arithmatic expression and thus make the debug aid `FUNCS_ONLY=1 . /install.sub' work in those prompts. '!' answers spawn their own ksh process, but (S)hell drops into /.profile sourced by /bin/sh executed by init(8), i.e. a korn shell defaulting to strict bourne shell mode. Shell options in this interactive parent shell do not effect install.sub aka. /install, /autoinstall and /upgrade as it is executed in a child. OK afresh1
2023-02-19Improve media disk question defaultKlemens Nanni
Sets on an unmounted disk partition are most likely to be on install media, e.g. CD or USB stick. Default 'Which disk contains the install media?' to the first disk that is a) not the root disk and b) not a disk with softraid chunks (hosting the root disk, for example). This makes it point at the right disk in most setups. All disks remain valid answers, this is only about the default. OK afresh1
2023-02-19+openbsd-74-syspatch.pubRobert Nagy