summaryrefslogtreecommitdiff
path: root/distrib/amd64
AgeCommit message (Collapse)Author
2024-06-09include BUILDINFO file in the iso/img files; requested by florian for ↵Theo de Raadt
sysupgrade changes
2024-06-02Grow amd64 install*.{iso,img} because -fret-clean *.tgz sets are a tinyTheo de Raadt
bit bigger.
2023-12-15For amd64 cdXX.iso and installXX.iso, create an EFI system partition imageJonathan Matthew
containing the EFI boot loaders and install it as an El Torito boot image, making the install CDs bootable in EFI mode. "looks great" deraadt@ ok mlarkin@
2023-10-11Remove dead CRYPTOCHUNK usageKlemens Nanni
install.sub r1.1245 "Ask for disk crypto after root disk question" got rid of global CRYPTO* variables; no functional change.
2023-06-11No need to check for DTYPE_FLOPPY. If there is neither a GPT norKenneth R Westerback
an MBR then install biosboot in sector 0. Without the check for DTYPE_FLOPPY there is no need for FSDISKTYPE=floppy3 and therefore flip the last two Makefiles to the "echo '/ *' | disklabel -wAT-" idiom. Feedback/fix from kn@
2023-05-26simplify yes/no answer handlingKlemens Nanni
ask_yn() returns 0/1 on yes/no, so use the shorter '|| skip' found in install.sub; no functional change. OK solene
2023-04-28Revert amd64/i386 floppy change. Missing diff to vnconfig brokeKenneth R Westerback
installboot'ing due to incorrect d_type (must be 'floppy' not 'vnd') in disklabel. Noticed by deraadt@ and sthen@
2023-04-28Move FSDISKTYPE uses from disklabel(8) invocations to vnconfig(8)Kenneth R Westerback
invocations, making the geometry information written to the disklabel a bit more logically related to the disktab information from whence it came. Also makes FSDISKTYPE usage consistent. Flip the disklabel(8) invocations to the "echo '/ *'" idiom to make it obvious that the desire is to create a single 'a' partition containing all free space. No intentional functional change. MBRs, disklabels and newfs outputs appear identical. reads good to kn@
2023-04-28Retire -E's "expert" mode. Introduced 23 years ago to avoidKenneth R Westerback
confusing users with FFS attributes that only experts should fiddle with. Actual use has withered away with functionality rendered moot or moved elsewhere. '-e' remains for the truly obscure corner cases. Simply excise the code for now to see if hidden users/uses are exposed. Further simplifications are possible if no such users/uses surface. ok with sthen@ millert@ kn@ otto@
2023-04-28Add support for RTL8188FTV chip to urtwn(4).Kevin Lo
Tested with Comfast CF-WU710N v4. "go ahead" deraadt@ OK stsp@
2023-04-26Treat crypto disk like the root disk, both are boot disksKlemens Nanni
Chosing an existing OpenBSD partition on GPT during disk setup requires an existing EFI Sys partition (the installer does not create it in thi case). With 'Encrypt the root disk?' answered postively, the crypto disk instead of the root disk becomes the boot disk. Extend the EFI Sys sanity check to both crypto and root disk, really asking "is this a boot disk?".
2023-04-26Don't rely on the disklabel defaults or a disktab entry's ba#/fa#Kenneth R Westerback
values for the block/fragment sizes that some install media need. Hoist the desired values into the newfs(8) invocations to make it obvious non-default values are required and what the values are. No functional change.
2023-04-25Delete now unused disklabel template files.Kenneth R Westerback
2023-04-24Replace the only two uses of disklabel template files with 'echo "/ *"'.Kenneth R Westerback
No functional change. ok kn@
2023-03-10Remove unused make variables FSTYPE (=install360) and FSDISKTYPEKenneth R Westerback
(=mini34). Preparatory to removing some obsolete/unused disktab entries.
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-02-06Add space after comma in MD "No * partition in *,try again." repliesKlemens Nanni
split across `echo -n' and `echo'. Those in single `echo' have it.
2022-11-14make the EFI partition quite large, like on arm64 x13s, because newer x86Theo de Raadt
((Lenovo in particular) firmware updating methods do the same -- placing a payload in there, so a small space won't do. ok kettenis
2022-09-02Nuke TEMPLATE variable and just do it, like amd64/ramdisk_cd does.Kenneth R Westerback
ok deraadt@
2022-03-07grow diskspaceTheo de Raadt
2021-11-13Use long filenames by default on FAT filesystemsKlemens Nanni
These days, 8.3 filenames are often a problem, filesystems containing firmware with long names must not truncate them -- it's also a sane default as portable file system between OSes, anyway. Altough undocumented in mount_msdos(8), the default for FAT32 already is to use long filenames: ever since its import from NetBSD in 1998. Previously, mount_msdos would ignore long filenames and default to short filenames unless a flag was used or long ones were found on the filesystem prior to mounting it. Just always mount with support for long filenames (unless `-s' is used). As various install media use FAT filesystems, adjust the remaining ones to also pass explicit mount option reflecting the previous default. OK deraadt
2021-11-11Make "config -e" work with ramdisk kernelsKlemens Nanni
amd64, alpha, i386 and macppc strip *all* symbols off the ramdisk bsd.rd (before compressing it) and thus break config(8)'s modification feature: $ gzcat bsd.rd > bsd.rd.raw $ config -e bsd.rd.raw ... config: failed to get first cfdata This is different from "boot> boot /bsd.rd -c" which sucessfully drops into UKC on all platforms regardless of stripping. Having needed "config -e" this on arm64 made me look into this for all platforms. Other platforms work because they don't strip these symbols. Tweak objcopy(1)'s stripping on amd64 and macppc to unbreak permanent modifications. I have no alpha or i386 to test, so these remain broken. macppc works without cranking media size. amd64 was cranked to the smallest possible size. OK deraadt
2021-11-07increase ramdisk space for another driverTheo de Raadt
2021-10-04Add firmwares for rsu(4), rtwn(4), and urtwn(4) drivers.Kevin Lo
ok deraadt@
2021-09-26'-g' no longer needs '-i'.Kenneth R Westerback
No functional change.
2021-07-26Pass make flags to kernel and lib buildskn
Running `make -j4' in /usr/src/distrib/amd64/ramdisk_cd/ et al. executes make(1) to both build the RAMDISK kernel and build libraries. Doing so does not propagate the flags specified to the ramdisk_cd invocation, which in turn means `-j4' for example is ignored and both kernel and libraries will not be built in parallel. Pass make(1)'s MFLAGS along to retain relevant flags; make is clever enough to separate flags, variable assignments and targets from each other and only pass along things to `MFLAGS' that'd make sense, i.e. `make -C. -j4 foo=bar' does *not* pass `-C.' to change directories. (can be easily tested with `make -p ... | grep MFLAGS'.) This makes hacking on ramdisks/the installer much faster, espescially since the `bsd' target does `make clean' and therefore builds a new kernel every time. OK deraadt
2021-07-18Remove hackery around /tmp/i/resolv.conf*. In particular "lookup file bind"Theo de Raadt
is required because of TLS servername for contacting ftp.openbsd.org, and there is no point doing that in resolv.conf.tail because it is no longer used. ok florian kn
2021-07-16Replace dhclient with dhcpleased/resolvd on the ramdisk.Florian Obser
OK deraadt who also helped making some space.
2021-07-01delete sbin/restoreTheo de Raadt
2021-02-14distrib: restore rdsetroot -x usage (extract the disk.fs image) on stripped ↵Sebastien Marie
bsd.rd It passes options to keep rd_root_size and rd_root_image symbols while stripping. These symbols are the ones used by rdsetroot to insert or extract disk image into RAMDISK. ok danj@ deraadt@
2021-02-14distrib: use ${MACHINE} instead of hardcoded valueSebastien Marie
ok deraadt@
2021-02-13distrib: remove .comment section systematicallySebastien Marie
remove this section as part of crunchgen generated commands. it avoids calling "strip -R .comment" for some but not all architectures. ok deraadt@ danj@
2021-02-13distrib: remove .SUNW_ctf only on kernelsSebastien Marie
the .SUNW_ctf section is added by ctfstrip(1), which is only used for kernels. ok deraadt@ danj@
2021-02-13distrib: merge "cp a b; strip b" to "objcopy -S a b"Sebastien Marie
ok deraadt@ danj@
2021-02-13distrib: remove duplicate strip(1) callsSebastien Marie
"strip -R section" command run "strip" (without option) as well. there is no need to call both. (binaries checked with sha1) original diff from danj@ ok deraadt@
2021-01-05distribute the gzip'd version of bsd.rd on platforms where we all bootTheo de Raadt
methods support it. if anyone finds a method which does not work, please speak up.
2020-09-15grow amd64 ramdisk_cd.......Theo de Raadt
2020-08-05MTREE is not usedTheo de Raadt
2020-08-03grow to cope with clang10Theo de Raadt
2020-06-08growthTheo de Raadt
2020-05-18Make ffs2 the default for newfs; change all calls to create e.g. floppyOtto Moerbeek
filesystems or ramdisks to use explicit -O 1; installer already does that. ok sthen@
2020-05-17Change install images called *.fs to *.img. These are UFS filesystem images,Theo de Raadt
but additionally have a bootblock in the first 8K (since UFS does not use that space). There are some UEFI direct-from-internet bootloaders that require the name *.img. So this makes things more convenient for those, while keeping it consistant in all architectures. ok kettenis beck kn
2020-03-02amd64 ramdisk does not support CD9660, so no use to have a cd(4).Otto Moerbeek
Makes room for upcoming FFS2 support for the installer. ok deraadt@
2019-11-15grow an install mediaTheo de Raadt
2019-06-08include mount_nfs on the amd64 ramdisk_cd, ok jca deraadtStuart Henderson
2019-06-07eliminate differences between all the list files as much asTheo de Raadt
possible, and remove the failed previous attempts at sharing in ./miniroot and ./ramdisk. maybe now that differences are eliminated we can start a new sharing effort? i dunno..
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-03Further removal of differences (using install instead of cp, sortingTheo de Raadt
chunks in a specified order, using a few variables, performing bsd.rd to bsd.gz conversion as similar as possible)
2019-05-01verbose mkhybrid was never needed on these archTheo de Raadt
2019-04-30step by step, more removal of differencesTheo de Raadt