Home | History | Annotate | Download | only in miniroot
History log of /src/distrib/miniroot/install.sh
RevisionDateAuthorComments
 1.29  30-Aug-2025  thorpej Place a ptyfs instance into the newly-written /etc/fstab, so that
e.g. sshd works out of the box after installation on sun3.
 1.28  03-May-2022  andvar branches: 1.28.2; 1.28.6;
fix various typos, mainly s/trasfering/transferring/ and s/theese/these/.
 1.27  04-Apr-2019  christos eXorcize and `` -> $()
 1.26  16-Sep-2018  kre Remove uses of test ... -a ... and test ... -o ...
 1.25  20-Sep-2009  abs branches: 1.25.40; 1.25.46; 1.25.48;
remove references to disktab.{preinstall,shadow}
 1.24  30-Apr-2008  martin Convert TNF licenses to new 2 clause variant
 1.23  18-Jan-2006  is branches: 1.23.20; 1.23.22;
Instead of abusing the function md_prep_label(), create a new (optional)
md_view_labels() and a variable to mark its availability, so checking of
the available disklabels can be done before the root device is chosen.
Suggested by Martin Bertelsmann.
 1.22  11-Apr-2000  pk branches: 1.22.12; 1.22.16;
Make FQDN optional (PR#9823).
 1.21  07-Oct-1999  sjg make sure . install.sub etc work regardless of PATH
 1.20  12-Apr-1999  is branches: 1.20.2;
Actually use MDSETS, so that ports can install the x sets if useful
 1.19  07-Feb-1999  is branches: 1.19.2;
Make it clearer what to answer to the "Device name: " prompt.
 1.18  25-Nov-1997  pk * Fix a typo.

* Present option to configure a swap device (a bit rude.. we only offer
partition `b', like we only consider `a' for root)
 1.17  09-Oct-1997  jtc branches: 1.17.2;
Fix tipo inherited from old version of TNF copyright template.
 1.16  08-Sep-1997  pk Don't leave /etc/rc.conf "unconfigured".
 1.15  01-May-1997  pk * ftp setup: don't echo password
* network interface configuration:
- use new ifconfig(8) capabilities
- adapt to changed ifconfig(8) output
- use new config files (ifconfig.xxn)
 1.14  10-Oct-1996  gwr Merge the netbsd-1-2 branch back into the mainline.
 1.13  26-Aug-1996  thorpej Pull md_install_sets() changes down from release branch.
 1.12  25-Aug-1996  pk sync with 1.2 branch
 1.11  22-Aug-1996  mrg do md_install_sets.
 1.10  27-Jun-1996  pk Deal with install sets in `install_from_mounted_fs()' differently.
The sets are passed around in a global variable.
Remember installed sets across loads from different media.
 1.9  25-Jun-1996  thorpej Move all disklabel handling into install.md. Even the error messages
can be machine-dependent.
 1.8  18-Jun-1996  pk Insert filesystem type in munge_fstab.
Don't `ifconfig down' an active network interface (bad for diskless setup);
but use it to cull default IP address and netmask.
 1.7  30-May-1996  leo * Edit VERSION into install.sub while copying instead of using a
VERSION file.
* Set the EDITOR variable in install.sub, so it will be set in both
upgrade & install.
* Make the checks on the presence of installation sets on the local
disks on upgrade more precise.
* Remove more&less from the list of standard binaries (I need more space!)
* When building an fstab from the users' fstab, drop lines starting with
a '#' and lines with an fstype that is not supported on the miniroot.
 1.6  27-May-1996  leo Sync atari miniroot & mi-miniroot
 1.5  21-May-1996  pk branches: 1.5.2;
Add a `install_disk' option (copied from Atari miniroot).
Make editor configurable (variable EDITOR, also usable by disklabel(8)).
Move disklabel(8) calls into `md_prep_label()'.
Eliminate two uses of `sed'.
Eliminate `awk' in upgrade.sh.
 1.4  21-May-1996  pk kill some more awks
 1.3  20-May-1996  pk There's life after awk. Replace awk scripts with shell function equivalents
(inspired by Leo's atari scripts).
 1.2  28-Feb-1996  thorpej Copyright assigned to The NetBSD Foundation.
 1.1  06-Jan-1996  pk MI install and upgrade scripts.
 1.5.2.8  27-Aug-1996  gwr Initialize THESETS just after dotting in install.sub
 1.5.2.7  26-Aug-1996  gwr Replace do_mfs_mount with md_makerootwritable
(On some ports it is easier to remount root.)
 1.5.2.6  26-Aug-1996  thorpej Nuke md_install_sets() ... just set the MDSETS variable at the top of
install.md
 1.5.2.5  25-Aug-1996  pk redo rev. 1.5.2.3 which seemed to got lost.
 1.5.2.4  22-Aug-1996  mrg pull up md_install_sets.
 1.5.2.3  27-Jun-1996  pk Pull down from trunk:
> Deal with install sets in `install_from_mounted_fs()' differently.
 1.5.2.2  25-Jun-1996  thorpej Update from trunk:

Move all disklabel handling into install.md. Even the error messages
can be machine-dependent.
 1.5.2.1  20-Jun-1996  pk Sync with trunk.
 1.17.2.1  25-Nov-1997  pk Pullup rev 1.18 from trunk.
 1.19.2.1  13-Apr-1999  is Pullup from -current:
actually use the $MDSETS variable, so that individual ports can choose to
(e.g.) install the x sets if they want to.
 1.20.2.1  27-Dec-1999  wrstuden Pull up to last week's -current.
 1.22.16.1  27-Jan-2006  tron Pull up following revision(s) (requested by is in ticket #1130):
distrib/miniroot/install.sh: revision 1.23
distrib/miniroot/upgrade.sh: revision 1.21
distrib/amiga/miniroot/install.md: revision 1.25
Instead of abusing the function md_prep_label(), create a new (optional)
md_view_labels() and a variable to mark its availability, so checking of
the available disklabels can be done before the root device is chosen.
Suggested by Martin Bertelsmann.
 1.22.12.1  27-Jan-2006  tron Pull up following revision(s) (requested by is in ticket #1130):
distrib/miniroot/install.sh: revision 1.23
distrib/miniroot/upgrade.sh: revision 1.21
distrib/amiga/miniroot/install.md: revision 1.25
Instead of abusing the function md_prep_label(), create a new (optional)
md_view_labels() and a variable to mark its availability, so checking of
the available disklabels can be done before the root device is chosen.
Suggested by Martin Bertelsmann.
 1.23.22.1  18-May-2008  yamt sync with head.
 1.23.20.2  05-Oct-2008  mjf Sync with HEAD.
 1.23.20.1  02-Jun-2008  mjf Sync with HEAD.
 1.25.48.1  10-Jun-2019  christos Sync with HEAD
 1.25.46.1  30-Sep-2018  pgoyette Ssync with HEAD
 1.25.40.1  19-Dec-2020  martin Pull up following revision(s) (requested by tsutsui in ticket #1639):

distrib/miniroot/install.sub: revision 1.54 (patch)
distrib/miniroot/install.sub: revision 1.56 (patch)
distrib/miniroot/install.sub: revision 1.57 (patch)
distrib/miniroot/install.sub: revision 1.58 (patch)
distrib/miniroot/install.sub: revision 1.59 (patch)
distrib/hp300/miniroot/install.md: revision 1.20
distrib/miniroot/list: revision 1.36
distrib/mvme68k/miniroot/install.md: revision 1.9
distrib/mvme68k/miniroot/install.md: revision 1.10
distrib/sun3/miniroot/install.md: revision 1.6
distrib/miniroot/install.sub: revision 1.47 (patch)
distrib/sun3/miniroot/install.md: revision 1.7
distrib/sun2/miniroot/install.md: revision 1.6
distrib/sun2/miniroot/install.md: revision 1.7
distrib/amiga/miniroot/install.md: revision 1.31
distrib/mac68k/miniroot/install.md: revision 1.6
distrib/mac68k/miniroot/install.md: revision 1.7
distrib/mac68k/miniroot/install.md: revision 1.8
distrib/miniroot/upgrade.sh: revision 1.23
distrib/miniroot/install.sh: revision 1.26
distrib/miniroot/upgrade.sh: revision 1.24
distrib/miniroot/install.sh: revision 1.27
distrib/hp300/miniroot/install.md: revision 1.18
distrib/hp300/miniroot/install.md: revision 1.19
distrib/miniroot/install.sub: revision 1.50 (patch)
distrib/miniroot/install.sub: revision 1.51 (patch)
distrib/miniroot/install.sub: revision 1.52 (patch)
distrib/miniroot/install.sub: revision 1.53 (patch)

Remove uses of test ... -a ... and test ... -o ...
eXorcize and `` -> $()
Fix miniroot installation failure on network configuration. PR/54833
No particular comment in the PR.
Should be pulled up to netbsd-9.
Fix "[: SMALL test, no fallback usage" error on miniroot installation.
Avoid and replace use of '-a', '(' and ')' operatos marked obsolescent
by modern POSIX.1-2017:
https://pubs.opengroup.org/onlinepubs/9699919799/utilities/test.html#tag_20_128_16
as suggested by kre@ in PR/54835.
Should be pulled up to netbsd-9.
The idiom
set $whatever
while [ $# - gt 10 ]; do shift 10; done
eval echo \$$#
fails when $# turns out to be 10 (or any multiple), it would need
to be instead
while [ $# -ge 10 ]; do shift 9; done
but there hasn't been a shell that cannot handle ${10} (etc) correctly
in a very long time, so let's just use that instead (properly quoted,
in case IFS happens to contain a digit for some bizarre reason).
We should also "set -f" / "set +f" (or better, restore the prev setting of -f)
around the "set $whatever" part, but if that was ever going to cause a problem
here, it would have already, so leave that for now.
test ! -n "$foo" is just a quaint way of saying test -z "$foo"
and test ! -z "$foo" is really just test -n "$foo" so let's just
use the simple (and more obvious) forms.
NFCI.
The kernel and X sets should be specified in MD miniroot scripts.
Otherwise they are not listed at least on ftp installation.
The problem was reported by Martin Trusler on port-hp300@:
https://mail-index.netbsd.org/port-hp300/2020/11/21/msg000174.html
Should be pulled up to netbsd-9 and netbsd-8.
Add modules set for default sets on miniroot installation.
Should be pulled up to netbsd-9 and netbsd-8.
Add missing md_get_partition_range() that causes installation failure.
Also reported by Martin Trusler on testing hp300 miniroot.
Should be pulled up to netbsd-9 and netbsd-8.
Explicitly sort set names fetched via ftp nlist.
Several binary sets are stored as symbolic links on releases and
it seems some ftpd doesn't sort nlist outputs by name in such case.
Worth to pullup to netbsd-9 and netbsd-8.
Use proper release version strings ("9.1" rather than "91") in banners.
Also define and use "MACHINE" variable to describe port names
(no uname(1) or sysctl(8) in miniroot binary list by default).
I guess the short format like "91" by ${DISTRIBREV} was used only
for split sets for floppies in 1990's releases.
Worth to pullup to netbsd-9.
Inform the default installation directory in the official ftp server.
Fetch files via ftp using auto-fetching with URL per each binary set.
On slower machines, it takes more than five minutes to get a large
set binary and it could cause timeout of ftp control session, so
getting multiple binary sets in a single ftp session always fails.
Briefly tested on HP 9000/425e with 9.1 tree and ftp.netbsd.org binaries.
No particular comments on tech-install@ and port-hp300@.
Maybe should be pulled up to netbsd-9.
 1.28.6.1  02-Sep-2025  martin Pull up following revision(s) (requested by thorpej in ticket #23):

distrib/miniroot/install.sh: revision 1.29

Place a ptyfs instance into the newly-written /etc/fstab, so that
e.g. sshd works out of the box after installation on sun3.
 1.28.2.1  02-Sep-2025  martin Pull up following revision(s) (requested by thorpej in ticket #1155):

distrib/miniroot/install.sh: revision 1.29

Place a ptyfs instance into the newly-written /etc/fstab, so that
e.g. sshd works out of the box after installation on sun3.

RSS XML Feed