summaryrefslogtreecommitdiff
path: root/distrib/macppc/ramdisk
AgeCommit message (Collapse)Author
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-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-03-27Silence informational messages from dd(1) when zeroing a disk's first 1MBKlemens Nanni
2022-09-11Use installboot -p in install.md for macppc, powerpc64George Koehler
ok kn@
2022-08-31Denote possible answers in the usual mannerKlemens Nanni
OK miod
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-14Use fdisk -b to create the desired 1MB MSDOS boot partitionKenneth R Westerback
rather than relying on /usr/mdec/mbr. Tested by tobhe@
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-10-04Add firmwares for rsu(4), rtwn(4), and urtwn(4) drivers.Kevin Lo
ok deraadt@
2021-08-29new installboot will sometimes reuse the existing msdos boot partition insteadTheo de Raadt
of running newfs_msdos, so fsck_msdos gets run behind the scenes. A few architectures were missing this binary on their install media noticed by sthen
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-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-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-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-04-02use crunchgen -M on macppc; fixes build with clanggkoehler
ok deraadt@
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-02bsd.tbxi can be found in DESTDIR, rather than a excessively long objTheo de Raadt
reacharound
2019-05-01verbose mkhybrid was never needed on these archTheo de Raadt
2019-04-30repair more trivial differencesTheo de Raadt
2019-04-30rm is in /bin, no need to specifyTheo de Raadt
2019-04-30Every Makefile on every architecture had deviated in unique ways.Theo de Raadt
Eliminate many more differences. When it makes sense, build bsd.rd and miniroot/ramdisk.fs and cd.iso in the same directory. More steps coming after this..
2019-04-29TOPDIR and TOP are not neccessary.Theo de Raadt
2019-04-29remove the abstraction REV on top of abstraction OSrev which is alwaysTheo de Raadt
the sme.
2019-04-28CBIN variable is also pointless, it is always "instbin". Rather thanTheo de Raadt
having two mysterious names, let's settle on one.
2019-04-28the BSD_RD variable is pointlessTheo de Raadt
2019-04-28Use new vnconfig vnd-auto-allocate mode. Resolve some variation betweenTheo de Raadt
architectures, and start removing some crazy junk that has collected over the years. Being tested on all architectures... ok various people.
2019-04-05Use new rdsetroot.Theo de Raadt
2018-03-21trim cert.pem on all arches that install it. use the installed file fromStuart Henderson
DESTDIR rather than reaching around in src. ok deraadt
2017-12-01In the macppc installer, switch the default answer for the partitionStefan Sperling
table question from "HFS" to "MBR". Most people will want to run OpenBSD exclusively on such machines these days. ok kettenis@
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-08-13strip .SUNW_ctf in the remaining strip invocationsJasper Lievisse Adriaanse
broke amd64/ramdisk_cd as it no longer fit; spotted by jsg@ ok deraadt@ mpi@
2017-07-28DEFAULTSETS, SANESETS and THESETS are set in the install.md scriptsRobert Peichaer
according to the same logic for all architectures but sgi. Consolidate setting them in one place in install.sub and incorporate the sgi specific MDSETS and MDSANESETS. Introduce MDSANESETS complementing MDSETS which makes the construction of DEFAULTSETS, THESETS and SANESETS clearer in install.sub. While here, adjust the comment about how MDSETS used now. OK deraadt@
2017-07-08hook up slaacd to the installer on media where we have INET6Florian Obser
2017-01-22Whitespaces ...Robert Peichaer
2016-12-30Install cert.pem + ftp(1) binary that supports SSL, so the install scriptTheo de Raadt
can perform https fetches. While non-critical for sets (which are verified using signify), it is an uplift for communication towards the ftp.openbsd.org cgi which provides mirror proposals, entropy seeds, and current time. [The install script changes are not included in this commit] ok beck jsing rpe
2016-11-30Use makefs to build bsd.rd on armv7 and macppc.Martin Natano
ok deraadt
2016-10-14Use new kernel compile method for ramdisks, de-escalating to $BUILDUSERTheo de Raadt
as required. much help from natano and tb.
2016-09-17ping6(8) is now a hardlink to ping(8).Florian Obser
The instbin stuff looks good to deraadt@
2016-09-13Provide a stripped down group file for the install media.Robert Peichaer
Saves precious 896 bytes as a side effect. OK deraadt
2016-09-04Move files created by root during install/upgrade in a subdir ofRobert Peichaer
/tmp with proper permissions so that unprivileged programs can not tamper with them. positive feedback from deraadt OK halex
2016-09-04Move files created by root during install/upgrade in a subdir ofRobert Peichaer
/tmp with proper permissions so that unprivileged programs can not tamper with them. positive feedback from deraadt OK halex
2016-09-03Enable a stripped down version of doas(1) on the install media.Robert Peichaer
OK halex, tb, deraadt
2016-04-02- merge install.sh into install.sub as do_install()Robert Peichaer
- merge upgrade.sh into install.sub as do_upgrade() - delete install.sh and upgrade.sh - make install.sub executable - turn install and upgrade into symbolic links to install.sub - add autoinstall symbolic link to install.sub - change dot.profile to use these symlinks - introduce a -m option to set MODE in install.sub - alternativly set MODE and AUTO depending on PROGNAME - execute the do_{install,upgrade) functions depending on $MODE OK halex@, krw@ 'go for it' deraadt@
2016-02-23In the great pdisk churn we lost a pdisk pecularity in disk nameKenneth R Westerback
handling. "pdisk -l /dev/wd0c" used to work as well as "pdisk -l /dev/rwd0c". The new, more fdisk-like, code does not accept the former. Adjust the install scripts to eliminate the use of "/dev/wd0c" constructs and, like fdisk, simply use 'wd0'. Fixes macppc installs to HFS partitioned disks. Discovered and diff by rpe@. ok rpe@ deraadt@