summaryrefslogtreecommitdiff
path: root/distrib/miniroot
AgeCommit message (Collapse)Author
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@
2016-02-27Shorter version that does the same.Robert Peichaer
Change description to better match the purpose of this function. OK halex@
2016-02-23In the great pdisk churn we lost a pdisk pecularity in disk nameKenneth R Westerback
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-20Combine two sed calls into one.Robert Peichaer
OK krw@, halex@
2016-02-20remove stray semicolonRobert Peichaer
OK krw@, halex@
2016-02-12Uppercase global variable.Robert Peichaer
OK halex@
2016-02-11Ensure, that the '&' is placed correctly if not all variables are set.Robert Peichaer
While there do it with less code. with feedback from and OK halex@
2016-01-31spacingRobert Peichaer
OK krw@
2016-01-31- remove _d from local list which is a leftover from a previous changeRobert Peichaer
- rename a -> _src and localize it OK krw@, halex@
2016-01-26spacingRobert Peichaer
OK krw@
2016-01-25localize _clistRobert Peichaer
feedback and OK halex@ OK krw@
2016-01-24spacingRobert Peichaer
ok krw@, halex@
2016-01-24- cleanup quoting in sed patternRobert Peichaer
- use shell built-in read command instead of 'sed q' OK krw@, halex@
2016-01-17Discard stderr of fdisk and pdisk.Robert Peichaer
disussed with and OK krw@
2016-01-12The data for CGI_{METHOD,TIME,TZ} comes from an external source.Robert Peichaer
Validate before assignment. with feedback from and OK halex@ OK krw@
2016-01-10replace test command with [[ ]]Robert Peichaer
OK krw@
2016-01-10simplify patternRobert Peichaer
feedback halex@ OK krw@
2016-01-09Revamp the display of GPT information, hiding less importantKenneth R Westerback
information under the '-v' flag. This brings the GPT display more into line with the MBR display and simplifies and hardens the parsing of the partition info in the install scripts. Original problem with install scripts parsing hand edited GPT information reported by Valere Monseur via bugs@. Man page fixes and tweaks from jmc@. Install script changes tested & ok rpe@.
2015-12-27Refactor and move disk initialization code from install.sh to a separateRobert Peichaer
function configure_disk() in install.sub. based on work from and OK halex@
2015-12-23Move the code, that lists uninitialized disk into a separate function.Robert Peichaer
This makes the disk initialization question code easier to understand. OK krw@
2015-12-23- quote user supplied hostnameRobert Peichaer
- in this context ((NIFS)) does the same as ((NIFS != 0)) - use if-block for root ssh key question - spacing OK krw@
2015-12-23- spacingRobert Peichaer
- use brace expansion in for-loop OK krw@
2015-12-23Change comment style for headings so they get removed by list2sh.awk andRobert Peichaer
don't end up in bsd.rd. OK krw@
2015-12-23Ensure the installer asks for the dns domain and nameserver in case anRobert Peichaer
interface has been configured via dhcp and then again manually. tested and OK krw@ makes sense halex@
2015-12-23Ensure the installer asks for IPv4 default route in case an interface hasRobert Peichaer
been configured via dhcp and then again manually. While there, remove 'dhcp' as valid answer for the default route qeustion. It was a no-op and was handled the same way as 'none'. tested and OK krw@ makes sense halex@
2015-12-18Introduce a new function disk_has() to inspect a disk if it has aRobert Peichaer
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-06Do the same with less code.Robert Peichaer
OK krw@
2015-12-065.8 is out for a quite a while now. Remove the deletion of binariesRobert Peichaer
during upgrade, that have been removed from base. Positive feedback from tedu@, benno@ OK krw@, deraadt@