summaryrefslogtreecommitdiff
path: root/distrib
AgeCommit message (Collapse)Author
2022-05-16use a safer idiom for reading pid from file before killingTheo de Raadt
pointed out by kn, tested in snaps for a week
2022-05-09delete ftplist2 (the old ftplist IP address). We've talked loudly about aTheo de Raadt
more distributed way of doing something smart and failovery, but this annotation in the script isn't helping.
2022-05-09In a couple places, use set -m to cause subshells to gain processTheo de Raadt
groups, and then kill the process group instead of the ksh pid. Some of these processes contain sleep, which kept running, and in some cases retained stderr (or other fd) and confused parent processes. In some cases, add manual wait. Finally, store the pid (nee pgrp) in /tmp/xxpid files rather than variables, since there is a bit of recursion and sub-shell confusion happening, and we have confused ourselves at least twice with these pid variables not being in scope. ok beck, with florian, ok kn In snaps for almost a week. A few more tweaks may come in a while.
2022-05-08Software we import from outside tends to bloat faster than software weTheo de Raadt
write ourselves. This is a sad fact. libz just did this to us, again. I don't care to hunt for reasons or justifications because it is an endless battle. Therefore this tiny (floppy) media can no longer include the TZ files. Because some other architectures also have tight media, we have an install script mechanism to cope with this -- when they are missing, it asks the timezone question later, after the base set is installed with the files)
2022-05-08syncTheo Buehler
2022-05-08syncTheo Buehler
2022-05-06syncTheo Buehler
2022-05-06syncTheo de Raadt
2022-05-05Fix watchdog in the installer.Florian Obser
We only had one watchdog running that triggered after 30 minutes. If an unattended upgrade (e.g. started by sysupgrade(8)) took longer than this in total, the machine would reboot half way through an upgrade. The intention was that the watchdog would be reset after each set download and after each set installation. But this never worked correctly because the actual upgrade ran in a sub-shell and WDPID was not visible. To fix this we first need to export WDPID to make it visible in the sub-shell. Then reset_watchdog was guarded by $UU && reset_watchdog, but UU wasn't visible either. But we can't export it because we would enter a loop. We can just use the fact that WDPID is not empty to restart the watchdog. Lastly the watchdog process would keep stderr and stdout open. This made the tee(1) hang that is collecting the autoupgrade log that is mailed to root. As a simplification, we don't need to run the watchdog as a co-process, we don't want to communicate with it, we can just run it in the background. Problem reported by stsp With & OK deraadt OK millert
2022-05-03Rework display of partition types, removing unnecessary trailingKenneth R Westerback
blanks in the arrays of type names, simplifying the code and making better use of printf(). Along the way discover that "APFS Recovery" fits, so nuke the annoying "AFPS Recovry" contraction. No intentional functional change. Some "APFS Recovery" nits pointed out by jsg@
2022-05-01syncTheo de Raadt
2022-04-29syncJonathan Gray
2022-04-22checking for /mnt and /root in is_rootdisk() is excessively zealous,Theo de Raadt
the remaining directory list is good enough ok sthen
2022-04-20syncTheo de Raadt
2022-04-17syncTheo de Raadt
2022-04-07Mention Allwinner H6Kevin Lo
ok jsg@
2022-04-06Add instructions on how to prepare Apple arm64 machines for installingMark Kettenis
OpenBSD.
2022-04-05syncTheo de Raadt
2022-03-31on-ramdisk firmware extraction can overflow the install-media directoryTheo de Raadt
because of the the tar+mv combination. Purge both path variations better, so that an interrupted install can be restarted. ok miod abieber kettenis
2022-03-28Running getty(8) on /dev/console when using a glass console interferes withMark Kettenis
running Xorg in a way that isn't fully understood. So change the arm64 install.md to munge /etc/ttys to enable the ttyC0 entry if we detect that wsdisplay0 is the console and make sure the code in install.sub that does the actual munging disables the console entry before enabling another entry to prevent running two getty(8) processes on (effectively) the same device. ok deraadt@
2022-03-26grow i386 mediaTheo de Raadt
2022-03-24The installer no longer runs dhclient(8).Kenneth R Westerback
New verbiage suggested by deraadt@.
2022-03-24syncTheo Buehler
2022-03-22Polish the bits that copy the firmware in place on Apple systems a bit more.Mark Kettenis
This mostly adds some checks to make sure that if for some reason the firmware files aren't present on the EFI System Partition the users doesn't see several error messages. ok deraadt@
2022-03-21Remove unused files which serve no purpose in OpenBSD; with and ok jsg@Miod Vallat
2022-03-20syncStuart Henderson
2022-03-18add list of apple machines from arm64.htmlJonathan Gray
apple specific install instructions still needed
2022-03-15syncStuart Henderson
2022-03-14There is no objectionable-C compiler in the comp set anymore.Miod Vallat
2022-03-13Now that fdisk(8) retains the EFI System Partition on Apple systems, skipMark Kettenis
formatting the partition such that its contents actually survive. ok krw@
2022-03-10Provide atomic load and store functions for int and long. FreeBSDAlexander Bluhm
also uses these names. This implements a complete interface for atomic operations, such functions can be used for every access. They provide compiler barriers, but no CPU memory barriers. This is consistent with our other atomic operations. OK mvs@ visa@
2022-03-08syncTheo de Raadt
2022-03-07grow diskspaceTheo de Raadt
2022-03-06Simple move firmware subdirectory in place as suggested by deraadt@Mark Kettenis
Improved chicken scratches from tb@
2022-03-06Fetch bwfm(4) firmware from the EFI System Partition on Apple SiliconMark Kettenis
devices and copy it into the right directory on the ramdisk such that it can be used in the installer. And copy it in place at the end of the install procedure such that it is available for use in the newly installed system. ok deraadt@
2022-03-02Document u-boot workaround required for unattended boot of edgerouter 6p.Stefan Sperling
ok afresh1@ kevlo@, who both ran into the same issue
2022-02-23syncTheo de Raadt
2022-02-22syncTheo de Raadt
2022-02-21syncTheo de Raadt
2022-02-20syncTheo de Raadt
2022-02-20syncTheo de Raadt
2022-02-19Use installboot(8) in install.md of armv7.Visa Hankala
OK kettenis@ deraadt@
2022-02-18syncTheo de Raadt
2022-02-16syncTheo de Raadt
2022-02-16Add libclang_rt.ubsan_minimal to comp setGreg Steuck
ok jca@
2022-02-14Use fdisk -b to create the desired 1MB MSDOS boot partitionKenneth R Westerback
rather than relying on /usr/mdec/mbr. Tested by tobhe@
2022-02-13syncStuart Henderson
2022-02-10Use fdisk's -b to create boot partitions instead of -e scripts.Kenneth R Westerback
Build, boot and install tested by bluhm@ ok bluhm@
2022-02-10syncTheo de Raadt
2022-02-10Use fdisk's -b to create boot partitions instead of -e scripts.Kenneth R Westerback
Build, boot and install tested by bluhm@ ok bluhm@