summaryrefslogtreecommitdiff
path: root/distrib/special
AgeCommit message (Collapse)Author
2024-10-16a.out is no longer the commonly encountered binary file format, the world hasMiod Vallat
moved to ELF. Move the a.out specific defines and macros, but the MID_xxx values, from <sys/exec.h> to <a.out.h>, and update the few userland binaries which really need these defines (i.e. boot-related tools for old architectures) to explicitly include <a.out.h> when needed. "Fine" deraadt@
2024-06-30we don't need the NOBYFOUR space-savings option anymore, that codepathTheo de Raadt
was replaced a while ago. ok tb
2024-06-02Due to growth we can't allow -fret-clean behaviour in distrib/special,Theo de Raadt
so use COPTS+=-fno-ret-clean
2024-02-03Add new amd64-only sysctl machdep.retpoline which says whether the cpuTheo de Raadt
requires retpoline. If 0, we should do everything in our power to avoid pure retpoline (replacing it with a simple thunk where possible), because by it's nature retpoline converts an indirect-branch into a direct branch (push to stack & ret), and therefore it is an IBT (endbr64) bypass method. This sysctl leverages guenther's decision-making logic in the kernel, which already uses codepatch to fix the kernel retpoline thunk. In my opinion, the retpoline-using logic really should be flipped; ROP execution bypassing IBT to re-enter regular control flow is more dangerous than spectre. ok kettenis
2023-09-04Save some space on the ramdisks, actually use -DSMALLJeremie Courreges-Anglas
This disables the helpers that recognize compressed archives when the user failed to use the proper flag/command. Those are not terribly useful on the ramdisks and the fallback behavior is sane. Went through a make release Just In Case(tm). Spotted by caspar@, ok millert@ sthen@ caspar@
2023-08-14zap useless MAN bitsKlemens Nanni
distrib/special/Makefile.inc sets MAN= NOMAN=1, thus setting MAN* in distrib/special/*/Makefile is useless; no manuals in the installer. disklabel(8) and fdisk(8) remain exceptions with their NOMAN handling as they embed their manual for use with interactive commands. OK miod
2023-07-25stop building unused dhclientKlemens Nanni
replaced by dhcpleased in 2021, no install media ships dhclient anymore. OK florian
2023-07-23avoid MAIL* environment variables to save a few bytes in install mediaKlemens Nanni
ksh(1) MAIL, MAILCHECK, MAILPATH mbox handling is useless in the installer. OK miod deraadt
2023-07-23use SMALL to save a shave mfs and tmpfs bits in install mediaKlemens Nanni
RAMDISK* has MFS and TMPFS disabled, so the installer can't use them. OK deraadt
2023-05-22fix usage, name arg is optionalKlemens Nanni
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-03-08Delete obsolete /* ARGSUSED */ lint comments.Philip Guenther
ok miod@ millert@
2023-02-08Omit version in SMALL ksh buildsKlemens Nanni
No need for KSH_VERSION and its PS1 esacape sequences in installer shells. Save some bits and clean up what(1) output on ramdisk kernels. OK deraadt
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-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-05-23Neither macppc nor the retired loongson have any remaining usefulKenneth R Westerback
information in /usr/mdec/mbr. Stop telling fdisk(8) that macppc and loongson HAS_MBR, and don't bother including the file in the base set. macppc build/install tests and ok gkoehler@ loongson is gone deraadt@
2022-02-03Use installboot(8) in install.md of riscv64.Visa Hankala
OK kettenis@ deraadt@
2022-02-03Rename armv7_installboot.c to efi_installboot.c.Visa Hankala
The code is common to EFI platforms, not specific to armv7. Suggested by kettenis@
2021-09-21The cflags -DSUN_CYLCHECK -DSUN_AAT0 were removed accidently. PutAlexander Bluhm
them back in special like in the main disklabel Makefile. OK deraadt@
2021-06-24trim usage to match the man page;Jason McIntyre
remove -DSEEALSO, as suggested by millert ok millert
2021-06-18special is SMALLFlorian Obser
2021-06-18special is SMALLFlorian Obser
2021-06-04machine/cpu.h requires a pre-include of sys/time.hTheo de Raadt
2021-06-03Enable machdep.compatible on platforms that have it.Mark Kettenis
ok deraadt@
2021-05-19enter new dirsTheo de Raadt
2021-05-19correct .PATHTheo de Raadt
2021-05-19resolvd and dhcpleased if ramdisks need themTheo de Raadt
2021-03-20SKIP_PROPOSAL has been ripped out in 2019kn
2021-03-10Build install media with -fno-asynchronous-unwind-tables to furtherJonathan Gray
reduce size. Allows a clang 11 amd64 release to complete without overflowing the floppy image. ok kettenis@ deraadt@
2021-02-16make use of getline(3) in ftp(1)Christian Weisgerber
Replace fparseln(3) with getline(3). This removes the only use of libutil.a(fparseln.o) from the ramdisk. Replace a complicated fgetln(3) idiom with the much simpler getline(3). ok jca@
2020-12-22Destroy the mutex in tls_config objects when tls_config_free is called.Brent Cook
Add a stub for pthread_mutex_destroy() for installers. ok tb@
2020-07-21unify with base eeprom MakefileTheo de Raadt
2020-07-21unify and cleanup -DSEEALSO chunks in both disklabel MakefilesTheo de Raadt
2020-07-20build powerpc version, alsoTheo de Raadt
2020-06-28reduce differences from src/*/installboot/MakefileTheo de Raadt
2020-06-27convert macppc, octeon, and loongson to use MI installboot, removingTheo de Raadt
special case scripting in install.md. (macppc still requires manual steps for HFS bootmode) tested by krw, visa, gkoehler
2020-01-16Usually, -width Fl (which is 10n) is too wide and hence ugly.Ingo Schwarze
Change several instances, most of them to the usual -width Ds.
2019-12-21a few depend:-related thingies that were still in.Marc Espie
okay millert@, tb@
2019-11-11CLIENT_PATH died in 2014Theo de Raadt
2019-10-21keep in sync with regular doas. req by millertTed Unangst
2019-06-28When system calls indicate an error they return -1, not some arbitraryTheo de Raadt
value < 0. errno is only updated in this case. Change all (most?) callers of syscalls to follow this better, and let's see if this strictness helps us in the future.
2019-05-16Revert suni'ls ftp rewrite for now.Florian Obser
We are juggling too many things at the moment and we can't deal with the differences in behaviour right now.
2019-05-13Add tee(1) to the ramdisk filesystem and use it to provide both aChristian Weisgerber
moving progress bar during auto upgrade/install and a clean log afterwards. ok deraadt@
2019-05-12Move us from old ftp(1) to Sunil's new ftp(1). The necessary modificationskmos
have been made to make it behave. Any new misbehaviors can be fixed in tree. OK florian@ deraadt@ "Have you committed ftp yet?"
2019-05-11Make bsd.rd compile after socppc removal.Kenneth R Westerback
2019-05-11socppc makes an extended visit to the bigbucket.Theo de Raadt
ok kettenis
2019-01-25I am retiring my old email address; replace it with my OpenBSD one.Todd C. Miller
2018-11-11Add automatic threading initialization for libcrypto.Brent Cook
This implements automatic thread support initialization in libcrypto. This does not remove any functions from the ABI, but does turn them into no-ops. Stub implementations of pthread_mutex_(init|lock|unlock) are provided for ramdisks. This does not implement the new OpenSSL 1.1 thread API internally, keeping the original CRYTPO_lock / CRYPTO_add_lock functions for library locking. For -portable, crypto_lock.c can be reimplemented with OS-specific primitives as needed. ok beck@, tb@, looks sane guenther@
2018-10-18Ensure that the install media are built with a consistent set ofChristian Weisgerber
compiler flags. Pass DIST_CFLAGS from the crunchgen-generated .mk file. Compile the install media with -fno-unwind-tables to avoid emitting .eh_frame sections. This saves substantial space on amd64. with/ok kettenis@