1
0
mirror of https://github.com/openbsd/src.git synced 2025-01-10 06:47:55 -08:00
Commit Graph

210 Commits

Author SHA1 Message Date
deraadt
a284d5af97 convert macppc, octeon, and loongson to use MI installboot, removing
special case scripting in install.md.
(macppc still requires manual steps for HFS bootmode)
tested by krw, visa, gkoehler
2020-06-27 15:35:27 +00:00
gkoehler
048a499c3e use crunchgen -M on macppc; fixes build with clang
ok deraadt@
2020-04-02 19:30:00 +00:00
deraadt
b2c5e89128 eliminate differences between all the list files as much as
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-06-07 14:39:54 +00:00
naddy
9ff7454ddb Add tee(1) to the ramdisk filesystem and use it to provide both a
moving progress bar during auto upgrade/install and a clean log
afterwards.  ok deraadt@
2019-05-13 23:18:21 +00:00
deraadt
0e6c59ceb5 Further removal of differences (using install instead of cp, sorting
chunks in a specified order, using a few variables, performing bsd.rd
to bsd.gz conversion as similar as possible)
2019-05-03 20:03:57 +00:00
deraadt
f668e243d5 bsd.tbxi can be found in DESTDIR, rather than a excessively long obj
reacharound
2019-05-02 02:59:29 +00:00
deraadt
5602f3f873 verbose mkhybrid was never needed on these arch 2019-05-01 20:53:55 +00:00
deraadt
4d23fe49f8 repair more trivial differences 2019-04-30 23:25:19 +00:00
deraadt
03c1d9f766 rm is in /bin, no need to specify 2019-04-30 21:14:58 +00:00
deraadt
47fa51d500 Every Makefile on every architecture had deviated in unique ways.
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-30 17:46:00 +00:00
deraadt
cac5294d2b TOPDIR and TOP are not neccessary. 2019-04-29 15:56:23 +00:00
deraadt
88e2a9b1fe remove the abstraction REV on top of abstraction OSrev which is always
the sme.
2019-04-29 01:48:39 +00:00
deraadt
6a1b39a08e CBIN variable is also pointless, it is always "instbin". Rather than
having two mysterious names, let's settle on one.
2019-04-28 15:21:49 +00:00
deraadt
5d3a621055 the BSD_RD variable is pointless 2019-04-28 15:15:39 +00:00
deraadt
7b572f1f0e Use new vnconfig vnd-auto-allocate mode. Resolve some variation between
architectures, and start removing some crazy junk that has collected
over the years.  Being tested on all architectures...
ok various people.
2019-04-28 14:48:08 +00:00
deraadt
4a3b5ded2d Use new rdsetroot. 2019-04-05 21:08:00 +00:00
sthen
813d96eae2 trim cert.pem on all arches that install it. use the installed file from
DESTDIR rather than reaching around in src.  ok deraadt
2018-03-21 19:16:06 +00:00
stsp
464db8a21a In the macppc installer, switch the default answer for the partition
table question from "HFS" to "MBR". Most people will want to run
OpenBSD exclusively on such machines these days.
ok kettenis@
2017-12-01 18:13:48 +00:00
job
14c88d5962 add growfs(8) to ramdisk
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-11-19 12:11:53 +00:00
jasper
18c6f78203 strip .SUNW_ctf in the remaining strip invocations
broke amd64/ramdisk_cd as it no longer fit; spotted by jsg@
ok deraadt@ mpi@
2017-08-13 15:41:30 +00:00
rpe
c69fddd1ec DEFAULTSETS, SANESETS and THESETS are set in the install.md scripts
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-28 18:15:44 +00:00
florian
f99f61a254 hook up slaacd to the installer on media where we have INET6 2017-07-08 15:42:46 +00:00
rpe
bf992cc649 Whitespaces ... 2017-01-22 23:43:54 +00:00
deraadt
bf32a94ab2 Install cert.pem + ftp(1) binary that supports SSL, so the install script
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-12-30 22:34:20 +00:00
natano
888b91ed7b Use makefs to build bsd.rd on armv7 and macppc.
ok deraadt
2016-11-30 15:46:45 +00:00
deraadt
f786adedf8 Use new kernel compile method for ramdisks, de-escalating to $BUILDUSER
as required.
much help from natano and tb.
2016-10-14 18:44:19 +00:00
florian
3ba998db29 ping6(8) is now a hardlink to ping(8).
The instbin stuff looks good to deraadt@
2016-09-17 15:03:39 +00:00
rpe
df7874489c Provide a stripped down group file for the install media.
Saves precious 896 bytes as a side effect.

OK deraadt
2016-09-13 22:27:50 +00:00
rpe
99042d62fb Move files created by root during install/upgrade in a subdir of
/tmp with proper permissions so that unprivileged programs can not
tamper with them.

positive feedback from deraadt
OK halex
2016-09-04 09:54:22 +00:00
rpe
32efaffd00 Move files created by root during install/upgrade in a subdir of
/tmp with proper permissions so that unprivileged programs can not
tamper with them.

positive feedback from deraadt
OK halex
2016-09-04 09:52:03 +00:00
rpe
cf1168a5f1 Enable a stripped down version of doas(1) on the install media.
OK halex, tb, deraadt
2016-09-03 10:57:11 +00:00
rpe
5a7df5f2d9 - merge install.sh into install.sub as do_install()
- 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-04-02 12:23:46 +00:00
krw
b0a1e6c890 In the great pdisk churn we lost a pdisk pecularity in disk name
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@
2016-02-23 02:34:09 +00:00
krw
d06b59afcd If manual disklabel editing is requested during install, don't emit
verbiage explaining what disklabels are.

If you don't know, you should be using (A)uto!

ok rpe@ halex@
2016-02-08 17:39:37 +00:00
rpe
8aff7defc8 Change patterns in case-blocks from a*|A* to [aA]*
OK halex@ krw@
2015-12-29 11:16:14 +00:00
rpe
c4ecd00394 Introduce a new function disk_has() to inspect a disk if it has a
partition-table of a certain type and optionally if it has a partition
of a certain type.

Use disk_has() in the install.md script to replace all the various
"fdisk <disk> | grep <pattern>" commands greatly simplifying things.

positive feedback from sthen@
"time to get it really tested" deraadt@
OK krw@
2015-12-18 16:20:58 +00:00
krw
639974968b If (O)penBSD is not offered as a partitioning option, do not accept
'O*|o*' as a valid response. Ignore it as we do other invalid input.

armv7 is special case to be handled separately.

Noticed by kettenis@.

ok deraadt@ rpe@
2015-12-02 21:17:16 +00:00
rpe
f3d981365c Fix commas in "Use (W)hole disk MBR..." question.
OK jmc@ krw@
2015-11-09 20:54:12 +00:00
krw
42c647d8a5 Use 'fdisk -i', instead of 'fdisk -e' with a here document of
'reinit;update;write;quit'. They've done the same thing for some
time now.

Tweaks & test from rpe@.

ok rpe@ deraadt@
2015-10-25 10:20:51 +00:00
rpe
79cf2c8477 Cleanup a bit.
OK krw@ halex@
2015-10-17 08:47:24 +00:00
deraadt
04af32f5c9 do not use -p to install the tbxi from the src tree; it creates
results that confuse krw.
2015-08-18 16:28:00 +00:00
rpe
0d2792a021 Enable the xdm installer question on macppc, now that it has virtual
consoles.

Noted by stsp
OK deraadt
2015-08-03 10:36:41 +00:00
rpe
f53dd36593 Remove the $FSTABFLAG variable and use -F directly. The installer
uses disklabel UIDs unconditionally for a while already.

OK krw@
"looks good" deraadt@
2015-06-02 19:54:06 +00:00
rpe
6b7e7e25ab Replace identical code in the MD scripts of the installer with a new
MI function disklabel_autolayout() which now handles all aspects of
the disklabel auto-layout and autopartitioning case for the root disk.
Remove get_disklabel_template() and merge it with the new function.

"move forward" deraadt@
2015-05-31 19:40:10 +00:00
rpe
12cba9fa7b Add the new template file based autopartitioning feature of disklabel(8)
to the OpenBSD installer. It is available during unattended installation.
The template file is fetched from an url, provided as answer to a new
question in the response file:

    URL to autopartitioning template for disklabel = url

Original diff from and OK henning@
'no objection' krw@
2015-05-04 19:55:26 +00:00
deraadt
e205bbbad4 pwd_mkdb now fits onto the install media. no more chroot games. 2015-04-13 21:27:05 +00:00
deraadt
e825759ed5 more -> less; not less -> more 2015-04-02 16:13:20 +00:00
deraadt
fb6bdafc13 adjust for removal of expr (and while here, sort all these lists, with the
goal of eventually refactoring them)
2015-03-11 15:27:31 +00:00
deraadt
d853ccc7ab expr no longer needed on media, thanks to halex and todd and rpe 2015-02-23 08:09:46 +00:00
deraadt
03ab94f1e7 Build special/encrypt into instbin, to prepare for dropping use of the
version in just installed base.
2014-12-28 04:40:18 +00:00