summaryrefslogtreecommitdiff
path: root/distrib/special
AgeCommit message (Collapse)Author
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@
2018-09-13Unbreak ramdisks by catching up with the change to use the new libcStuart Henderson
uid_from_user() and gid_from_group() instead of the pax-specific functions in cache.c.
2018-06-25white spacesTheo de Raadt
2018-06-15Remove BACKWARDS flag here as well.Martijn van Duren
Reminded by tb@
2018-04-26Use <fcntl.h> instead of <sys/file.h> for open() and friends.Philip Guenther
Delete a bunch of unnecessary #includes and sort to match style(9) while doing the above cleanup. ok deraadt@ krw@
2018-03-19Add DEF_STRONG(pthread_self) to match libc and avoid duplicate definitionsPhilip Guenther
that lld is unhappy about ok jsg@ deraadt@
2018-03-15Add fake pthread_self and pthread_equal to libstubsBob Beck
ok kettenis@ jsing@ deraadt@ - "Exquisitly disgusting" guenther@
2018-03-08Add a stub for pthread_once, to permit libtls to use it.Bob Beck
discussed with guenther@, ok deraadt@
2018-02-18add include to silence compiler warning about a missing prototype forChristian Weisgerber
tolower() ok cheloha@ rob@ florian@
2018-02-10installer bits for RFC 7217 supportFlorian Obser
OK rpe, tb, naddy, sthen
2017-11-19add growfs(8) to ramdiskjob
Some resizing scenarios can be done from within single user mode, but resizing the root partition required you to bring your own growfs(8) binary into the ramdisk environment. This commit adds growfs(8) to the ramdisks (the ones that don't have space constraints) to simplify such operations. OK deraadt@
2017-10-17remove the remaining references to .depend files since nothing creates themChristian Weisgerber
any longer; ok espie@ deraadt@
2017-08-01Disable ksh VI-editing mode on the install media. We need the spaceTheo de Raadt
savings.
2017-07-25change -Os to -Oz all around the treeRobert Nagy
clang optimizes better for size with -Oz so use that as a default to avoid overflowing the ramdisk floppies. gcc now accepts -Oz as an alias for -Os. ok kettenis@
2017-07-08Unhook tables.c from Makefile.Kenneth R Westerback