The NetBSD Project

CVS log for src/usr.sbin/sysinst/net.c

[BACK] Up to [cvs.NetBSD.org] / src / usr.sbin / sysinst

Request diff between arbitrary revisions


Default branch: MAIN


Revision 1.43.2.2 / (download) - annotate - [select for diffs], Tue Dec 26 05:54:16 2023 UTC (2 months ago) by snj
Branch: netbsd-10
CVS Tags: netbsd-10-0-RC5, netbsd-10-0-RC4, netbsd-10-0-RC3, netbsd-10-0-RC2
Changes since 1.43.2.1: +6 -4 lines
Diff to previous 1.43.2.1 (colored) to branchpoint 1.43 (colored) next main 1.44 (colored)

Pull up following revision(s) (requested by martin in ticket #511):
	usr.sbin/sysinst/configmenu.c: revision 1.18
	usr.sbin/sysinst/defs.h: revision 1.90
	usr.sbin/sysinst/main.c: revision 1.32
	usr.sbin/sysinst/menus.entropy: revision 1.3
	usr.sbin/sysinst/menus.mi: revision 1.29
	usr.sbin/sysinst/net.c: revision 1.45
Add a https transfer method (sharing all host details with the http
transfer). Make this method the default for all downloads.
Try to make sure the binary pkg installation (which runs in a chroot
in the already installed system) can make use of SSL verification.
This does NOT fix the missing SSL verification in most install media
even if using https (due to not fully populated /etc/openssl/certs).

Revision 1.45 / (download) - annotate - [select for diffs], Sun Dec 17 18:46:42 2023 UTC (2 months, 1 week ago) by martin
Branch: MAIN
CVS Tags: HEAD
Changes since 1.44: +6 -4 lines
Diff to previous 1.44 (colored)

Add a https transfer method (sharing all host details with the http
transfer). Make this method the default for all downloads.

Try to make sure the binary pkg installation (which runs in a chroot
in the already installed system) can make use of SSL verification.

This does NOT fix the missing SSL verification in most install media
even if using https (due to not fully populated /etc/openssl/certs).

Revision 1.43.2.1 / (download) - annotate - [select for diffs], Wed Jan 4 05:30:44 2023 UTC (13 months, 3 weeks ago) by snj
Branch: netbsd-10
CVS Tags: netbsd-10-0-RC1
Changes since 1.43: +2 -1 lines
Diff to previous 1.43 (colored)

Pull up following revision(s) (requested by martin in ticket #35):
	usr.sbin/sysinst/net.c: revision 1.44
Clear the msg area after prompting for the network device to use

Revision 1.44 / (download) - annotate - [select for diffs], Tue Jan 3 16:16:15 2023 UTC (13 months, 3 weeks ago) by martin
Branch: MAIN
Changes since 1.43: +2 -1 lines
Diff to previous 1.43 (colored)

Clear the msg area after prompting for the network device to use

Revision 1.43 / (download) - annotate - [select for diffs], Wed May 18 16:39:03 2022 UTC (21 months, 1 week ago) by martin
Branch: MAIN
CVS Tags: netbsd-10-base
Branch point for: netbsd-10
Changes since 1.42: +60 -2 lines
Diff to previous 1.42 (colored)

When not invoked via some explicit "configure network" menu item,
auto-detect an already working network setup and offer to "just use" it
whenver we need connectivity.

Revision 1.42 / (download) - annotate - [select for diffs], Sun May 15 17:42:32 2022 UTC (21 months, 2 weeks ago) by jmcneill
Branch: MAIN
Changes since 1.41: +6 -1 lines
Diff to previous 1.41 (colored)

sysinst: Write custom hostname to rc.conf when using DHCP

If the user changes the suggested hostname from DHCP, ensure that the
new hostname is written to rc.conf by clearing the appropriate
DHCPCONF_* flags.

Revision 1.41 / (download) - annotate - [select for diffs], Sun May 15 17:02:37 2022 UTC (21 months, 2 weeks ago) by jmcneill
Branch: MAIN
Changes since 1.40: +10 -8 lines
Diff to previous 1.40 (colored)

sysinst: Prompt for hostname and domain, even when using DHCP.

Values discovered from the network may not match desired values for the
target system. Always give an opportunity to override them when using
DHCP.

Revision 1.33.2.3 / (download) - annotate - [select for diffs], Thu Jan 20 11:45:28 2022 UTC (2 years, 1 month ago) by martin
Branch: netbsd-9
CVS Tags: netbsd-9-3-RELEASE
Changes since 1.33.2.2: +135 -43 lines
Diff to previous 1.33.2.2 (colored) to branchpoint 1.33 (colored) next main 1.34 (colored)

Pull up following revision(s) (requested by nia in ticket #1406):

	usr.sbin/sysinst/net.c: revision 1.40
	usr.sbin/sysinst/msg.mi.pl: revision 1.37
	usr.sbin/sysinst/msg.mi.fr: revision 1.36
	usr.sbin/sysinst/msg.mi.de: revision 1.35
	usr.sbin/sysinst/msg.mi.en: revision 1.37
	usr.sbin/sysinst/net.c: revision 1.37
	usr.sbin/sysinst/net.c: revision 1.38
	usr.sbin/sysinst/msg.mi.es: revision 1.31
	usr.sbin/sysinst/net.c: revision 1.39

sysinst(8): Add initial support for connecting to Wi-Fi networks
by spawning wpa_supplicant.
Reviewed by martin.

sysinst(8): Avoid asking Wi-Fi questions about non-Wi-Fi devices.

sysinst(8): Add a "data" argument to do_ifreq that is set after the
ifr struct is zeroed.

This allows us to simplify the code by not having 2x socket creation
code for checking whether interfaces are wireless.
sysinst(8): use scan_ssid=1 so hidden wifi networks can be used

Revision 1.40 / (download) - annotate - [select for diffs], Thu Jan 13 14:47:11 2022 UTC (2 years, 1 month ago) by nia
Branch: MAIN
Changes since 1.39: +2 -1 lines
Diff to previous 1.39 (colored)

sysinst(8): use scan_ssid=1 so hidden wifi networks can be used

Revision 1.39 / (download) - annotate - [select for diffs], Tue Jan 11 09:44:49 2022 UTC (2 years, 1 month ago) by nia
Branch: MAIN
Changes since 1.38: +8 -16 lines
Diff to previous 1.38 (colored)

sysinst(8): Add a "data" argument to do_ifreq that is set after the
ifr struct is zeroed.

This allows us to simplify the code by not having 2x socket creation
code for checking whether interfaces are wireless.

Revision 1.38 / (download) - annotate - [select for diffs], Mon Jan 10 22:14:01 2022 UTC (2 years, 1 month ago) by nia
Branch: MAIN
Changes since 1.37: +19 -1 lines
Diff to previous 1.37 (colored)

sysinst(8): Avoid asking Wi-Fi questions about non-Wi-Fi devices.

Revision 1.37 / (download) - annotate - [select for diffs], Mon Jan 10 12:17:48 2022 UTC (2 years, 1 month ago) by nia
Branch: MAIN
Changes since 1.36: +121 -40 lines
Diff to previous 1.36 (colored)

sysinst(8): Add initial support for connecting to Wi-Fi networks
by spawning wpa_supplicant.

Reviewed by martin.

Revision 1.36 / (download) - annotate - [select for diffs], Sun Jan 31 22:45:46 2021 UTC (3 years ago) by rillig
Branch: MAIN
CVS Tags: cjep_sun2x-base1, cjep_sun2x-base, cjep_sun2x, cjep_staticlib_x-base1, cjep_staticlib_x-base, cjep_staticlib_x
Changes since 1.35: +5 -5 lines
Diff to previous 1.35 (colored)

sysinst: remove trailing whitespace from *.c *.h

In contrast to the messages files, this whitespace is not significant.

Revision 1.24.2.3 / (download) - annotate - [select for diffs], Mon Apr 13 08:06:00 2020 UTC (3 years, 10 months ago) by martin
Branch: phil-wifi
Changes since 1.24.2.2: +38 -21 lines
Diff to previous 1.24.2.2 (colored) to branchpoint 1.24 (colored) next main 1.25 (colored)

Mostly merge changes from HEAD upto 20200411

Revision 1.24.2.2 / (download) - annotate - [select for diffs], Wed Apr 8 14:09:22 2020 UTC (3 years, 10 months ago) by martin
Branch: phil-wifi
Changes since 1.24.2.1: +4 -4 lines
Diff to previous 1.24.2.1 (colored) to branchpoint 1.24 (colored)

Merge changes from current as of 20200406

Revision 1.33.2.2 / (download) - annotate - [select for diffs], Tue Jan 28 10:17:58 2020 UTC (4 years, 1 month ago) by msaitoh
Branch: netbsd-9
CVS Tags: netbsd-9-2-RELEASE, netbsd-9-1-RELEASE, netbsd-9-0-RELEASE, netbsd-9-0-RC2
Changes since 1.33.2.1: +4 -4 lines
Diff to previous 1.33.2.1 (colored) to branchpoint 1.33 (colored)

Pull up following revision(s) (requested by martin in ticket #668):
	usr.sbin/sysinst/arch/cobalt/md.c: revision 1.11
	usr.sbin/sysinst/arch/cobalt/md.c: revision 1.12
	usr.sbin/sysinst/arch/arc/md.c: revision 1.11
	usr.sbin/sysinst/arch/arc/md.c: revision 1.12
	usr.sbin/sysinst/partman.c: revision 1.43
	usr.sbin/sysinst/partman.c: revision 1.46
	usr.sbin/sysinst/partman.c: revision 1.47
	usr.sbin/sysinst/partman.c: revision 1.48
	usr.sbin/sysinst/partman.c: revision 1.49
	usr.sbin/sysinst/msg.pm.fr: revision 1.2
	usr.sbin/sysinst/upgrade.c: revision 1.14
	usr.sbin/sysinst/arch/i386/md.c: revision 1.28
	usr.sbin/sysinst/arch/i386/md.c: revision 1.29
	usr.sbin/sysinst/arch/ofppc/md.c: revision 1.9
	usr.sbin/sysinst/arch/sandpoint/md.c: revision 1.7
	usr.sbin/sysinst/arch/sandpoint/md.c: revision 1.8
	usr.sbin/sysinst/gpt.c: revision 1.14
	usr.sbin/sysinst/gpt.c: revision 1.15
	usr.sbin/sysinst/arch/luna68k/md.c: revision 1.8
	usr.sbin/sysinst/gpt.c: revision 1.16
	usr.sbin/sysinst/msg.pm.de: revision 1.2
	usr.sbin/sysinst/arch/evbarm/md.c: revision 1.11
	usr.sbin/sysinst/arch/evbarm/md.c: revision 1.12
	usr.sbin/sysinst/arch/evbarm/md.c: revision 1.13
	usr.sbin/sysinst/arch/evbarm/md.c: revision 1.14
	usr.sbin/sysinst/sizemultname.c: revision 1.4
	usr.sbin/sysinst/msg.pm.en: revision 1.2
	usr.sbin/sysinst/arch/landisk/md.c: revision 1.12
	usr.sbin/sysinst/util.c: revision 1.41
	usr.sbin/sysinst/arch/landisk/md.c: revision 1.13
	usr.sbin/sysinst/util.c: revision 1.42
	usr.sbin/sysinst/arch/ofppc/md.c: revision 1.10
	usr.sbin/sysinst/partitions.c: revision 1.9
	usr.sbin/sysinst/arch/evbarm/md.h: revision 1.4
	usr.sbin/sysinst/arch/evbarm/md.h: revision 1.5
	usr.sbin/sysinst/arch/evbmips/md.c: revision 1.7
	usr.sbin/sysinst/arch/evbmips/md.c: revision 1.8
	usr.sbin/sysinst/msg.mi.fr: revision 1.25
	usr.sbin/sysinst/msg.mi.de: revision 1.20
	usr.sbin/sysinst/install.c: revision 1.14
	usr.sbin/sysinst/partitions.h: revision 1.13
	usr.sbin/sysinst/partitions.h: revision 1.14
	usr.sbin/sysinst/arch/evbppc/md.c: revision 1.7
	usr.sbin/sysinst/arch/playstation2/md.c: revision 1.7
	usr.sbin/sysinst/msg.mi.en: revision 1.27
	usr.sbin/sysinst/partitions.h: revision 1.15
	usr.sbin/sysinst/arch/evbppc/md.c: revision 1.8
	usr.sbin/sysinst/arch/hpcarm/md.c: revision 1.7
	usr.sbin/sysinst/arch/playstation2/md.c: revision 1.8
	usr.sbin/sysinst/msg.pm.pl: revision 1.2
	usr.sbin/sysinst/arch/hpcarm/md.c: revision 1.8
	usr.sbin/sysinst/msg.mi.es: revision 1.21
	usr.sbin/sysinst/arch/zaurus/md.c: revision 1.7
	usr.sbin/sysinst/target.c: revision 1.11
	usr.sbin/sysinst/arch/zaurus/md.c: revision 1.8
	usr.sbin/sysinst/part_edit.c: revision 1.14
	usr.sbin/sysinst/part_edit.c: revision 1.15
	usr.sbin/sysinst/part_edit.c: revision 1.16
	usr.sbin/sysinst/defs.h: revision 1.50
	usr.sbin/sysinst/defs.h: revision 1.51
	usr.sbin/sysinst/defs.h: revision 1.52
	usr.sbin/sysinst/defs.h: revision 1.53
	usr.sbin/sysinst/defs.h: revision 1.54
	usr.sbin/sysinst/arch/hpcmips/md.c: revision 1.7
	usr.sbin/sysinst/arch/hpcmips/md.c: revision 1.8
	usr.sbin/sysinst/arch/hpcsh/md.c: revision 1.8
	usr.sbin/sysinst/msg.pm.es: revision 1.2
	usr.sbin/sysinst/arch/hpcsh/md.c: revision 1.9
	usr.sbin/sysinst/label.c: revision 1.18
	usr.sbin/sysinst/label.c: revision 1.19
	usr.sbin/sysinst/net.c: revision 1.35
	usr.sbin/sysinst/msg.mi.pl: revision 1.28
	usr.sbin/sysinst/disklabel.c: revision 1.28
	usr.sbin/sysinst/disklabel.c: revision 1.29
	usr.sbin/sysinst/mbr.c: revision 1.24
	usr.sbin/sysinst/disks.c: revision 1.59
	usr.sbin/sysinst/mbr.c: revision 1.25
	usr.sbin/sysinst/mbr.c: revision 1.26
	usr.sbin/sysinst/mbr.c: revision 1.27
	usr.sbin/sysinst/mbr.c: revision 1.28
	usr.sbin/sysinst/label.c: revision 1.20
	usr.sbin/sysinst/mbr.c: revision 1.29
	usr.sbin/sysinst/bsddisklabel.c: revision 1.34
	usr.sbin/sysinst/bsddisklabel.c: revision 1.35
	usr.sbin/sysinst/bsddisklabel.c: revision 1.36
	usr.sbin/sysinst/bsddisklabel.c: revision 1.37
	usr.sbin/sysinst/disklabel.c: revision 1.30
	usr.sbin/sysinst/bsddisklabel.c: revision 1.38
	usr.sbin/sysinst/disklabel.c: revision 1.31
	usr.sbin/sysinst/disklabel.c: revision 1.32
	usr.sbin/sysinst/disklabel.c: revision 1.33
	usr.sbin/sysinst/disklabel.c: revision 1.34
	usr.sbin/sysinst/disks.c: revision 1.60
	usr.sbin/sysinst/disks.c: revision 1.61
	usr.sbin/sysinst/arch/bebox/md.c: revision 1.7
	usr.sbin/sysinst/disks.c: revision 1.62
	usr.sbin/sysinst/arch/bebox/md.c: revision 1.8
	usr.sbin/sysinst/mbr.c: revision 1.30
	usr.sbin/sysinst/partitions.c: revision 1.10
	usr.sbin/sysinst/arch/prep/md.c: revision 1.11
	usr.sbin/sysinst/arch/prep/md.c: revision 1.12
	usr.sbin/sysinst/menus.pm: revision 1.3
	usr.sbin/sysinst/main.c: revision 1.20
	usr.sbin/sysinst/menus.mi: revision 1.20
	usr.sbin/sysinst/menus.mi: revision 1.21
avoid calling snprintf/strlcat with an input parameter the same
as the output.  from martin@.  fixes gcc 8 restrict warnings.
Finish conversion of extended partitioning parts to new abstract
backend interface. XXX still could use a lot of polishing.
Instead of a (bogus) attempt to query the model via ofctl, use the (now
fixed) sysctl hw.model instead.
When reading the secondary disklabel partitions from an existing disklabel
set the mbr partitions as parent.
Move the LABELSECTOR check and make it FS type specific - some partition
types (FFS, RAID) are allowed to overlap with the LABELSECTOR.
When asked to create a whole-disk partition for unknown usage, do not only
assert(false), but actually return an error (in case "assert" is a nop).
PR install/54787: when trying to derive proper alignement and first offset
from exisiting partitions, use the first partition offset if it is already
closer to the start of the disk than the prefered alignment - we can not
move existing partitions around.
Fix handling of inner/outer partitions (e.g. MBR and disklabel) in
extended partitioning:
 - when editing a disk with such a schme, offer both partitions in two
   steps
 - when commiting changes save the inner partitions after the outer ones
Add a method to query the partitioning schemes "internal idea" of a
cylinder size - whatever that means in the real world.
Avoid using the global "pm" variable in utility functions - during
extended partitioning they may point to a different device.
Remove useless calls to get_ramsize() - return value is ignored and
the function has no side effects.
Fix /tmp tmpfs handling and on machines with enough RAM default to
creating a /tmp tmpfs with 25% of ram size limit. Suggested by ad@.
PR install/54872: fix printf argument order, sectors and heads were
swapped in the bios geometry display.
First try to bring evbarm installation closer to current reality.
hide disklabel_non_bootable() under NO_DISKLABEL_BOOT like the usage.
should fix most builds.
Deal with even stranger fictious empty disklabels (PR kern/54882).
Factor out all RAM size thresholds as defines to avoid magic numbers.
To work around PR misc/54886 bump the threshold for a tmpfs /tmp mount
up to 256 MB.
When retrying sets during extraction, reset the relevant statistics
to avoid counting retried sets multiple times.
Reported by kim.
Fix support for non-512-byte/sector disks again after I broke it when
introducing the abstract partition backends.
Use a few strlcpy() instead of strncpy() for network ioctl structs.
We seem to have no formal documentation stating the various
	char if*_name[IFNAMSIZ]; /* if name, e.g. "en0" */
elements in ioctls are nul terminated, but the peanut gallery claims
it is so - and at least half of the code in-tree touching them agrees.
Too much disklabel magic happening in the kernel - to compensate force
MBR first when trying to identify the existing partitioning scheme of
a disk.

Revision 1.35 / (download) - annotate - [select for diffs], Mon Jan 27 21:30:17 2020 UTC (4 years, 1 month ago) by martin
Branch: MAIN
CVS Tags: phil-wifi-20200421, phil-wifi-20200411, phil-wifi-20200406, is-mlppp-base, is-mlppp
Changes since 1.34: +4 -4 lines
Diff to previous 1.34 (colored)

Use a few strlcpy() instead of strncpy() for network ioctl structs.
We seem to have no formal documentation stating the various

	char if*_name[IFNAMSIZ]; /* if name, e.g. "en0" */

elements in ioctls are nul terminated, but the peanut gallery claims
it is so - and at least half of the code in-tree touching them agrees.

Revision 1.33.2.1 / (download) - annotate - [select for diffs], Sun Nov 17 13:45:26 2019 UTC (4 years, 3 months ago) by msaitoh
Branch: netbsd-9
CVS Tags: netbsd-9-0-RC1
Changes since 1.33: +2 -2 lines
Diff to previous 1.33 (colored)

Pull up following revision(s) (requested by martin in ticket #436):
	usr.sbin/sysinst/disks.c: revision 1.55
	usr.sbin/sysinst/msg.mi.en: revision 1.24
	usr.sbin/sysinst/mbr.c: revision 1.22
	usr.sbin/sysinst/disks.c: revision 1.56
	usr.sbin/sysinst/msg.mi.en: revision 1.25
	usr.sbin/sysinst/disks.c: revision 1.57
	usr.sbin/sysinst/arch/playstation2/msg.md.pl: revision 1.3
	usr.sbin/sysinst/Makefile.inc: revision 1.30
	usr.sbin/sysinst/configmenu.c: revision 1.11
	usr.sbin/sysinst/util.c: revision 1.35
	usr.sbin/sysinst/gpt.c: revision 1.12
	usr.sbin/sysinst/util.c: revision 1.36
	usr.sbin/sysinst/arch/playstation2/msg.md.de: revision 1.3
	usr.sbin/sysinst/arch/i386/menus.md: revision 1.3
	usr.sbin/sysinst/util.c: revision 1.37
	usr.sbin/sysinst/part_edit.c: revision 1.11
	usr.sbin/sysinst/arch/i386/msg.md.en: revision 1.2
	usr.sbin/sysinst/util.c: revision 1.38
	usr.sbin/sysinst/part_edit.c: revision 1.12
	usr.sbin/sysinst/arch/i386/msg.md.en: revision 1.3
	usr.sbin/sysinst/util.c: revision 1.39
	usr.sbin/sysinst/part_edit.c: revision 1.13
	usr.sbin/sysinst/arch/i386/msg.md.en: revision 1.4
	usr.sbin/sysinst/disklabel.c: revision 1.15
	usr.sbin/sysinst/bsddisklabel.c: revision 1.30
	usr.sbin/sysinst/arch/i386/msg.md.es: revision 1.2
	usr.sbin/sysinst/bsddisklabel.c: revision 1.31
	usr.sbin/sysinst/arch/i386/msg.md.es: revision 1.3
	usr.sbin/sysinst/arch/i386/msg.md.es: revision 1.4
	usr.sbin/sysinst/mbr.h: revision 1.4
	usr.sbin/sysinst/main.c: revision 1.18
	usr.sbin/sysinst/partman.c: revision 1.44
	usr.sbin/sysinst/msg.mi.de: revision 1.17
	usr.sbin/sysinst/arch/i386/msg.md.fr: revision 1.2
	usr.sbin/sysinst/msg.mi.de: revision 1.18
	usr.sbin/sysinst/arch/i386/msg.md.fr: revision 1.3
	usr.sbin/sysinst/arch/playstation2/msg.md.en: revision 1.3
	usr.sbin/sysinst/arch/i386/msg.md.fr: revision 1.4
	usr.sbin/sysinst/arch/amd64/md.c: revision 1.2
	usr.sbin/sysinst/arch/ews4800mips/Makefile: revision 1.3
	usr.sbin/sysinst/arch/playstation2/msg.md.es: revision 1.3
	usr.sbin/sysinst/label.c: revision 1.13
	usr.sbin/sysinst/Makefile.inc: revision 1.29
	usr.sbin/sysinst/label.c: revision 1.14
	usr.sbin/sysinst/util.c: revision 1.40
	usr.sbin/sysinst/partitions.c: revision 1.5
	usr.sbin/sysinst/arch/amd64/md.h: revision 1.8
	usr.sbin/sysinst/msg.mi.es: revision 1.18
	usr.sbin/sysinst/net.c: revision 1.34
	usr.sbin/sysinst/msg.mi.es: revision 1.19
	usr.sbin/sysinst/arch/i386/msg.md.pl: revision 1.2
	usr.sbin/sysinst/arch/i386/md.c: revision 1.22
	usr.sbin/sysinst/msg.mi.fr: revision 1.22
	usr.sbin/sysinst/arch/playstation2/msg.md.fr: revision 1.3
	usr.sbin/sysinst/arch/i386/msg.md.pl: revision 1.3
	usr.sbin/sysinst/arch/i386/md.c: revision 1.23
	usr.sbin/sysinst/msg.mi.pl: revision 1.25
	usr.sbin/sysinst/msg.mi.fr: revision 1.23
	usr.sbin/sysinst/arch/i386/msg.md.pl: revision 1.4
	usr.sbin/sysinst/arch/i386/md.c: revision 1.24
	usr.sbin/sysinst/partitions.h: revision 1.8
	usr.sbin/sysinst/msg.mi.pl: revision 1.26
	usr.sbin/sysinst/arch/i386/msg.md.de: revision 1.2
	usr.sbin/sysinst/arch/i386/msg.md.de: revision 1.3
	usr.sbin/sysinst/arch/i386/msg.md.de: revision 1.4
	usr.sbin/sysinst/run.c: revision 1.13
	usr.sbin/sysinst/defs.h: revision 1.46
	usr.sbin/sysinst/install.c: revision 1.12
	usr.sbin/sysinst/defs.h: revision 1.47
	usr.sbin/sysinst/install.c: revision 1.13
	usr.sbin/sysinst/defs.h: revision 1.48
Add options to the various partitioning stages that allow cloning of
alien partitions (optionally including data).
PR 54467: we trust our own sets, extract them with -P to allow symlink
redirection (especially for updates and chroot services - back out
once a better solution for those is implemented)
Make cloning support optional, so we can save some space on very small
install media.
Drop MBR and cloning support on crunched install media.
Make tar extraction flags depend on our usage of pax-as-tar or bsdtar.
Fix missing newlines in bios match display, pointed out by maxv.
Drop unused variable.
Fix table of bios geomatries
knf style adjustments
Make the bootblock selection menu more sane, pointed out by maxv
Make sure all menus have a translatable exit option (or none at all).
On amd64 support installation with a KASLR kernel, via "custom install"
and selecting the GENERIC_KASLR kernel set.
Setup /prekern and boot.cfg accordingly.

Revision 1.34 / (download) - annotate - [select for diffs], Sat Nov 16 20:26:59 2019 UTC (4 years, 3 months ago) by martin
Branch: MAIN
CVS Tags: phil-wifi-20191119
Changes since 1.33: +2 -2 lines
Diff to previous 1.33 (colored)

Make sure all menus have a translatable exit option (or none at all).

Revision 1.33 / (download) - annotate - [select for diffs], Tue Jul 23 12:37:23 2019 UTC (4 years, 7 months ago) by martin
Branch: MAIN
CVS Tags: netbsd-9-base
Branch point for: netbsd-9
Changes since 1.32: +3 -2 lines
Diff to previous 1.32 (colored)

Avoid a buffer overrun with too many interfaces.

Revision 1.32 / (download) - annotate - [select for diffs], Mon Jul 8 19:46:57 2019 UTC (4 years, 7 months ago) by martin
Branch: MAIN
Changes since 1.31: +5 -4 lines
Diff to previous 1.31 (colored)

The network settings confirmation message is a manually formated table,
so do not treat it as free flowing text.

Revision 1.31 / (download) - annotate - [select for diffs], Sun Jul 7 12:58:45 2019 UTC (4 years, 7 months ago) by martin
Branch: MAIN
Changes since 1.30: +23 -11 lines
Diff to previous 1.30 (colored)

Fix some uninitialized memory access and a potential buffer overrun on
machines with multiple network interfaces.

Revision 1.30 / (download) - annotate - [select for diffs], Sat Jun 22 20:46:07 2019 UTC (4 years, 8 months ago) by christos
Branch: MAIN
Changes since 1.29: +1 -3 lines
Diff to previous 1.29 (colored)

no need to initialize fields that are already 0.

Revision 1.29 / (download) - annotate - [select for diffs], Thu Jun 20 00:43:55 2019 UTC (4 years, 8 months ago) by christos
Branch: MAIN
Changes since 1.28: +11 -6 lines
Diff to previous 1.28 (colored)

Use _fmt_ msg_ methods when formats are needed.

Revision 1.28 / (download) - annotate - [select for diffs], Tue Jun 18 10:45:27 2019 UTC (4 years, 8 months ago) by martin
Branch: MAIN
Changes since 1.27: +2 -2 lines
Diff to previous 1.27 (colored)

Fix buffer size

Revision 1.27 / (download) - annotate - [select for diffs], Wed Jun 12 06:20:18 2019 UTC (4 years, 8 months ago) by martin
Branch: MAIN
Changes since 1.26: +3 -3 lines
Diff to previous 1.26 (colored)

Rework internal data structures and "interfaces to user interface" functions
to get rid of all disklabel assumptions.

Previously (even for GPT partitioning) struct disklabel was used, which
obviously breaks large disk setups. Also many MD parts and parts of the
user interface assumed (a) a struct disklabel is used internally to
store partitioning information and (b) partitions are named 'a' ... $MAXPART.

Get rid of this and replace it with a quite abstract interface that should
be able to deal with all variants in partition storage:

 - partitions are stored in a (partly abstract) struct disk_partitions
   and most parts of it are only accessed via accessor functions provided
   by a "partitioning scheme".

 - implement partitioning schemes for MBR, disklabel and GPT (with likely
   RDB [amiga] and Apple Partition Map [mac*] to follow soon)

 - partitioning schemes may be cascaded, e.g. on x86 when using MBR as
   "outer partitions", we have disklabel as "inner partitions".

 - all user interface goes via accessor functions in the partitioning scheme,
   some of which return pointers to special user interface descriptors
   (e.g. to allow editing partition flags, which are scheme specific)

Overall the user interface changes (in this initial step) are minimal but
noticable. A new Anita is needed for automatic test setups - many thanks
to Andreas Gustafsson for lots of early testing and a new Anita version,
and to Manuel Bouyer for cooperation and tests of the Anita release.

This work was sponsored by The NetBSD Foundation, Inc.

Revision 1.24.2.1 / (download) - annotate - [select for diffs], Mon Jun 10 22:10:38 2019 UTC (4 years, 8 months ago) by christos
Branch: phil-wifi
Changes since 1.24: +25 -12 lines
Diff to previous 1.24 (colored)

Sync with HEAD

Revision 1.23.12.3 / (download) - annotate - [select for diffs], Sat Oct 20 06:58:47 2018 UTC (5 years, 4 months ago) by pgoyette
Branch: pgoyette-compat
CVS Tags: pgoyette-compat-merge-20190127
Changes since 1.23.12.2: +9 -7 lines
Diff to previous 1.23.12.2 (colored) to branchpoint 1.23 (colored) next main 1.24 (colored)

Sync with head

Revision 1.26 / (download) - annotate - [select for diffs], Sat Oct 6 18:45:37 2018 UTC (5 years, 4 months ago) by martin
Branch: MAIN
CVS Tags: phil-wifi-20190609, pgoyette-compat-20190127, pgoyette-compat-20190118, pgoyette-compat-1226, pgoyette-compat-1126, pgoyette-compat-1020
Changes since 1.25: +9 -7 lines
Diff to previous 1.25 (colored)

Support sets in .tar.xz format

Revision 1.23.12.2 / (download) - annotate - [select for diffs], Sun Sep 30 01:46:01 2018 UTC (5 years, 5 months ago) by pgoyette
Branch: pgoyette-compat
Changes since 1.23.12.1: +17 -6 lines
Diff to previous 1.23.12.1 (colored) to branchpoint 1.23 (colored)

Ssync with HEAD

Revision 1.25 / (download) - annotate - [select for diffs], Tue Sep 11 08:05:18 2018 UTC (5 years, 5 months ago) by martin
Branch: MAIN
CVS Tags: pgoyette-compat-0930
Changes since 1.24: +17 -6 lines
Diff to previous 1.24 (colored)

Split the host name used for ftp transfers from the one used for http
transfers. This is slightly inconsistent, as directories are still
shared - but this allows us to default to cdn/nycdn for http (which don't
support ftp).

Revision 1.23.6.1 / (download) - annotate - [select for diffs], Sat Jun 9 15:19:27 2018 UTC (5 years, 8 months ago) by martin
Branch: netbsd-8
CVS Tags: netbsd-8-2-RELEASE, netbsd-8-1-RELEASE, netbsd-8-1-RC1, netbsd-8-0-RELEASE, netbsd-8-0-RC2
Changes since 1.23: +2 -2 lines
Diff to previous 1.23 (colored) next main 1.24 (colored)

Pull up following revision(s) (requested by joerg in ticket #869):

	usr.sbin/sysinst/arch/mvme68k/md.c: revision 1.5
	usr.sbin/sysinst/net.c: revision 1.24
	usr.sbin/sysinst/partman.c: revision 1.22
	usr.sbin/sysinst/menus.mi: revision 1.12
	usr.sbin/sysinst/arch/i386/md.c: revision 1.8
	usr.sbin/sysinst/arch/alpha/md.c: revision 1.3
	usr.sbin/sysinst/bsddisklabel.c: revision 1.3
	usr.sbin/sysinst/arch/x68k/md.c: revision 1.5
	usr.sbin/sysinst/arch/hp300/md.c: revision 1.5
	usr.sbin/sysinst/arch/emips/md.c: revision 1.4
	usr.sbin/sysinst/arch/pmax/md.c: revision 1.3
	usr.sbin/sysinst/arch/mipsco/md.c: revision 1.3
	usr.sbin/sysinst/arch/hppa/md.c: revision 1.3
	usr.sbin/sysinst/util.c: revision 1.8
	usr.sbin/sysinst/defs.h: revision 1.10
	usr.sbin/sysinst/arch/landisk/md.c: revision 1.4

deconst -> __UNCONST, the former involves UB with NULL arithmetic.

Revision 1.23.12.1 / (download) - annotate - [select for diffs], Mon May 21 04:36:19 2018 UTC (5 years, 9 months ago) by pgoyette
Branch: pgoyette-compat
Changes since 1.23: +2 -2 lines
Diff to previous 1.23 (colored)

Sync with HEAD

Revision 1.24 / (download) - annotate - [select for diffs], Fri May 18 12:23:22 2018 UTC (5 years, 9 months ago) by joerg
Branch: MAIN
CVS Tags: phil-wifi-base, pgoyette-compat-0906, pgoyette-compat-0728, pgoyette-compat-0625, pgoyette-compat-0521
Branch point for: phil-wifi
Changes since 1.23: +2 -2 lines
Diff to previous 1.23 (colored)

deconst -> __UNCONST, the former involves UB with NULL arithmetic.

Revision 1.21.2.1 / (download) - annotate - [select for diffs], Sat Jan 7 08:57:01 2017 UTC (7 years, 1 month ago) by pgoyette
Branch: pgoyette-localcount
Changes since 1.21: +7 -20 lines
Diff to previous 1.21 (colored) next main 1.22 (colored)

Sync with HEAD.  (Note that most of these changes are simply $NetBSD$
tag issues.)

Revision 1.23 / (download) - annotate - [select for diffs], Tue Dec 13 19:03:49 2016 UTC (7 years, 2 months ago) by roy
Branch: MAIN
CVS Tags: prg-localcount2-base3, prg-localcount2-base2, prg-localcount2-base1, prg-localcount2-base, prg-localcount2, pgoyette-localcount-20170426, pgoyette-localcount-20170320, pgoyette-localcount-20170107, pgoyette-compat-base, pgoyette-compat-0502, pgoyette-compat-0422, pgoyette-compat-0415, pgoyette-compat-0407, pgoyette-compat-0330, pgoyette-compat-0322, pgoyette-compat-0315, perseant-stdc-iso10646-base, perseant-stdc-iso10646, netbsd-8-base, netbsd-8-0-RC1, matt-nb8-mediatek-base, matt-nb8-mediatek, bouyer-socketcan-base1, bouyer-socketcan-base, bouyer-socketcan
Branch point for: pgoyette-compat, netbsd-8
Changes since 1.22: +5 -19 lines
Diff to previous 1.22 (colored)

ping is not a reliable means of testing if connectivity to download sets
actually works, so remove it.
Hopefully fixes PR kern/51531.

Revision 1.22 / (download) - annotate - [select for diffs], Tue Nov 22 12:04:35 2016 UTC (7 years, 3 months ago) by roy
Branch: MAIN
Changes since 1.21: +4 -3 lines
Diff to previous 1.21 (colored)

Fix PR kern/51531 by using ifconfig to wait for addresses to become
valid rather than sleeping a fixed ammount of time.

Revision 1.21 / (download) - annotate - [select for diffs], Thu May 21 01:09:00 2015 UTC (8 years, 9 months ago) by ozaki-r
Branch: MAIN
CVS Tags: pgoyette-localcount-base, pgoyette-localcount-20161104, pgoyette-localcount-20160806, pgoyette-localcount-20160726, localcount-20160914
Branch point for: pgoyette-localcount
Changes since 1.20: +1 -3 lines
Diff to previous 1.20 (colored)

Remove obsolete interfaces: eon (netiso) and nsip (netns)

Pointed out by Kamil Rytarowski

Revision 1.2.4.5 / (download) - annotate - [select for diffs], Thu May 14 07:58:49 2015 UTC (8 years, 9 months ago) by snj
Branch: netbsd-7
CVS Tags: netbsd-7-nhusb-base-20170116, netbsd-7-nhusb-base, netbsd-7-nhusb, netbsd-7-2-RELEASE, netbsd-7-1-RELEASE, netbsd-7-1-RC2, netbsd-7-1-RC1, netbsd-7-1-2-RELEASE, netbsd-7-1-1-RELEASE, netbsd-7-1, netbsd-7-0-RELEASE, netbsd-7-0-RC3, netbsd-7-0-RC2, netbsd-7-0-RC1, netbsd-7-0-2-RELEASE, netbsd-7-0-1-RELEASE, netbsd-7-0
Changes since 1.2.4.4: +25 -36 lines
Diff to previous 1.2.4.4 (colored) to branchpoint 1.2 (colored) next main 1.3 (colored)

Pull up following revision(s) (requested by martin in ticket #756):
	usr.sbin/sysinst/arch/arc/md.c: revision 1.4
	usr.sbin/sysinst/arch/atari/md.c: revision 1.3
	usr.sbin/sysinst/arch/cobalt/md.c: revision 1.4
	usr.sbin/sysinst/arch/emips/md.c: revision 1.3
	usr.sbin/sysinst/arch/evbarm/md.c: revision 1.4
	usr.sbin/sysinst/arch/evbarm64/md.c: revision 1.2
	usr.sbin/sysinst/arch/hp300/md.c: revision 1.4
	usr.sbin/sysinst/arch/i386/md.c: revision 1.6
	usr.sbin/sysinst/arch/mac68k/md.c: revision 1.3
	usr.sbin/sysinst/arch/mac68k/md.c: revision 1.4
	usr.sbin/sysinst/arch/mac68k/menus.md.de: revisions 1.3, 1.4
	usr.sbin/sysinst/arch/mac68k/menus.md.en: revisions 1.3, 1.4
	usr.sbin/sysinst/arch/mac68k/menus.md.es: revisions 1.3, 1.4
	usr.sbin/sysinst/arch/mac68k/menus.md.pl: revisions 1.3, 1.4
	usr.sbin/sysinst/arch/mvme68k/md.c: revision 1.4
	usr.sbin/sysinst/arch/ofppc/md.c: revision 1.3
	usr.sbin/sysinst/arch/prep/md.c: revisions 1.3, 1.4
	usr.sbin/sysinst/arch/prep/menus.md.en: revision 1.2
	usr.sbin/sysinst/arch/x68k/md.c: revision 1.4
	usr.sbin/sysinst/configmenu.c: revisions 1.4, 1.5
	usr.sbin/sysinst/defs.h: revisions 1.8, 1.9
	usr.sbin/sysinst/disks.c: revision 1.9
	usr.sbin/sysinst/install.c: revision 1.4
	usr.sbin/sysinst/label.c: revision 1.3
	usr.sbin/sysinst/mbr.c: revision 1.5
	usr.sbin/sysinst/menus.mi: revisions 1.9, 1.10
	usr.sbin/sysinst/net.c: revisions 1.18-1.20
	usr.sbin/sysinst/partman.c: revision 1.10
	usr.sbin/sysinst/upgrade.c: revision 1.4
	usr.sbin/sysinst/util.c: revisions 1.6, 1.7
Backout the previous incorrect fix for PR 49440 and redo it more globaly:
get rid of the global "yesno", introduce utility functions "ask_yesno()"
and "ask_noyes()" instead, greatly simplifying a lot of code.
Pass in a pointer to the return value to various "set source" menus.
--
Make it compile on architectures that do not support INET6 in sysinst
--
Remove a few more (ab-)usages of "yesno".
--
More (ab-)usages of "yesno"
--
Make "ask_yesno" and "ask_noyes" take a const char * as argument, moving
the deconst() dance into the utility functions and simplifying all callers.
--
Missed a few more "yesno" in previous

Revision 1.2.4.4 / (download) - annotate - [select for diffs], Thu May 14 07:11:53 2015 UTC (8 years, 9 months ago) by snj
Branch: netbsd-7
Changes since 1.2.4.3: +84 -88 lines
Diff to previous 1.2.4.3 (colored) to branchpoint 1.2 (colored)

Pull up following revision(s) (requested by martin in ticket #759):
	distrib/amd64/cdroms/Makefile.cdrom: revision 1.12
	distrib/amd64/installimage/Makefile: revision 1.5
	distrib/amd64/installimage/spec.inst: revision 1.2
	distrib/common/10-resolv.conf: file removal
	distrib/common/99-print-sysinst: file removal
	distrib/common/Makefile.dhcpcd: revision 1.2
	distrib/common/list.dhcpcd: revision 1.3
	distrib/i386/cdroms/Makefile.cdrom: revision 1.32
	distrib/i386/installimage/Makefile: revision 1.5
	distrib/i386/installimage/spec.inst: revision 1.2
	distrib/sparc64/cdroms/installcd/Makefile: revision 1.20
	distrib/vax/cdroms/installcd/Makefile: revision 1.10
	usr.sbin/sysinst/msg.mi.de: revision 1.4
	usr.sbin/sysinst/msg.mi.en: revision 1.4
	usr.sbin/sysinst/msg.mi.es: revision 1.4
	usr.sbin/sysinst/msg.mi.fr: revision 1.4
	usr.sbin/sysinst/msg.mi.pl: revision 1.4
	usr.sbin/sysinst/net.c: revisions 1.5-1.8, 1.11-1.15
The dhcpcd utilties in pkgsrc require dhcpcd to be running in master mode.
So set dhcpcd to start like so, but restrict it to the configured interface
still instead of ifconfig_foo=dhcp.
--
Use the 20-resolv.conf hook from dhcpcd rather than the minimal one.
Extract configured information from resolv.conf and hostname instead
of scraping the last dhcpcd script run.
This will allow the use of DHCPv6 and IPv6RA DNS details in the future.
--
dhcpcd will already have configured the system at this point, so
don't bother writing it manually.
--
Don't prompt for hostname or domain if obtained from DHCP.
--
Change the display order so it's protocol agnostic at the top,
then IPv4 then IPv6.
--
Strip newline from the gateway correctly.
--
Show the IP6 address instead of yes
--
Fix a bogus gcc warning: dhcp_config may be used uninitialized
--
Punt custom dhcpcd hooks in favour up upstream hooks
--
For the benefit of gcc 4.5, rename a local "nl" variable to "nline",
so it doesn't collide with the global curses nl() function.

Revision 1.2.4.3 / (download) - annotate - [select for diffs], Thu May 14 00:30:50 2015 UTC (8 years, 9 months ago) by riz
Branch: netbsd-7
Changes since 1.2.4.2: +23 -109 lines
Diff to previous 1.2.4.2 (colored) to branchpoint 1.2 (colored)

Pull up following revision(s) to fix the build (requested by riz in ticket #754):
	usr.sbin/sysinst/net.c: revision 1.10
	usr.sbin/sysinst/menus.mi: revision 1.5
	usr.sbin/sysinst/net.c: revision 1.9
	usr.sbin/sysinst/defs.h: revision 1.4
rtsol is no longer used.
Only prompt for one nameserver, let the user decide if it's a
pre-determined google server other another one.

Revision 1.20 / (download) - annotate - [select for diffs], Mon May 11 13:07:57 2015 UTC (8 years, 9 months ago) by martin
Branch: MAIN
Changes since 1.19: +4 -4 lines
Diff to previous 1.19 (colored)

Make "ask_yesno" and "ask_noyes" take a const char * as argument, moving
the deconst() dance into the utility functions and simplifying all callers.

Revision 1.19 / (download) - annotate - [select for diffs], Mon May 11 06:58:13 2015 UTC (8 years, 9 months ago) by martin
Branch: MAIN
Changes since 1.18: +3 -4 lines
Diff to previous 1.18 (colored)

Make it compile on architectures that do not support INET6 in sysinst

Revision 1.18 / (download) - annotate - [select for diffs], Sun May 10 10:14:02 2015 UTC (8 years, 9 months ago) by martin
Branch: MAIN
Changes since 1.17: +23 -22 lines
Diff to previous 1.17 (colored)

Backout the previous incorrect fix for PR 49440 and redo it more globaly:
get rid of the global "yesno", introduce utility functions "ask_yesno()"
and "ask_noyes()" instead, greatly simplifying a lot of code.
Pass in a pointer to the return value to various "set source" menus.

Revision 1.2.4.2 / (download) - annotate - [select for diffs], Fri Feb 27 11:29:44 2015 UTC (9 years ago) by martin
Branch: netbsd-7
Changes since 1.2.4.1: +2 -3 lines
Diff to previous 1.2.4.1 (colored) to branchpoint 1.2 (colored)

Pull up following revision(s) (requested by snj in ticket #554):
	usr.sbin/sysinst/defs.h: revision 1.5
	usr.sbin/sysinst/main.c: revision 1.6
	usr.sbin/sysinst/net.c: revision 1.17
	usr.sbin/sysinst/util.c: revision 1.5
	usr.sbin/sysinst/run.c: revision 1.3
Don't use asctime(localtime(time_t *)) because this is really ctime(time_t *)
and not checking the result of localtime can lead to tears.
Add a safectime() that always returns a good string, and add some debugging
so that we can see if there is indeed something wrong in the new libc time
code.

Revision 1.17 / (download) - annotate - [select for diffs], Tue Oct 14 16:35:20 2014 UTC (9 years, 4 months ago) by christos
Branch: MAIN
Changes since 1.16: +2 -3 lines
Diff to previous 1.16 (colored)

Don't use asctime(localtime(time_t *)) because this is really ctime(time_t *)
and not checking the result of localtime can lead to tears.
Add a safectime() that always returns a good string, and add some debugging
so that we can see if there is indeed something wrong in the new libc time
code.

Revision 1.16 / (download) - annotate - [select for diffs], Mon Sep 22 18:47:41 2014 UTC (9 years, 5 months ago) by roy
Branch: MAIN
Changes since 1.15: +3 -12 lines
Diff to previous 1.15 (colored)

Remove the ping6 ff02::2 test, it looks pretty pointless.
dhcpcd will ensure the IPv6 network is up before forking.
ping the IPv4 default route before the nameserver as the nameserver
could be over the default route anyway.

Fixes the core issue with PR install/49231.

Revision 1.15 / (download) - annotate - [select for diffs], Sat Sep 13 17:22:22 2014 UTC (9 years, 5 months ago) by martin
Branch: MAIN
Changes since 1.14: +8 -8 lines
Diff to previous 1.14 (colored)

For the benefit of gcc 4.5, rename a local "nl" variable to "nline",
so it doesn't collide with the global curses nl() function.

Revision 1.14 / (download) - annotate - [select for diffs], Sat Sep 13 09:46:12 2014 UTC (9 years, 5 months ago) by roy
Branch: MAIN
Changes since 1.13: +3 -5 lines
Diff to previous 1.13 (colored)

Fix a bogus gcc warning: dhcp_config may be used uninitialized

Revision 1.13 / (download) - annotate - [select for diffs], Sat Sep 13 09:38:43 2014 UTC (9 years, 5 months ago) by roy
Branch: MAIN
Changes since 1.12: +2 -3 lines
Diff to previous 1.12 (colored)

Show the IP6 address instead of yes

Revision 1.12 / (download) - annotate - [select for diffs], Sat Sep 13 09:30:30 2014 UTC (9 years, 5 months ago) by roy
Branch: MAIN
Changes since 1.11: +2 -2 lines
Diff to previous 1.11 (colored)

Strip newline from the gateway correctly.

Revision 1.11 / (download) - annotate - [select for diffs], Sat Sep 13 01:11:58 2014 UTC (9 years, 5 months ago) by roy
Branch: MAIN
Changes since 1.10: +17 -15 lines
Diff to previous 1.10 (colored)

Change the display order so it's protocol agnostic at the top,
then IPv4 then IPv6.

Revision 1.10 / (download) - annotate - [select for diffs], Sat Sep 13 00:38:36 2014 UTC (9 years, 5 months ago) by roy
Branch: MAIN
Changes since 1.9: +23 -49 lines
Diff to previous 1.9 (colored)

Only prompt for one nameserver, let the user decide if it's a
pre-determined google server other another one.

Revision 1.9 / (download) - annotate - [select for diffs], Fri Sep 12 21:12:42 2014 UTC (9 years, 5 months ago) by roy
Branch: MAIN
Changes since 1.8: +1 -61 lines
Diff to previous 1.8 (colored)

rtsol is no longer used.

Revision 1.8 / (download) - annotate - [select for diffs], Fri Sep 12 21:02:06 2014 UTC (9 years, 5 months ago) by roy
Branch: MAIN
Changes since 1.7: +8 -4 lines
Diff to previous 1.7 (colored)

Don't prompt for hostname or domain if obtained from DHCP.

Revision 1.7 / (download) - annotate - [select for diffs], Fri Sep 12 20:48:55 2014 UTC (9 years, 5 months ago) by roy
Branch: MAIN
Changes since 1.6: +10 -3 lines
Diff to previous 1.6 (colored)

dhcpcd will already have configured the system at this point, so
don't bother writing it manually.

Revision 1.6 / (download) - annotate - [select for diffs], Fri Sep 12 20:42:13 2014 UTC (9 years, 5 months ago) by roy
Branch: MAIN
Changes since 1.5: +43 -59 lines
Diff to previous 1.5 (colored)

Use the 20-resolv.conf hook from dhcpcd rather than the minimal one.
Extract configured information from resolv.conf and hostname instead
of scraping the last dhcpcd script run.
This will allow the use of DHCPv6 and IPv6RA DNS details in the future.

Revision 1.5 / (download) - annotate - [select for diffs], Fri Sep 12 20:20:25 2014 UTC (9 years, 5 months ago) by roy
Branch: MAIN
Changes since 1.4: +7 -7 lines
Diff to previous 1.4 (colored)

The dhcpcd utilties in pkgsrc require dhcpcd to be running in master mode.
So set dhcpcd to start like so, but restrict it to the configured interface
still instead of ifconfig_foo=dhcp.

Revision 1.2.4.1 / (download) - annotate - [select for diffs], Sat Aug 23 03:44:02 2014 UTC (9 years, 6 months ago) by riz
Branch: netbsd-7
Changes since 1.2: +2 -4 lines
Diff to previous 1.2 (colored)

Pull up following revision(s) (requested by martin in ticket #39):
	usr.sbin/sysinst/main.c: revision 1.4
	usr.sbin/sysinst/disks.c: revision 1.5
	usr.sbin/sysinst/main.c: revision 1.5
	usr.sbin/sysinst/mbr.c: revision 1.3
	usr.sbin/sysinst/net.c: revision 1.3
	usr.sbin/sysinst/net.c: revision 1.4
	usr.sbin/sysinst/partman.c: revision 1.5
	usr.sbin/sysinst/partman.c: revision 1.6
	usr.sbin/sysinst/util.c: revision 1.4
Remove duplicate fclose(), pointed out by coverity scan.
Remove (accidently) duplicated code - pointed out by coverity scan.
Make sure the interface name is 0 terminated, pointed out by coverity scan.
Check return value from getenv() before using the value. Pointed out by
coverity scan.
Make an invariant more clear to avoid fals positives from coverity scan
if chdir() fails, try chdir /
Check return values from stat before comparing contents of the result
structures. Pointed out by coverity scan.
Cosmetic changes trying to appease coverity scan.
Make sure to not dereference a NULL pointer.

Revision 1.4.2.2 / (download) - annotate - [select for diffs], Wed Aug 20 00:05:13 2014 UTC (9 years, 6 months ago) by tls
Branch: tls-maxphys
Changes since 1.4.2.1: +1267 -0 lines
Diff to previous 1.4.2.1 (colored) next main 1.5 (colored)

Rebase to HEAD as of a few days ago.

Revision 1.4.2.1, Tue Aug 19 13:01:48 2014 UTC (9 years, 6 months ago) by tls
Branch: tls-maxphys
Changes since 1.4: +0 -1265 lines
FILE REMOVED

file net.c was added on branch tls-maxphys on 2014-08-20 00:05:13 +0000

Revision 1.4 / (download) - annotate - [select for diffs], Tue Aug 19 13:01:48 2014 UTC (9 years, 6 months ago) by martin
Branch: MAIN
Branch point for: tls-maxphys
Changes since 1.3: +2 -2 lines
Diff to previous 1.3 (colored)

Make sure the interface name is 0 terminated, pointed out by coverity scan.

Revision 1.3 / (download) - annotate - [select for diffs], Tue Aug 19 06:47:15 2014 UTC (9 years, 6 months ago) by martin
Branch: MAIN
Changes since 1.2: +1 -3 lines
Diff to previous 1.2 (colored)

Remove duplicate fclose(), pointed out by coverity scan.

Revision 1.2.2.2 / (download) - annotate - [select for diffs], Sun Aug 10 07:00:24 2014 UTC (9 years, 6 months ago) by tls
Branch: tls-earlyentropy
Changes since 1.2.2.1: +1267 -0 lines
Diff to previous 1.2.2.1 (colored) to branchpoint 1.2 (colored) next main 1.3 (colored)

Rebase.

Revision 1.2.2.1, Sun Aug 3 16:09:38 2014 UTC (9 years, 6 months ago) by tls
Branch: tls-earlyentropy
Changes since 1.2: +0 -1267 lines
FILE REMOVED

file net.c was added on branch tls-earlyentropy on 2014-08-10 07:00:24 +0000

Revision 1.2 / (download) - annotate - [select for diffs], Sun Aug 3 16:09:38 2014 UTC (9 years, 6 months ago) by martin
Branch: MAIN
CVS Tags: tls-maxphys-base, tls-earlyentropy-base, netbsd-7-base
Branch point for: tls-earlyentropy, netbsd-7
Changes since 1.1: +75 -122 lines
Diff to previous 1.1 (colored)

(Finally) merge a slightly modified version of the 2012 GSoC results
from Eugene Lozovoy: add extended partitioning options to sysinst.
Still needs some testing and polishing, but it now is possible to use GPT
or to create a RAID set from scratch and install onto it.

Revision 1.1 / (download) - annotate - [select for diffs], Sat Jul 26 19:30:44 2014 UTC (9 years, 7 months ago) by dholland
Branch: MAIN

Move sysinst sources to usr.sbin.

This commit only physically moves the sources - there are no other
changes, to maximize the probability that this will be treated as a
rename if we ever do manage to migrate away from CVS.

Moving sysinst has been discussed on and off for years and has two
goals: making it easier to work on sysinst, and also making sysinst
available on running systems for use installing chroots and VM images
and other such things. None of the latter is possible yet, but as they
say, one thing at a time.

Doing this now was approved in an impromptu fashion by mrg, riz,
riastradh, me, and groo.

This form allows you to request diff's between any two revisions of a file. You may select a symbolic revision name using the selection box or you may type in a numeric name using the type-in text box.




CVSweb <webmaster@jp.NetBSD.org>