summaryrefslogtreecommitdiff
path: root/distrib/miniroot
AgeCommit message (Collapse)Author
2021-02-13distrib: merge "cp a b; strip b" to "objcopy -S a b"Sebastien Marie
ok deraadt@ danj@
2021-01-30Add dhclient.conf back to list of "installed network configurationKenneth R Westerback
files during upgrade". Mistakenly removed during dhclient.conf cleanup of r1.1050.
2020-12-23Allow the provision of dhclient(8) options on 'dhcp' lines in hostname.if(5)Kenneth R Westerback
files. Usual man page help & ok jmc@
2020-12-21Avoid issuing pointless 'ifconfig <if> up' when processing 'dhcp' inKenneth R Westerback
hostname.if files. dhclient(8) does that itself. Part of the "further script optimizations" promised in r1.200 of netstart. Tested & ok gnezdo@
2020-12-11There is a race in dhclient(8) privsep. The parent process mayAlexander Bluhm
return before the interface address and route are set in the kernel. The auto installer script runs a ftp(1) command immediatelty after that, it fails without a local address. Before calling ftp, wait until the address appears in ifconfig(8) output and dhclient leases file. This makes autoinstall more reliable. discussed with patrick@; input and OK krw@
2020-11-29Fix previous: use correct version of netstart and installer bits.Theo Buehler
2020-11-29Add support for !command to mygate, so that netstart has a late opportunityTheo de Raadt
to perform network configuration (for example, "!route source -ifp em0") Split mygate and myname manual pages (how did anyone ever believe these are related), and perform hostname configuration much earlier in rc. discussed with benno, claudio, jmc, etc etc, last version of !command parser by tb
2020-09-22When doing unattended upgrade (i.e. sysupgrade(8)) on systems withFlorian Obser
multiple root disks, do the upgrade on the one with auto_upgrade.conf present. use case pointed out by, test & OK kettenis
2020-05-26In the first version of sysupgrade(8) I made the mistake of generatingFlorian Obser
auto_upgrade.conf in bsd.rd instead of sysupgrade(8) itself. ajacoutot@ fixed this, but had to introduce a bunch of compat code in bsd.rd. It is time to retire this. Only 6.5-current contained this flaw, sysupgrade(8)ing from there to -current will no longer work but we never made any promises that it would anyway. OK deraadt, ajacoutot
2020-05-22Revert the following commit as it breaks hostname.if(5) lines with akn
backslash at the end for line continuation Breaking long lines into multiple ones must still be possible and does require to treat the backslash as an escape character. Breakage reported by Mark Patruck <mark at wrapped dot cx >, thanks! --- distrib/miniroot/install.sub revision 1.1151 etc/netstart revision 1.203 date: 2020/05/21 11:54:41; author: kn; state: Exp; lines: +2 -2; Do not treat backslashe as an escape character in hostname.if(5) lines ifstart() should always pass such lines unaltered, especially if they contain "nwid" or "description" lines with arbitrary strings. <bsdlisten at gmail dot com> reported SSIDs such as "Mike's" during installation end as broken; this was because the installer escaped the single quote using backslashes which ended up being treated as escape characters much later during hostname.if parsing in netstart(8). Ok deraadt
2020-05-21Fix stripcom() description wrt. comments not on their own linekn
Neither netstart's nor install.sub's (subtly different) implementations remove trailing comments on lines not starting as a comment, e.g., lines like "up #not down" go through unaltered and without "#not down" being removed. Only lines *beginning* with the comment sign ("#") are stripped. No functional change, just updating function descriptions.
2020-05-21Do not treat backslashe as an escape character in hostname.if(5) lineskn
ifstart() should always pass such lines unaltered, especially if they contain "nwid" or "description" lines with arbitrary strings. <bsdlisten at gmail dot com> reported SSIDs such as "Mike's" during installation end as broken; this was because the installer escaped the single quote using backslashes which ended up being treated as escape characters much later during hostname.if parsing in netstart(8). Ok deraadt
2020-04-18Include _sndiop in /etc/group, as it will be needed by MAKEDEV toAlexandre Ratchov
create audio(4) and midi(4) device nodes.
2020-04-05Make FFS2 the default filesystem type on installs except for landisk,Kenneth R Westerback
luna88k and sgi. ok otto@ deraadt@ (for diff with same effect)
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..