summaryrefslogtreecommitdiff
path: root/distrib/miniroot/install.sh
AgeCommit message (Collapse)Author
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-09-09zap trailing whitespaceAlexander Hall
2015-07-19Replace two instances where ed is used for inplace editing of filesRobert Peichaer
with the new sed -i. "Nice" deraadt@ OK krw@ jasper@
2015-06-02Remove the $FSTABFLAG variable and use -F directly. The installerRobert Peichaer
uses disklabel UIDs unconditionally for a while already. OK krw@ "looks good" deraadt@
2015-05-15Remove the 'Use DUIDs rather than device names in fstab?' questionRobert Peichaer
and use DUIDs unconditionally. DUIDs in the installed /etc/fstab has been the default for quite some time now. OK deraadt@, krw@, guenther@, beck@
2015-04-27Rework sshd enable root login questions in light of sshd PermitRootLoginDamien Miller
default change. The new default is not to ask to enable root logins when a non-root user has been addedi. There is some additional sublety for auto-installs that provide root ssh keys. patch by myself and rpe@ with feedback from sthen@; ok rpe@ deraadt@ sthen@
2015-04-13pwd_mkdb now fits onto the install media. no more chroot games.Theo de Raadt
2015-04-07Tweak previous.Robert Peichaer
OK halex@ krw@
2015-04-06Moar comments !! Explain what's going on during install / upgrade.Robert Peichaer
OK krw@
2015-04-04I contributed substantially to the installer, so add copyright.Robert Peichaer
prodded by deraadt@
2015-03-28- Start comments with capital letters.Robert Peichaer
- End comments with a full stop. OK krw@
2015-03-11Shuffle some code around to make it easier to read. Add get_rootinfo()Kenneth R Westerback
and shuffle some install specific code into install.sh. No intentional functional change. Update copyrights to 2015 while here. Tested & ok rpe@
2015-01-02Fix saving dhclient lease files during installation.Robert Peichaer
OK krw@
2014-09-05Remove /etc/{hosts,myname} from etc.tgz.Antoine Jacoutot
Make the installer create the /etc/hosts template. While here, re-add a missing 'echo' from install.sh. ok miod@ krw@ halex@
2014-08-27Nuke net.inet6.icmp6.rediraccept and allow redirects on interfacesFlorian Obser
with autoconf enabled. If one is doing SLAAC one does already trust link local icmp6 so the policy for icmp6 redirects should be the same. pointed out by & OK bluhm@; OK henning@
2014-08-10Convert if foo; then bar; fi blocks to foo && bar but leave out enable_network()Robert Peichaer
because it shares code&style with /etc/netstart. No functional change. with feedback and OK krw@ halex@
2014-08-10{ foo ; bar ; } -> { foo; bar; }Robert Peichaer
OK krw@
2014-08-09After a cleanup by deraadt I noticed the four-space-indent had startedAlexander Hall
infesting the scripts. As we generally use a single tab for line continuation indent in the scripts, let's reclaim 30 precious bytes! ok rpe@ krw@
2014-07-22tab->space; consistent with the other sysctl values.Antoine Jacoutot
2014-07-22Drop the "... during install" comments; they were missing in severalAntoine Jacoutot
places and it makes things simpler: no need to check for file existence. discussed with and ok deraadt@ rpe@
2014-07-21Bring back net.inet6.icmp6.rediraccept for rtsol. Pointed out byChristian Weisgerber
bluhm@ three days ago, oops.
2014-07-21Since net.inet6.ip6.accept_rtadv is gone, the installer shouldn'tChristian Weisgerber
set it. Provisionally drop net.inet6.icmp6.rediraccept, too.
2014-07-16Add a comment at the top of sysctl.conf when it is created by theAntoine Jacoutot
installer. ok deraadt@ rpe@
2014-07-15Create /etc/sysctl.conf based upon the 3 variables we might want to setTheo de Raadt
at install time. ok aja
2014-04-19Simplify things by using the return code of ask_yn() directly insteadRobert Peichaer
of looking in resp. No need to specify 'no' as default answer. It's the default for ask_yn() anyway. OK krw@ halex@
2014-03-20FTP is so 20th century. Remove 'ftp' as a method to obtain installationKenneth R Westerback
sets. 'http' is the present. A bunch of related or triggered cleanup/consistenizing. Prodded by deraadt@, much feedback and testing by rpe@. ok rpe@
2014-02-21remove stupid comment from decades ago. Proof is in the pudding, turnsTheo de Raadt
out ksh is the perfect language to write this in.
2014-02-21oops, seperate pieces coming...Theo de Raadt
2014-02-21servicesTheo de Raadt
2014-02-04simplify removal of fstab leftovers in /tmpRobert Peichaer
OK halex@
2014-02-02remove -e sed option where only one command is usedRobert Peichaer
ok halex@ krw@
2014-01-05Like upgrade, use feed_random right after mounting filesystems. ThisTheo de Raadt
is less than ideal. We hope the kernel has good entropy already, because this is a reinstall?? Or maybe the ftp server startup has run to completion? Or if this is an autoinstall, that config has enough unique in it? This needs more work, but the existing late-entropy feed sequence is worse. discussed at length with rpe, who tested it
2013-12-18change password prompts (for the good of install.conf)Alexander Hall
add autoinstall question for root ssh pubkey make pubkey prompts appear in autoinstall log ideas from and ok deraaddt@, ok rpe@
2013-12-06Workaround closed stdin in non-interactive mode.Robert Peichaer
ok deraadt@
2013-12-01Allows the autoinstaller to pass a public ssh key for inclusion in theAlexander Hall
user's .ssh/authorized_keys. Deliberately not in interactive mode since I am not sure it's worth adding another question that only quite few people would enjoy. ok rpe@
2013-11-19Add autoinstall configuration to the list of files and output stirringAlexander Hall
the random pool at install. Apart from the configuration in itself, this permits adding various random data in comments or whatever. ok krw@ rpe@
2013-11-16Remove AUTOROOT variable which is a leftover of r1.183 of install.subRobert Peichaer
diff from Philipp e1c1bac6253dc54a1e89ddc046585792 at osteo dot net ok krw@ halex@
2013-10-31If if looks like a duck, swims like a duck, and quacks like a duck, thenAlexander Hall
it's probably is a pre-encrypted password hash. This means that the autoinstall configuration (and interactive password too) does not have to specify a cleartext password. reworked diff originating from krw@ no objections, specifically so from krw@
2013-05-31remove unneeded '\' for line continuationsRobert Peichaer
ok halex@ krw@
2013-04-15Use the dd and ed that are on the media, instead of the one post-install.Theo de Raadt
Amazing this mistake lurked for so long...
2012-09-28consistently use [[ ]] for testsRobert Peichaer
ok halex@
2012-09-28remove unnecessary quotes within [[ ]]Robert Peichaer
ok halex@
2012-09-28replace the last remaining backticks with $() for consistencyRobert Peichaer
ok halex@
2012-09-28remove a comment that does not make sense any moreRobert Peichaer
ok halex@
2012-09-28replace _fsent array with a simple concatenated listRobert Peichaer
ok halex@
2012-09-03compress arguments to the ftp command; ok halexTheo de Raadt
2012-01-31redirect stdout to /dev/null instead of closing itAlexander Hall
ok krw@
2011-08-17make sure to set two rtsol sysctls, not just the last oneTodd T. Fries
ok krw@