summaryrefslogtreecommitdiff
path: root/distrib
AgeCommit message (Collapse)Author
2022-10-10Discard stdout/err only where needed in check_unattendedupgrade()Klemens Nanni
We should be fine silencing only the test condition which produces legit output and warnings. All else produces no output and should not error out; if it does, those warnings should be printed and fixed. Feedback OK halex
2022-10-10consistently use IPv4/IPv6Jonathan Gray
2022-10-07syncTheo de Raadt
2022-10-05Get rid of useless/confusing subshellKlemens Nanni
This function's style is a bit off: it wraps the body in a subshell to discard all stdout/err at once, but still uses return inside it. 1. A command list (using {}) would be enough here as it groups like a subshell but avoids spawning another shell; 2. discarding stdout/err at the end of an if block works the same (effecting both condition and body) and saves one level of indent; 3. return inside a subshell inside a function does NOT return from the function but merely exits the subshell; this is easily misread. Saving a fork and indent and improving readability boils down to this (cvs diff -wU1): |@@ -3320,3 +3317,2 @@ check_unattendedupgrade() { | _d=${_d%% *} |- ( | if [[ -n $_d ]]; then |@@ -3331,5 +3327,5 @@ check_unattendedupgrade() { | rm -f /dev/{r,}$_d? |- fi |+ fi >/dev/null 2>&1 |+ | return $_rc |- ) > /dev/null 2>&1 | } OK halex
2022-10-04Replace temporary file with variableKlemens Nanni
On supported -release systems, syspatch(8) -c is run from rc.firsttime(8) and the list of patches it pretty-printed if non-empty. -c output fits into a shell variable, not needing a temporary file, which is also what usr.sbin/syspatch/syspatch.sh does internally. OK millert
2022-10-04sh(1) is not make(1), use newlines inside double quotesKlemens Nanni
sh(1) happily accepts newlines inside double quotes just like in scripts: $ sh -c "echo foo echo bar" foo bar So no need to squash things into a single line as usually done inside make targets where each makefile line is considered its own script unless continued with trailing backslashes. OK millert
2022-10-04syncTheo de Raadt
2022-09-27Avoid escaping inside here documentsKlemens Nanni
The delimiter can be quoted (single or double) to disable parameter, command and arithmetic expansion inside the here document: $ cat <<__EOT echo $(echo foo) __EOT echo foo $ cat <<'__EOT' echo $(echo foo) __EOT echo $(echo foo) Do the latter to be able to write the here document/file content exactly as it would end up in output/rc.firsttime, making it easier to read. To be more consistent and explicit, switch the remaining here documents with pure plain text (no shell expansion, etc.) to quoted delimiters. OK millert
2022-09-27simpler ftplist[0-9].o.o removalKlemens Nanni
We read /tmp/i/hosts line-wise to fill /mnt/etc/hosts and remove the tmp file immediately afterwards, so just skip ftplist entries inside the loop with a slightly easier to read ksh pattern rather than purge the tmp file up-front with sed(1). This is also a tiny bit more robust should the ftplist entries ever be added with a tab as separator instead of a space and/or an alias since the sed one-liner hardcodes a single space and expects no alias whereas ksh's read takes any amount of whitespace between _addr and _hn while not caring about optional aliases. Comment is obvious so zap it. OK millert
2022-09-26Hide error messages while extracting Apple firmware. Depending on theMark Kettenis
model there might be no firmware and we want to avoid confusing users with WARNING messages about patterns that were not matched. ok deraadt@
2022-09-19Symlink chosen time zone file to /etc/localtime so that we don't needFlorian Obser
to use a time zone path that's not relative to /usr/share/zoneinfo. Hopefully we can limit tzset(3) to only look at zone info files in /usr/share/zoneinfo, soon. OK millert, deraadt
2022-09-19adjust notes for linker set changeJonathan Gray
ok miod@ deraadt@
2022-09-19update set sizesJonathan Gray
2022-09-14syncTheo de Raadt
2022-09-12spellingJonathan Gray
2022-09-11syncTheo Buehler
2022-09-11Replace "echo 'w\ny\nq\n' | disklabel -E" with equivalentKenneth R Westerback
'disklabel -dw'. Tested & ok visa@
2022-09-11Replace "echo 'w\ny\nq\n' | disklabel -E" with equivalentKenneth R Westerback
'disklabel -dw'. Tested & ok miod@
2022-09-11Use installboot -p in install.md for macppc, powerpc64George Koehler
ok kn@
2022-09-09syncMoritz Buhl
2022-09-09syncStuart Henderson
2022-09-07sync with arm64.htmlJonathan Gray
2022-09-07Mention bsd.rd and install72.imgKlemens Nanni
OK miod jsg
2022-09-05syncGeorge Koehler
2022-09-05syncStuart Henderson
2022-09-03Keep _fw2 in local md_consoleinfo() scopeKlemens Nanni
Missed in previous OK kettenis
2022-09-03Copy Apple touchpad firmware on machines that need it.Mark Kettenis
ok kn@, deraadt@
2022-09-03sync with arm64.htmlJonathan Gray
2022-09-02Nuke TEMPLATE variable and just do it, like amd64/ramdisk_cd does.Kenneth R Westerback
ok deraadt@
2022-09-02Now that boot blocks are able to parse ufs2, there is no need to force ufs1Miod Vallat
for the / file system. Brings landisk into the wonderful world of y2k38 compliance.
2022-09-01syncStuart Henderson
2022-08-31Denote possible answers in the usual mannerKlemens Nanni
OK miod
2022-08-31Make installboot on landisk aware of a possible MBR on the disk, and in thisMiod Vallat
case install the first level bootstrap at the beginning of the of the wd0a filesystem, rather than at the beginning of the disk. Both locations work but the previous behaviour overwriting an existing MBR is a violation of POLA. tweaks & ok krw@
2022-08-31Sync the supported hardware list with armv7.html.Frederic Cambus
OK jsg@
2022-08-30Nuke disktab.h references in preparation for nuking disktab.h.Kenneth R Westerback
disktab.h has not been used or useful for a looooong time. Detailed historical research by jsg@. ok jsg@ deraadt@
2022-08-29Mention installation using the framebuffer console on armv7.Frederic Cambus
It is possible to install OpenBSD/armv7 using the framebuffer console on systems supporting the simplefb(4) driver, such as the Cubieboard2. OK miod@
2022-08-29syncJonathan Gray
2022-08-24Forgotten to commit as part ofKlemens Nanni
---------------------------- /usr/src/usr.sbin/installboot/Makefile revision 1.25 date: 2022/08/15 17:06:43; author: kn; state: Exp; lines: +5 -1; commitid: 36Ayh2RViNOotnQJ; Add initial piece for softraid(4) support on arm64 arm64 is the only currently supported OpenBSD platform which both a) supports booting off root on softraid(4) (kernel and bootloader) and b) is an EFI platform (as far as installboot(8) is concerned). Currently, installboot treats softraid root volumes as regular devices, ignoring ignores chunk devices completely. Teach installboot the first bits of softraid support for EFI: installing the single-stage boot loader on chunks rather than the volume. Copy over sparc64's softraid stage-1 code as-is and make its stage-2 a NOOP: # ./obj/installboot -v sd4 Using / as root installing bootstrap on /dev/rsd4c using first-stage /usr/mdec/BOOTAA64.EFI sd4: softraid volume with 1 disk(s) sd0a: installing boot blocks on /dev/rsd0c copying /usr/mdec/BOOTAA64.EFI to /tmp/installboot.KuBD4zkfpM/efi/boot/bootaa64.efi writing /tmp/installboot.KuBD4zkfpM/efi/boot/startup.nsh arm64 miniroot fits and boots with this. OK stsp As of now, EFI partitions must still be created manually as installboot's '-p' does not support softraid at all (next missing piece for root on softraid on arm64 installations to work out-of-the-box). ---------------------------- Reminded by miod, thanks
2022-08-23sync (/var/agentx)Stuart Henderson
2022-08-23Remove unused partition type patterns from disk_has() helperKlemens Nanni
softraid(4) patterns were never used since import in 2015 and only one out of APFS patterns are used. Feedback on APFS krw OK krw
2022-08-15syncTheo de Raadt
2022-08-13syncTheo de Raadt
2022-08-10Fix Gdium boot setup.Miod Vallat
2022-08-09syncTheo de Raadt
2022-08-08syncTheo de Raadt
2022-08-08syncTheo de Raadt
2022-08-07Modern EFI systems tend to want larger EFI Sys partitions, they playTheo de Raadt
games in there, in particular during BIOS upgrade sequences. ok krw kettenis dv
2022-08-07syncTheo de Raadt
2022-08-04add openbsd-73-syspatch.pub to the setsRobert Nagy
2022-07-30syncStuart Henderson