summaryrefslogtreecommitdiff
path: root/distrib/miniroot
AgeCommit message (Collapse)Author
2020-03-06Remove libLLVM.so.1.0gkoehler
2020-02-29Next step in prepping for ffs2 installs: introduce a new install script varOtto Moerbeek
MDFSOPT and add a missing prototype.
2020-02-02Tweak dhclient(8) timing defaults depending on SMALL rather than usingKenneth R Westerback
/dev/stdin to fake a dhclient.conf file during install. Simplifies and shortens install.sub code. Allows further restrictions to be applied to '-c' specified files.
2020-01-26No need to specify "initial-interval 1;" in the dhclient.conf usedKenneth R Westerback
during installation. This is the default value.
2019-10-19Determine the OS version in a way that won't break after 9.9.Theo Buehler
Do it the same way in all three copies of the code. Based on a patch from Chris Waddey. with & ok ajacoutot
2019-10-01People who've upgraded repeatedly have observed /usr is getting a bitTheo de Raadt
tight. At upgrade time (just before new sets hit the disk) we can prune some potentially unused clang, gcc, and perl pieces. This seems to help. (This is an improvement on a previous strategy) discussed with sthen and tb, tested by kmos, in snaps for 2 days This strategy ins't perfect, and people should consider fresh installs once in a while, or more strict pruning especially of /usr/lib/lib*.so
2019-09-22Add code to handle future sysupgrade(8) change where the tool will beAntoine Jacoutot
responsible for creating auto_upgrade.conf. No behavior change intended. While here, add missing `-x' to usage(). tested by and ok florian@, ok deraadt@
2019-09-19reset watchdog timeout between each installation of sets (and no just ↵Sebastien Marie
between fetch&verify) ok sthen@
2019-09-14Support quoted SSIDskn
Instead of ignoring SSIDs containing whitespaces, slightly adjust the commands to take everything in between 'nwid ' and ' chan' as SSID; if it has double quotes at start *and* end, simply remove those. This enables users to select networks such as "Unitymedia WifiSpot" and "FRITZ!Box 7490" for example which are common among the quoted ones at least in germany. The only SSIDs known to break this are those containing " chan " as this substring is used as delimiter. Picking "some chan 4 me" would therefore result in _nwid being assigned '"some' (literal double quote), but that seems reasonably acceptable compared to the current behaviour. Input rpe "Yes please" stsp
2019-08-21Lower syspugrade timeout to 30 minuteskn
The previous mechanism used a single timeout for the entire upgrade which was kept when introducing the per-set watchdog. Half an hour now seems more sensible to safely catch the biggest sets on slow hardware, so avoid needlessly stalling (failed) upgrades for too long. OK sthen deraadt
2019-08-14Clean up clean_old():Christian Weisgerber
* Remove syspatch files from the installed system and not the ramdisk. * Directly try to remove the old files without superfluous check. * Use an extended glob to match /usr/lib/gcc-lib contents that don't belong to this OS version. * For /usr/lib/clang, set an array to the expansion of the glob, which is an alphabetically sorted list, drop the last element, and rm the rest. ok tb@
2019-08-13Reset sysupgrade watchdog upon every set installationkn
Instead of having a single timeout for the entire upgrade, start anew right before extracting each set's tarball. Do so by replacing the background job with a proper co-process that gets killed and restarted (reset), analogue to the dmesg listener in interactive mode. Prompted by and OK sthen OK deraadt
2019-08-11Typofixes in commentskn
OK sthen
2019-08-06raise the watchdog for sysupgrade-initiated updates from 30m to 45m.Stuart Henderson
on my anoncvs server it takes about 20m already to untar sets, which is a bit close to the limit for my liking (we only want to trigger the watchdog if things are *really* stuck; if it's still proceeding then rebooting mid-upgrade can leave things in a worse state). we can probably do something smarter (e.g. reset the watchdog after untarring each set) but this is an easier-to-test initial improvement. ok florian deraadt kn
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-06-07Add -lz to the library list, since one architecture (armv7) needs it andTheo de Raadt
there is no downside for others.
2019-05-15add copyright grant, requested by deraadt@Stuart Henderson
2019-05-14Revert my recent sysupgrade changes; it broke unattended upgrades forAntoine Jacoutot
espie@. Need to look deeper.
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-13Fix usage() (missing '-x').Antoine Jacoutot
Adapt to recent sysupgrade(8) change ok florian@ kmos@ kn@
2019-05-11Repair and improve v6 default route selection.Kenneth R Westerback
Should fix autoinstalls, suppress pointless questions, allow section of 'none' via a number, etc. Issues first reported by reyk@ Testing & ok florian
2019-05-10Improve error message of "Question has no answer in response file".Reyk Floeter
It didn't always print the actual question so it was hard to debug problems in the autoinstall(8) script. OK florian@
2019-05-10Always make the default answer 'dhcp' on unconfigured interfaces.Kenneth R Westerback
Allow 'dhcp' even if the install media lacks /sbin/dhclient. Great simplification of code. ok florian@
2019-05-09Don't ignore configured netmask/prefixlen on restartingKenneth R Westerback
an install. Use the info as default answers in relevant questions.
2019-05-09Simplify v4_config() and v6_config() by getting updated informationKenneth R Westerback
via [v4|v6]_info() after calling ifconfig. As a side effect 'inet' lines in hostname.if will always use the hex format for the netmask, i.e. as displayed by ifconfig(8).
2019-05-09sysupgrade already verifies all sets, so eliminate redundantChristian Weisgerber
verification by the installer: Verification is triggered by the presence of SHA256.sig. In sysupgrade, remove SHA256.sig once the signature has been verified. Compare SHA256 against a stored copy from the previous install/upgrade. In the installer, stash away a copy of SHA256 and move that code into install_files() where the sets are actually processed. Confirm in the response file that we want to proceed without verifying the sets. ok florian@ tj@
2019-05-09Stop tromping over the saved interface configuration whenKenneth R Westerback
invalid address or netmask/prefixlen values are entered. Keeps the presented default values sane in the face of cats or otherunintended keyboard events.
2019-05-09Shuffle code to make v4_config() and v6_config() look evenKenneth R Westerback
more like each other.
2019-05-09Shuffle code a bit to consistently call 'ifconfig $_if [-inet|-inet6]' toKenneth R Westerback
completely clear existing configurations after restarting an install.
2019-05-09Don't forget about previous dhcp configuration attemptsKenneth R Westerback
when restarting an install. Even if the original dhcp attempt did not successfully get a lease and configure the interface. ok beck@ florian@
2019-05-08Move the magic ping6 IPv6 default router discovery so we probe allKenneth R Westerback
relevant interfaces at once, and ask for a user decision right after we ask for the IPv4 default route. ok florian@
2019-05-08cleanup after unattended upgradeFlorian Obser
tweak & OK kmos, OK semarie
2019-05-03Bring v6_config() into the modern age. RememberKenneth R Westerback
'autoconf' if install restarts. Be more careful to keep things clean. Remove unnecessary checks left over from rtsol days. Started by claudio@ noticing 'autoconf' is not remembered. ok florian@ kn@ (mostly)
2019-05-03During debugging, media are often built without DESTDIR correctly set.Theo de Raadt
Such media are not entirely accurate -- that's fine. However one case is very bad -- the TZ tree is entirely skipped, resulting in artificially smaller media and confusion. Just assume DESTDIR=/ for that case...
2019-05-02Keep SHA256.sig around on the installed / upgraded system.Florian Obser
It seems like sysupgrade(8) could use this to figure out if a new snapshot is available.
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-29Make v[46]_info() return all the interface flags instead of justKenneth R Westerback
deducing that the interface is up or down. Check for "UP," in the returned flags where a return value of UP was used previously. ok kn@ with feedback/optimizations to be pondered further.
2019-04-29remove the abstraction REV on top of abstraction OSrev which is alwaysTheo de Raadt
the sme.
2019-04-28reduce delta with ../ramdisk/listTheo de Raadt
2019-04-28Oops; hardcode instbin directlyTheo de Raadt
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-27It's timer_pid not timeout_pidkn
There since introduction in 1.18 (2013). OK halex
2019-04-25Move the expected set location to /home/_sysupgrade.Florian Obser
We found that /home/upgrade is a too common name and this will be in line with the upcomming sysupgrade(8) utility. discussed with deraadt@
2019-04-24In unattended mode do a reboot even if things go wrong andFlorian Obser
additionally install a watchdog to do a reboot after 30 minutes if the script gets completely stuck. A half upgraded system that reboots at least gives us a chance that it will come back and we can fix it. Just having it sit there isn't helping anyone. It would be nicer if the watchdog were kernel based... OK deraadt
2019-04-24Perform unattended upgrade if /bsd.upgrade is present.Florian Obser
Sets are expected to be in /home/upgrade. Original idea, input & OK deraadt
2019-04-22When upgrading only prompt for disks that contain a root partition.Florian Obser
With this the question "Which disk is the root disk" has the correct default in case of full disk encryption. Before it would list sd0 sd1 with sd0 being the backing store and sd1 the unlocked disk. This is a step towards fully unattended upgrades running completely on defaults (i.e. no need for an autoinstall(8) answer file). In the past there have been concernes that we should not touch any odd disk without the operator telling us as there might be bugs lurking. It is early enough in the cycle to find out for sure. input halex, kn "just commit it" deraadt
2019-04-02After upgrade time, delete contents of /var/syspatch. EitherTheo de Raadt
we are on a release (and the rollbacks are meaningless) or it's a snapshot (and they are even more meaningless) It appears the first syspatch of a release does that cleaning, but why not get ahead.. ok phessler
2019-04-02After upgrade, cleanup old clang and gcc compoents.Theo de Raadt
Test by phessler
2019-03-02On upgrade, only clean up the library relinking kits when we knowTheo Buehler
that a new one will be installed (i.e., base*.tgz was selected). 'makes sense' deraadt
2019-02-11During upgrade, remove all library relink files (to save space)Theo de Raadt
discussed with sthen