summaryrefslogtreecommitdiff
path: root/distrib/miniroot
AgeCommit message (Collapse)Author
2016-09-17ping6(8) is now a hardlink to ping(8).Florian Obser
The instbin stuff looks good to deraadt@
2016-09-16Revert last. -f is a bad bad idea here.Kenneth R Westerback
ok deraadt@
2016-09-16Use 'umount -f' so failing to umount root does not blow up install/upgradeKenneth R Westerback
while root (sic) causes are probed. Problem reported by RD Thrush via bugs@ and reproduced locally.
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-13"Make disk selection dumb again", or at least make the change lessAlexander Hall
intrusive. Default to the first available disk, skipping to the next (and so on), should the selected one be determined unsuitable for the install or upgrade taking place. "please commit" deraadt@
2016-09-11ramdisk ftp(1) client never probes for ftp & ftp-data services, becauseTheo de Raadt
only http is used.
2016-09-11ramdisk does not need a passwd entry for uucp.Theo de Raadt
2016-09-11a lonely little spaceTheo de Raadt
2016-09-10Ensure that a previous cdrom install method is passed throughRobert Peichaer
to install_sets() and that it is presented as default answer. - fix pattern in waitcgiinfo() to match method=cd0. - use a separate variable _im to set INSTALL_METHOD resp might get overwritten in install_cdrom() OK halex
2016-09-10Ensure that previous installer choices are available during upgradesRobert Peichaer
by moving waitcgiinfo() from install_http() to before install_sets() in do_upgrade(). OK halex
2016-09-10Ensure that install_files() returns successful if the _tmpsrcRobert Peichaer
directory does not exist. Otherwise, INSTALL_METHOD is not set and this information is not sent to the cgi server. OK halex
2016-09-10Fix detection if default route was set by dhclient in v4_defroute().Robert Peichaer
Route labels are now enclosed in double quotes (see r1.107 of src/sbin/route/show.c). OK claudio, krw no objections halex
2016-09-09There were 3 ways of using shell at the initial prompt of the installer.Robert Peichaer
One is enough. OK halex
2016-09-05Tweak comments and spacing.Robert Peichaer
OK krw, halex
2016-09-05Relax permissions to make files readable by unpriv users again.Robert Peichaer
Found out by naddy OK deraadt
2016-09-04Not having the root filesystem on the 'a' partition isAlexander Hall
stupi^Wunfortunate, so stop asking. deraadt@ and krw@ agrees ok rpe@
2016-09-04Improve the auto disk selection and also apply it for installs as wellAlexander Hall
as for upgrades. - For installs, find all and any disks available. - For upgrades, look for 'a' partitions with the typical root filesystem directories in them. In both cases, if one and only one match is found, it will be selected. If no disk or multiple disks are found, the installer will require you to specify a disk, be it by hand or by auto{install,upgrade}.conf. ok rpe@ krw@ "Innovative." 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-03Make the installer safer by fetching and verifying external dataRobert Peichaer
as unprivileged users. OK halex, tb, deraadt
2016-09-03Add a do_as() function that executes commands as unprivileged userRobert Peichaer
and ensures that no processes of this user remain active afterwards. Optionally, it creates a file, that is owned by the user only for this command execution. Afterwards it's chown'd by root. Add wrapper functions for do_as(). unpriv() uses the _sndio user and unpriv2() uses the _file user to execute commands. OK halex, tb, deraadt
2016-09-03Add two users accounts to the install media that have no privilegesRobert Peichaer
on a base system. They are used with doas(1) to execute certain commands as unprivileged users during install and upgrade . OK halex, tb, deraadt
2016-09-03Enable a stripped down version of doas(1) on the install media.Robert Peichaer
OK halex, tb, deraadt
2016-09-02for an upgrade disk selection, present a default alternative of 'auto',Alexander Hall
which will scan the available disks, selecting the first disk with an 'a' partition of type 4.2BSD ok deraadt@ krw@ phessler@
2016-08-23Type. 'if' != 'lf'. Fixes error message and setting hostname from dhcp leaseKenneth R Westerback
during install. Spotted & diff from Patrik Lundin. Thanks!
2016-08-21Make lease_value() unescape quoted strings. To be fully compliant, weAlexander Hall
should unvis() it too, but I think this is enough, at least for now. ok krw@
2016-08-21tweak previousRobert Peichaer
OK halex, krw
2016-08-17Use more dhcp info when trying autoinstall/autoupgrade.Kenneth R Westerback
For the file name try 'filename' then 'option bootfile-name'. For the server name try 'server-name' then 'option tftp-server-name' then 'next-server'. Original idea from Patrick Lundin. Suggestions from rpe@. Tweaks & ok halex@
2016-07-23Back out the automatic pkg.conf installpath changes; because pkg_add hasTheo de Raadt
an immature heuristic for "what is a release and what is a snapshot". This change maybe improved the post-release experience, but it damages the pre-release experience, which may result in less effective pre-release testing, which risks creating poor releases, which may result in poor post-release experiences. Specific case: subtle breakage to fw_update.
2016-05-27whitespaces grow bsd.rd, you knowTheo de Raadt
2016-05-27During install, set new 'wxallowed' mount option for the filesystemRobert Peichaer
/usr/local resides on. idea from and ok deraadt with feedback from halex
2016-05-26Rename variables to a less ambiguous name better matching their purpose.Robert Peichaer
OK krw
2016-05-22Rename variable $action (which is actually global) to AI_MODE.Robert Peichaer
While there, (re)set AI_MODE and AI_SERVER at the start of the installer script. OK krw@
2016-05-20Log questions and answers during install/upgrade in a format that can beRobert Peichaer
used as a response file for autoinstall(8). The result is emailed to the root user on next boot. Passwords are not logged. positive feedback deraadt, jung OK krw, halex, sthen
2016-05-20Move code to create unique filenames and to prepare a fileRobert Peichaer
to be sent to root on reboot into separate functions. positive feedback deraadt OK krw, sthen, halex
2016-04-28Replace /dev/bpf[0-9] with /dev/bpf and /dev/bpf0. The /dev/bpf node isMartin Natano
unused for now, but I plan to convert all programs in base to use it in a future diff. /dev/bpf0 is for compatibility with existing binaries and is to be removed after a transition period. ok rpe krw, for the installer part "Let's see it hit the tree." deraadt
2016-04-27rc.firsttime -> rc.sysmerge for running sysmerge(8) after an upgrade.Antoine Jacoutot
While here, don't echo 'running sysmerge...' since that'd get us a mail each time we upgrade even when nothing changed. ok deraadt@ rpe@
2016-04-25In upgrade mode, automatically run sysmerge(8) in batch mode before ↵Antoine Jacoutot
fw_update(1). Putting this at the beginning of the p2k16 hackathon so we can see if anything breaks and to get feedback about the output etc If sysmerge cannot merge/install a file automatically, login into the machine and running it interactively will ask you what you want to do with it. It may not stay in this exact form, but that's a first step and now is a good time to get it in. discussed with deraadt@ for a while ok rpe@
2016-04-11- In isin(), quote $_b to ensure it's treated as string not as pattern.Robert Peichaer
- Always quote the first argument to isin() OK halex@, krw@
2016-04-11Tweak bsort():Robert Peichaer
- make it clear in comment that it returns a unique list - shift is only possible if argc > 0, otherwise return - quote "$_b" in equality test forcing possible patterns being treated as strings OK halex@, krw@
2016-04-09Remove _tz as intermediate variable and use CGI_TZ directly.Robert Peichaer
Feedback from and OK halex@ OK krw@ for a similar diff
2016-04-09Use _if for a single interface name and _ifs for a list of interfaceRobert Peichaer
names instead of _ifdev and _ifdevs. OK krw@ halex@
2016-04-08Use _if instead of _ifs as variable name for single interface names.Robert Peichaer
OK krw@, halex@
2016-04-08Rename getdevname() to get_dkdev_name() to better reflect the actualRobert Peichaer
purpose and simplify the logic to remove the partition information from the device name. With help from and OK halex@, krw@
2016-04-08Directly assign device name to rootdisk with modified sed pattern.Robert Peichaer
With help from and OK halex@ OK krw@
2016-04-02Simplify defining the various set lists.Robert Peichaer
Feedback from and OK halex@ OK krw@
2016-04-02Remove unused variable.Robert Peichaer
OK krw@
2016-04-02forgot to cvs rm locally in previous commitRobert Peichaer
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-03-05missed 'sed -i'Robert Peichaer
OK halex@
2016-02-27Cleanup the list of usernames that are rejected during installation.Robert Peichaer
- sendmail, named, popa3d are not part of base anymore and their ports versions use _<username>. - _tftp_proxy and _ftp_proxy are used instead of the proxy user. OK ajacoutot@