Commit Graph

188 Commits

Author SHA1 Message Date
andvar 3b26fa5cee s/succes/success/ in comments. 2022-12-30 09:08:47 +00:00
andvar 0ac7f4ddbc fix various typos, mainly s/trasfering/transferring/ and s/theese/these/. 2022-05-03 20:52:30 +00:00
andvar 4d969a39c0 fix few typos in comments and output message. 2022-03-13 14:20:24 +00:00
tsutsui 56bb4f15d0 The modules and rescue sets are also required on upgrade.
Should be pulled up to netbsd-9 and netbsd-8.
2021-06-19 00:54:27 +00:00
tsutsui e3c0c034ba Remove netstat(1) calls to print resolver info on upgrade using miniroot.
netstat(1) was removed from miniroot 25 years ago.
 http://cvsweb.netbsd.org/bsdweb.cgi/src/distrib/miniroot/list#rev1.5
2021-06-19 00:00:26 +00:00
tsutsui b99d783a87 Handle recent ifconfig(8) outputs in the miniroot installation script.
- Remove netmask slash notation for IP addresses,
  which has been changed between NetBSD 7.x and 8.0:
  http://cvsweb.netbsd.org/bsdweb.cgi/src/sbin/ifconfig/af_inet.c#rev1.24
- Ignore inet6 entries, which miniroot scripts don't support

Should be pulled up to netbsd-9 and netbsd-8.
2021-05-29 23:46:14 +00:00
tsutsui 562e3dda50 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.
2020-12-12 05:23:21 +00:00
tsutsui 898b1f3481 Inform the default installation directory in the official ftp server. 2020-12-05 18:57:21 +00:00
tsutsui 5f7aa7d27b 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.
2020-12-05 18:52:06 +00:00
tsutsui 865f9b84f3 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.
2020-12-05 18:33:47 +00:00
tsutsui 15362761dc Appease awk warnings on suppressing dmesg timestamps.
> awk: warning: escape sequence `\[' treated as plain `['
>  source line number 1
>  context is
>         { h=$0; >>>  gsub("^[ <<<
> awk: warning: escape sequence `\]' treated as plain `]'
>  source line number 1

Should be pulled up to netbsd-9.
2020-12-05 18:29:50 +00:00
tsutsui 88b29fde6c Add modules set for default sets on miniroot installation.
Should be pulled up to netbsd-9 and netbsd-8.
2020-12-05 18:24:10 +00:00
kre a550fa2998 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.
2020-01-19 00:57:00 +00:00
kre 11f716dcce 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.
2020-01-19 00:50:25 +00:00
tsutsui b35929bc17 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.
2020-01-12 03:56:14 +00:00
tsutsui 49eb82c34f Fix miniroot installation failure on network configuration. PR/54833
No particular comment in the PR.
Should be pulled up to netbsd-9.
2020-01-12 03:37:10 +00:00
christos 128e5f5e67 1. Remove all the special handling of variables (-d -p -P -s -S) that
were dealing with DBG (-d) LDSTATIC/NOPIE (-p), and the rest with
   disabling/enabling sanitizers.
2. Use emalloc/estrdup for all the allocators instead of only some cases.
3. Add -V varspec which passes variables on the command line (as DBG
   and LDSTATIC used to be passed before) instead of appending them
   to the on-the-fly Makefile using -v varspec.
4. Change the distrib and rescue Makefiles to use -V instead of the removed
   flags.

The motivation of this is to make variable handling consistent, less magical,
and remove the need for changing crunchgen each time we want to add disabling
an option by default.

(as proposed in tech-toolchain)
2019-12-29 18:26:16 +00:00
maya 50f7458533 Split out /rescue to its own set and adapt installers/images to add it.
This is meant to make updates safer: if something goes wrong with updating
base, we still have the old, standalone /rescue to recover from.
2019-10-02 11:15:59 +00:00
christos a672382c55 adjust miniroot scripts to deal with the time prefix in dmesg 2019-04-10 14:52:53 +00:00
christos 95c3b60f74 eXorcize and `` -> $() 2019-04-04 20:51:35 +00:00
kre 327d4df346 Remove uses of test ... -a ... and test ... -o ... 2018-09-16 21:32:29 +00:00
mlelstv 0f299d7b4f Support installing from a CD9660 formatted disk partition. 2017-08-15 09:49:38 +00:00
tsutsui 3465cbe0d7 Fix indent. 2011-06-19 06:48:07 +00:00
tsutsui 800a8fccb7 Remove unnecessary gnu/usr.bin path from SRCDIRS. 2011-06-19 06:44:04 +00:00
tsutsui 91502ada24 Use src/distrib/utils/x_gzip in all install ramdisks/miniroots for now
since installation file systems might be flooded by -llzma.
2011-06-19 02:36:59 +00:00
tsutsui 7e57c1a44f Adjust file lists for recent move:
usr/sbin/chown -> sbin/chown
 usr/bin/chgrp  -> bin/chgrp
2011-01-14 10:26:28 +00:00
roy bb3a353864 Use the rescue terminfo.db in our images instead of termcap. 2010-02-05 10:01:16 +00:00
tsutsui 2087c24e30 Remove -ledit and -lmagic from LIBS.
No program requires -ledit in crunched SMALLPROG case, and
miniroot doesn't have /usr/bin/file which requires -lmagic.
(sparc had it but it was removed in distrib/sparc/miniroot/list rev 1.29)
2010-01-02 06:37:28 +00:00
abs 1fabe01b0f remove references to disktab.{preinstall,shadow} 2009-09-20 22:44:06 +00:00
abs 6f653b39ef ${NETBSDSRCDIR}/distrib/common/protocols => ${DISTRIBDIR}/common/protocols
${NETBSDSRCDIR}/distrib/common/services => ${DISTRIBDIR}/common/services
2009-09-20 19:49:07 +00:00
abs 7fb2fc21e2 Of the arious list files 28 said
PROG   usr/bin/gzip    usr/bin/gzcat usr/bin/gunzip
while 14 picked
    PROG   usr/bin/gzip    usr/bin/gunzip usr/bin/gzcat

Make them all choose the former. No functional change.
2009-09-18 10:49:08 +00:00
tsutsui 1bdd710904 Fix indent on common/protocols changes. 2009-04-29 18:20:00 +00:00
abs 7a3d39395e Use the cutdown distrib/common/services and distrib/common/protocols
rather than the full fat etc versions
2009-01-25 22:08:37 +00:00
tsutsui 4154691ca5 Add ${IMAGE}.gz to dependency list of release:: target as well as the one
in src/distrib/common/Makefile.image so that ${MAKESUMS} will be invoked
after the target image is installed into the releasedir, not before,
even if make -jN is specified.

XXX some ports do ${MAKESUMS} for installation/miniroot files
XXX in etc/etc.${MACHINE}/Makefile.inc later again.
2008-09-19 17:23:32 +00:00
matt 7cd6f44757 Change remaining instances of ${RELEASEDIR}/${MACHINES} to
${RELEASEDIR}/${RELEASEMACHINEDIR}
2008-06-23 02:16:53 +00:00
dyoung fdf6250eac Add -lprop to the LIBS line so that ifconfig will link. 2008-05-06 15:32:06 +00:00
martin 11a6dbe728 Convert TNF licenses to new 2 clause variant 2008-04-30 13:10:46 +00:00
dogcow c1583b0d2c Since /etc/services has gotten rather large, use a minimal one for install
kernels. (mount_nfs is notably the only binary that doesn't gracefully deal
with the lack of an /etc/services file, it appears.)
2007-05-10 23:22:27 +00:00
snj a640fe8c43 It's "its." 2006-04-24 19:00:29 +00:00
is c5b9cc482c 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.
2006-01-18 13:39:05 +00:00
martin 5d2216c751 More crunchgen lists needing -lz now for new gzip.
Noticed by Markus W Kilbinger.
2003-12-27 21:30:27 +00:00
tron a996f679ab Link crunched binary with "-lmagic" required for file(1). 2003-03-31 18:10:40 +00:00
lukem a250e57c96 Install release files under "${RELEASEDIR}/${MACHINE}/..." instead of
"${RELEASEDIR}/...".

${RELEASEDIR} is never cleaned , and ${RELEASEDIR}/${MACHINE} is only
cleaned if UPDATE is not defined.
2003-01-03 15:34:30 +00:00
bouyer d5bc7a86e8 If it exists, source /mnt/etc/defaults/rc.conf before /mnt/etc/rc.conf,
so that upgrade.sh gets all the parameters in its initialisation phase.
2002-06-12 09:10:02 +00:00
lukem 0647769f2d - fix permissions on generated install.sub
- COPY install & upgrade with 555 (not 755) perms
- sort some entries
2002-05-29 04:06:09 +00:00
nathanw c19639f45d Tell the user consistently that time zone files are in
/usr/share/zoneinfo, rather than that in one place and
/usr/share/timezone in another.
2002-05-23 02:57:08 +00:00
lukem 535cb8be26 enable (default) libhack for all miniroots.
for atari, also add gethost.o (as before)
2002-05-07 14:59:34 +00:00
lukem 6007cc8838 Use release:: instead of release: when multiple release targets may exist 2002-05-07 03:34:16 +00:00
lukem ed8e534c7e yet another distrib overhaul:
- move guts of distrib/Makefile.inc to distrib/common/Makefile.distrib
  (fixes problem caused by implicit include of ../Makefile.inc in certain
  submake conditions triggered by makefiles not yet in tree)
- removed mkdir of ${RELEASEDIR}/*;  rely upon "snap_pre" target of
  etc/Makefile to create all the release directories
- renamed RELINSTALL to RELEASE_INSTALL
- renamed FLOPPYINSTDIR to FLOPPY_RELEASEDIR
- renamed MDSETDIR to MDSET_RELEASEDIR
- removed ITARGET
- move release target from top level to appropriate subdirectory
- ensure release target has correct depends
- replace miniroot's IMAGE_MD_POST with common/Makefile.image IMAGEPOSTBUILD
- Makefile.image: add realall: ${IMAGE}
2002-05-02 18:02:14 +00:00
lukem 9e5598221a replace _SRC_TOP_ with NETBSDSRCDIR, since the latter is the "public" version 2002-04-26 15:50:21 +00:00