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

248 Commits

Author SHA1 Message Date
otto
6bc807e4d8 Make ffs2 the default for newfs; change all calls to create e.g. floppy
filesystems or ramdisks to use explicit -O 1; installer already does that.
ok sthen@
2020-05-18 06:20:43 +00:00
deraadt
4675fc66a8 Change install images called *.fs to *.img. These are UFS filesystem images,
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-05-17 17:04:27 +00:00
deraadt
ca9b399172 clang bsd.rd is a bit bigger.. 2020-04-04 13:28:46 +00:00
deraadt
7d41466f4b grow sparc64 miniroot a little 2019-06-08 15:49:20 +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
deraadt
5b7f980c57 first few small steps towards unification 2019-06-02 14:58:44 +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
017348fd9e The cdrom contains a nested ffs filesystem, so indicate that dependency
for large-factor make -j, hit by claudio
2019-05-10 14:45:19 +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
e602012db9 step by step, more removal of differences 2019-04-30 23:37:31 +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
378ab6388c merge cdfs into miniroot, so that it doesn't need obj reacharound 2019-04-30 19:20:22 +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
956c58cb5e These Makefile.inc are now empty and unused. 2019-04-29 15:56:43 +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
fad8bdf900 cleanup the situation around "df -i" 2019-04-28 16:47:29 +00:00
deraadt
cc7fe0ed7b incorporate GZIPFLAGS into place everywhere 2019-04-28 16:26:07 +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
9b26c7b87b Instead of using COPTS=-Oz (and similar) in make environment to force
tightly-built ramdisk kernels, set the option in per-arch Makefile.inc
based upon SMALL_KERNEL
2019-04-14 14:07:05 +00:00
deraadt
4a3b5ded2d Use new rdsetroot. 2019-04-05 21:08:00 +00:00
jsg
7414f91858 add new ral-rt3290 firmware
ok kevlo@
2018-10-07 01:16:40 +00:00
kn
991988221e Move slaacd from ramdisk to bsd.rd, found out the hard way.
OK deraadt
2018-04-08 22:38:56 +00:00
rpe
8825d37fbc Always present the same question at the end of installs or upgrades.
Offer to exit to shell, halt or reboot the system, where 'reboot' is
the default answer. Change default answer to 'halt' for installs if
MDHALT is set to 'y'.

suggested by landry@
OK halex@
2018-01-03 10:22:38 +00:00
rpe
e187b6e0d3 Add a new question "Escape to shell before reboot? [no]" at the end of
the install and upgrade process.

"no" or [enter] reboots the system
"yes" leaves the install or upgrade at the shell prompt

On selected architectures, sparc64 being the only so far, the system
is halted instead of rebooted.

autoinstall(8) is NOT affected by this new question as it reboots the
system automatically already.

Suggested by and OK deraadt@, tb@ phessler@
Feedback on sparc64 by stsp@
Positive feedback pea@ landry@
2017-12-17 18:29:56 +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
b784eb6065 remove unused GZIPEXT 2017-09-19 19:23:57 +00:00
jasper
78c9a908c3 drop ${GZIPCMD} and just use 'gzip' 2017-09-18 20:13:52 +00:00
jasper
987e90239b drop ${STRIP}, it's just 'strip'
ok deraadt@
2017-09-18 20:09:34 +00:00
deraadt
22b17c901c additional strip -R .SUNW_ctf needed 2017-08-16 14:41:21 +00:00
jasper
9c6d5f6ee7 always strip the ctf section from ramdisk kernels
discussed with deraadt@ mpi@
ok deraadt@ kettenis@ mpi@
2017-08-12 19:41:16 +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
robert
8150b6f3c2 change -Os to -Oz all around the tree
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-25 13:32:14 +00:00
florian
f99f61a254 hook up slaacd to the installer on media where we have INET6 2017-07-08 15:42:46 +00:00
deraadt
912e3b34ca kernels in compile dirs are readonly, and the bsd.rd we created has
tracked that permission.  Make the copy in $RELEASEDIR a+r
2017-06-03 22:25:19 +00:00
natano
da77b0932f Switch alpha, luna88k and sparc64 ramdisks to makefs.
ok deraadt
2017-01-27 17:59:09 +00:00
rpe
bf992cc649 Whitespaces ... 2017-01-22 23:43:54 +00:00
deraadt
aa72eb415c fix typo 2016-10-14 23:52: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
c375c99c1c 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:28:08 +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