The NetBSD Project

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

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

Request diff between arbitrary revisions


Default branch: MAIN


Revision 1.95 / (download) - annotate - [select for diffs], Sat Jun 24 05:25:04 2023 UTC (9 months, 3 weeks ago) by msaitoh
Branch: MAIN
CVS Tags: HEAD
Changes since 1.94: +2 -2 lines
Diff to previous 1.94 (colored) to selected 1.4.2.2 (colored)

Fix typo in comment.

Revision 1.94 / (download) - annotate - [select for diffs], Sat Dec 10 20:58:37 2022 UTC (16 months ago) by reinoud
Branch: MAIN
CVS Tags: netbsd-10-base, netbsd-10-0-RELEASE, netbsd-10-0-RC6, netbsd-10-0-RC5, netbsd-10-0-RC4, netbsd-10-0-RC3, netbsd-10-0-RC2, netbsd-10-0-RC1, netbsd-10
Changes since 1.93: +3 -3 lines
Diff to previous 1.93 (colored) to selected 1.4.2.2 (colored)

Update list with file systems who do have fsck adding udf since there is now a
fsck_udf.

Revision 1.93 / (download) - annotate - [select for diffs], Sat Dec 10 16:52:02 2022 UTC (16 months ago) by martin
Branch: MAIN
Changes since 1.92: +2 -2 lines
Diff to previous 1.92 (colored) to selected 1.4.2.2 (colored)

Always map FS_BSDFFS to one of "FFS", "FFSv2" or "FFSv2ea" - previously
the disklabel name "4.2BSD" could show up initially but we could never
go back to it via the menu used to change the file system type.
This was confusing.

Revision 1.92 / (download) - annotate - [select for diffs], Wed Nov 30 19:44:06 2022 UTC (16 months, 2 weeks ago) by martin
Branch: MAIN
Changes since 1.91: +2 -2 lines
Diff to previous 1.91 (colored) to selected 1.4.2.2 (colored)

Fix primary boot selection for FFSv2ea filesystems

Revision 1.91 / (download) - annotate - [select for diffs], Wed Nov 30 15:53:35 2022 UTC (16 months, 2 weeks ago) by martin
Branch: MAIN
Changes since 1.90: +19 -8 lines
Diff to previous 1.90 (colored) to selected 1.4.2.2 (colored)

Add support for FFSv2ea in the partition type menus (internally setting
fs version to 3 for this, where 2 is FFSv2 and 1 is FFSv1)

Revision 1.90 / (download) - annotate - [select for diffs], Tue Aug 30 15:27:37 2022 UTC (19 months, 2 weeks ago) by martin
Branch: MAIN
Changes since 1.89: +11 -22 lines
Diff to previous 1.89 (colored) to selected 1.4.2.2 (colored)

Simplify name trimming following a suggestion from rillig.

Revision 1.89 / (download) - annotate - [select for diffs], Tue Aug 30 11:45:28 2022 UTC (19 months, 2 weeks ago) by martin
Branch: MAIN
Changes since 1.88: +2 -2 lines
Diff to previous 1.88 (colored) to selected 1.4.2.2 (colored)

Fix typo (pointed out by rillig)

Revision 1.88 / (download) - annotate - [select for diffs], Tue Aug 30 11:44:15 2022 UTC (19 months, 2 weeks ago) by martin
Branch: MAIN
Changes since 1.87: +3 -3 lines
Diff to previous 1.87 (colored) to selected 1.4.2.2 (colored)

Invoke magic C promotion rules as originally intended - oops!
Pointed out by rillig@

Revision 1.87 / (download) - annotate - [select for diffs], Mon Aug 29 17:35:15 2022 UTC (19 months, 2 weeks ago) by martin
Branch: MAIN
Changes since 1.86: +27 -3 lines
Diff to previous 1.86 (colored) to selected 1.4.2.2 (colored)

Trim trailing whitespace from disk names we got via drvctl.

Revision 1.86 / (download) - annotate - [select for diffs], Fri Jun 24 22:05:24 2022 UTC (21 months, 3 weeks ago) by tsutsui
Branch: MAIN
Changes since 1.85: +2 -2 lines
Diff to previous 1.85 (colored) to selected 1.4.2.2 (colored)

Use proper ANSI function declarations.

Revision 1.85 / (download) - annotate - [select for diffs], Mon Jun 20 18:06:28 2022 UTC (21 months, 3 weeks ago) by martin
Branch: MAIN
Changes since 1.84: +3 -1 lines
Diff to previous 1.84 (colored) to selected 1.4.2.2 (colored)

When the user aborts the target disk selection menu, return to the
main loop immediately.

Revision 1.84 / (download) - annotate - [select for diffs], Sun Jun 19 12:08:31 2022 UTC (21 months, 4 weeks ago) by martin
Branch: MAIN
Changes since 1.83: +23 -1 lines
Diff to previous 1.83 (colored) to selected 1.4.2.2 (colored)

Centralize the "we can newfs this type of filesystem" predicate
and fix the list.

Revision 1.83 / (download) - annotate - [select for diffs], Sat Jun 11 18:30:02 2022 UTC (22 months ago) by martin
Branch: MAIN
Changes since 1.82: +16 -9 lines
Diff to previous 1.82 (colored) to selected 1.4.2.2 (colored)

Slightly improved error handling when converion from one partition table
format to another is not lossless.

Revision 1.82 / (download) - annotate - [select for diffs], Thu Jun 9 18:26:06 2022 UTC (22 months, 1 week ago) by martin
Branch: MAIN
Changes since 1.81: +3 -1 lines
Diff to previous 1.81 (colored) to selected 1.4.2.2 (colored)

Add support for explicitly selecting "EFI system partition" as a partition
type.

Revision 1.81 / (download) - annotate - [select for diffs], Thu Jun 2 15:36:08 2022 UTC (22 months, 2 weeks ago) by martin
Branch: MAIN
Changes since 1.80: +11 -1 lines
Diff to previous 1.80 (colored) to selected 1.4.2.2 (colored)

If we get the disk description via device properties, the strings may
have arbitrary length - make sure the "available disks" menu fits
on the current screen.

Revision 1.80 / (download) - annotate - [select for diffs], Mon May 16 18:44:38 2022 UTC (23 months ago) by martin
Branch: MAIN
Changes since 1.79: +83 -30 lines
Diff to previous 1.79 (colored) to selected 1.4.2.2 (colored)

Split the available disks (that may be partitioned) from the
preconfigured wedges (that can be install target, but can not be
partitioned). The latter are only usefull in special setups
and clobber the list of available disks for the usual setup cases.

Revision 1.79 / (download) - annotate - [select for diffs], Sun May 15 18:27:35 2022 UTC (23 months ago) by jmcneill
Branch: MAIN
Changes since 1.78: +3 -3 lines
Diff to previous 1.78 (colored) to selected 1.4.2.2 (colored)

Use non-deprecated proplib interfaces.

prop_dictionary_set_cstring_nocopy -> prop_dictionary_set_string_nocopy

Revision 1.78 / (download) - annotate - [select for diffs], Sun May 15 14:48:37 2022 UTC (23 months ago) by jmcneill
Branch: MAIN
Changes since 1.77: +71 -3 lines
Diff to previous 1.77 (colored) to selected 1.4.2.2 (colored)

disks: Get disk identify data from drvctl

When /dev/drvctl exists, attempt to use the disk-info/type property as
a disk's description string. Fallback to ATA / SCSI probing when the
identify data is not available through this interface.

This has the side-effect of adding descriptions for things like NVMe and
SD/eMMC devices.

Revision 1.77 / (download) - annotate - [select for diffs], Sun May 15 12:48:25 2022 UTC (23 months ago) by jmcneill
Branch: MAIN
Changes since 1.76: +4 -4 lines
Diff to previous 1.76 (colored) to selected 1.4.2.2 (colored)

sysinst: Restore printing disk descriptions, lost in r1.35

Revision 1.76 / (download) - annotate - [select for diffs], Sat Aug 21 11:55:26 2021 UTC (2 years, 7 months ago) by andvar
Branch: MAIN
Changes since 1.75: +2 -2 lines
Diff to previous 1.75 (colored) to selected 1.4.2.2 (colored)

fix some more typos in comments/log messages, improve wording as well.

Revision 1.44.2.16 / (download) - annotate - [select for diffs], Thu Aug 19 04:52:10 2021 UTC (2 years, 7 months ago) by snj
Branch: netbsd-9
CVS Tags: netbsd-9-3-RELEASE
Changes since 1.44.2.15: +7 -12 lines
Diff to previous 1.44.2.15 (colored) to branchpoint 1.44 (colored) next main 1.45 (colored) to selected 1.4.2.2 (colored)

Pull up following revision(s) (requested by martin in ticket #1333):
	usr.sbin/sysinst/defs.h: revision 1.72
	usr.sbin/sysinst/disks.c: revision 1.75
	usr.sbin/sysinst/upgrade.c: revision 1.18
PR 56354: all actions to set up swap space are not guaranteed to gain
us enough virtual memory anyway, so drop return codes from set_swap*.
The state for cleanup (which swap dev to unuse) has been made global
some time ago anyway.
Previously use of the return values was inconsistent. Error reporting
will only confuse users and sometimes the situation is hard to fix or
even impossible (like in miniroots copide to swap space for booting).

Revision 1.75 / (download) - annotate - [select for diffs], Thu Aug 12 09:33:59 2021 UTC (2 years, 8 months ago) by martin
Branch: MAIN
Changes since 1.74: +7 -12 lines
Diff to previous 1.74 (colored) to selected 1.4.2.2 (colored)

PR 56354: all actions to set up swap space are not guaranteed to gain
us enough virtual memory anyway, so drop return codes from set_swap*.
The state for cleanup (which swap dev to unuse) has been made global
some time ago anyway.

Previously use of the return values was inconsistent. Error reporting
will only confuse users and sometimes the situation is hard to fix or
even impossible (like in miniroots copide to swap space for booting).

Revision 1.74 / (download) - annotate - [select for diffs], Sun Aug 8 21:50:10 2021 UTC (2 years, 8 months ago) by andvar
Branch: MAIN
Changes since 1.73: +2 -2 lines
Diff to previous 1.73 (colored) to selected 1.4.2.2 (colored)

s/partion/partition/ s/arrray/array/ in comments.

Revision 1.73 / (download) - annotate - [select for diffs], Wed Jul 14 18:56:05 2021 UTC (2 years, 9 months ago) by martin
Branch: MAIN
Changes since 1.72: +10 -4 lines
Diff to previous 1.72 (colored) to selected 1.4.2.2 (colored)

When converting partitions from one scheme to another, never fail
without providing (if requested) a proper error message.

Revision 1.72 / (download) - annotate - [select for diffs], Sun Jan 31 22:45:46 2021 UTC (3 years, 2 months 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.71: +7 -7 lines
Diff to previous 1.71 (colored) to selected 1.4.2.2 (colored)

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

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

Revision 1.44.2.15 / (download) - annotate - [select for diffs], Thu Oct 15 19:36:50 2020 UTC (3 years, 6 months ago) by bouyer
Branch: netbsd-9
CVS Tags: netbsd-9-2-RELEASE, netbsd-9-1-RELEASE
Changes since 1.44.2.14: +56 -33 lines
Diff to previous 1.44.2.14 (colored) to branchpoint 1.44 (colored) to selected 1.4.2.2 (colored)

Pull up following revision(s) (requested by martin in ticket #1113):
	usr.sbin/sysinst/bsddisklabel.c: revision 1.46
	usr.sbin/sysinst/bsddisklabel.c: revision 1.47
	usr.sbin/sysinst/disklabel.c: revision 1.40
	usr.sbin/sysinst/arch/cobalt/md.c: revision 1.13
	usr.sbin/sysinst/bsddisklabel.c: revision 1.48
	usr.sbin/sysinst/disklabel.c: revision 1.41
	usr.sbin/sysinst/arch/cobalt/md.c: revision 1.14
	usr.sbin/sysinst/bsddisklabel.c: revision 1.49
	usr.sbin/sysinst/disklabel.c: revision 1.42
	usr.sbin/sysinst/Makefile.inc: revision 1.34
	usr.sbin/sysinst/disks.c: revision 1.70
	usr.sbin/sysinst/arch/hp300/md.c: revision 1.11
	usr.sbin/sysinst/disks.c: revision 1.71
	usr.sbin/sysinst/arch/i386/md.h: revision 1.8
	usr.sbin/sysinst/arch/arc/md.c: revision 1.13
	usr.sbin/sysinst/mbr.h: revision 1.5
	usr.sbin/sysinst/mbr.h: revision 1.6
	usr.sbin/sysinst/arch/mac68k/md.c: revision 1.10
	usr.sbin/sysinst/bsddisklabel.c: revision 1.50
	usr.sbin/sysinst/arch/acorn32/md.c: revision 1.7
	usr.sbin/sysinst/bsddisklabel.c: revision 1.51
	usr.sbin/sysinst/bsddisklabel.c: revision 1.52
	usr.sbin/sysinst/bsddisklabel.c: revision 1.53
	usr.sbin/sysinst/bsddisklabel.c: revision 1.54
	usr.sbin/sysinst/bsddisklabel.c: revision 1.55
	usr.sbin/sysinst/bsddisklabel.c: revision 1.56
	usr.sbin/sysinst/arch/dummy/md.c: revision 1.6
	usr.sbin/sysinst/arch/amd64/md.h: revision 1.9
	usr.sbin/sysinst/arch/evbsh3/md.c: revision 1.6
	usr.sbin/sysinst/arch/sparc/md.c: revision 1.6
	usr.sbin/sysinst/arch/zaurus/md.c: revision 1.10
	usr.sbin/sysinst/arch/x68k/md.c: revision 1.11
	usr.sbin/sysinst/arch/sandpoint/md.c: revision 1.9
	usr.sbin/sysinst/arch/vax/md.c: revision 1.7
	usr.sbin/sysinst/arch/luna68k/md.c: revision 1.9
	usr.sbin/sysinst/gpt.c: revision 1.19
	usr.sbin/sysinst/arch/i386/md.c: revision 1.31
	usr.sbin/sysinst/arch/i386/md.c: revision 1.32
	usr.sbin/sysinst/arch/evbarm/md.c: revision 1.17
	usr.sbin/sysinst/arch/evbarm/md.c: revision 1.18
	usr.sbin/sysinst/arch/evbarm/md.c: revision 1.19
	usr.sbin/sysinst/arch/shark/md.c: revision 1.6
	usr.sbin/sysinst/arch/landisk/md.c: revision 1.14
	usr.sbin/sysinst/util.c: revision 1.43
	usr.sbin/sysinst/gpt.c: revision 1.20
	usr.sbin/sysinst/util.c: revision 1.44
	usr.sbin/sysinst/gpt.c: revision 1.21
	usr.sbin/sysinst/gpt.c: revision 1.22
	usr.sbin/sysinst/arch/evbarm/msg.md.en: revision 1.2
	usr.sbin/sysinst/arch/ofppc/md.c: revision 1.11
	usr.sbin/sysinst/util.c: revision 1.46
	usr.sbin/sysinst/arch/ofppc/md.c: revision 1.12
	usr.sbin/sysinst/util.c: revision 1.47
	usr.sbin/sysinst/arch/evbarm/md.h: revision 1.6
	usr.sbin/sysinst/util.c: revision 1.48
	usr.sbin/sysinst/arch/evbarm/md.h: revision 1.7
	usr.sbin/sysinst/arch/evbmips/md.c: revision 1.9
	usr.sbin/sysinst/msg.mi.fr: revision 1.28
	usr.sbin/sysinst/msg.mi.fr: revision 1.29
	usr.sbin/sysinst/arch/sgimips/md.c: revision 1.9
	usr.sbin/sysinst/arch/evbarm/Makefile: revision 1.3
	usr.sbin/sysinst/msg.mi.de: revision 1.23
	usr.sbin/sysinst/arch/hpcsh/md.c: revision 1.10
	usr.sbin/sysinst/msg.mi.de: revision 1.24
	usr.sbin/sysinst/install.c: revision 1.15
	usr.sbin/sysinst/install.c: revision 1.16
	usr.sbin/sysinst/arch/sparc64/md.c: revision 1.6
	usr.sbin/sysinst/install.c: revision 1.17
	usr.sbin/sysinst/install.c: revision 1.18
	usr.sbin/sysinst/partitions.h: revision 1.16
	usr.sbin/sysinst/install.c: revision 1.19
	usr.sbin/sysinst/partitions.h: revision 1.17
	usr.sbin/sysinst/arch/evbppc/md.c: revision 1.9
	usr.sbin/sysinst/arch/playstation2/md.c: revision 1.9
	usr.sbin/sysinst/partitions.h: revision 1.18
	usr.sbin/sysinst/arch/hpcarm/md.c: revision 1.9
	usr.sbin/sysinst/partitions.h: revision 1.19
	usr.sbin/sysinst/msg.mi.es: revision 1.24
	usr.sbin/sysinst/msg.mi.es: revision 1.25
	usr.sbin/sysinst/msg.mi.es: revision 1.26
	usr.sbin/sysinst/arch/zaurus/md.c: revision 1.9
	usr.sbin/sysinst/target.c: revision 1.13
	usr.sbin/sysinst/target.c: revision 1.14
	usr.sbin/sysinst/part_edit.c: revision 1.17
	usr.sbin/sysinst/part_edit.c: revision 1.18
	usr.sbin/sysinst/msg.mi.fr: revision 1.30
	usr.sbin/sysinst/arch/mvme68k/md.c: revision 1.11
	usr.sbin/sysinst/part_edit.c: revision 1.19
	usr.sbin/sysinst/msg.mi.fr: revision 1.31
	usr.sbin/sysinst/arch/alpha/md.c: revision 1.9
	usr.sbin/sysinst/msg.mi.en: revision 1.30
	usr.sbin/sysinst/defs.h: revision 1.56
	usr.sbin/sysinst/msg.mi.en: revision 1.31
	usr.sbin/sysinst/defs.h: revision 1.57
	usr.sbin/sysinst/msg.mi.en: revision 1.32
	usr.sbin/sysinst/arch/amiga/md.c: revision 1.6
	usr.sbin/sysinst/arch/hpcmips/md.c: revision 1.9
	usr.sbin/sysinst/defs.h: revision 1.58
	usr.sbin/sysinst/arch/cats/md.c: revision 1.5
	usr.sbin/sysinst/defs.h: revision 1.59
	usr.sbin/sysinst/arch/newsmips/md.c: revision 1.6
	usr.sbin/sysinst/arch/pmax/md.c: revision 1.8
	usr.sbin/sysinst/arch/mipsco/md.c: revision 1.8
	usr.sbin/sysinst/part_edit.c: revision 1.20
	usr.sbin/sysinst/part_edit.c: revision 1.21
	usr.sbin/sysinst/arch/macppc/md.c: revision 1.6
	usr.sbin/sysinst/part_edit.c: revision 1.22
	usr.sbin/sysinst/part_edit.c: revision 1.23
	usr.sbin/sysinst/part_edit.c: revision 1.24
	usr.sbin/sysinst/defs.h: revision 1.60
	usr.sbin/sysinst/arch/mac68k/Makefile: revision 1.3
	usr.sbin/sysinst/defs.h: revision 1.61
	usr.sbin/sysinst/defs.h: revision 1.63
	usr.sbin/sysinst/defs.h: revision 1.64
	usr.sbin/sysinst/defs.h: revision 1.65
	usr.sbin/sysinst/label.c: revision 1.21
	usr.sbin/sysinst/defs.h: revision 1.66
	usr.sbin/sysinst/label.c: revision 1.22
	usr.sbin/sysinst/defs.h: revision 1.67
	usr.sbin/sysinst/label.c: revision 1.23
	usr.sbin/sysinst/label.c: revision 1.24
	usr.sbin/sysinst/label.c: revision 1.25
	usr.sbin/sysinst/label.c: revision 1.26
	usr.sbin/sysinst/label.c: revision 1.27
	usr.sbin/sysinst/msg.mi.pl: revision 1.31
	usr.sbin/sysinst/label.c: revision 1.28
	usr.sbin/sysinst/msg.mi.pl: revision 1.32
	usr.sbin/sysinst/label.c: revision 1.29
	usr.sbin/sysinst/arch/atari/md.c: revision 1.7
	usr.sbin/sysinst/disklabel.c: revision 1.36
	usr.sbin/sysinst/disklabel.c: revision 1.37
	usr.sbin/sysinst/disklabel.c: revision 1.38
	usr.sbin/sysinst/disklabel.c: revision 1.39
	usr.sbin/sysinst/arch/bebox/md.c: revision 1.9
	usr.sbin/sysinst/mbr.c: revision 1.32
	usr.sbin/sysinst/disks.c: revision 1.66
	usr.sbin/sysinst/mbr.c: revision 1.33
	usr.sbin/sysinst/disks.c: revision 1.67
	usr.sbin/sysinst/mbr.c: revision 1.34
	usr.sbin/sysinst/arch/emips/md.c: revision 1.9
	usr.sbin/sysinst/disks.c: revision 1.68
	usr.sbin/sysinst/partitions.c: revision 1.11
	usr.sbin/sysinst/mbr.c: revision 1.35
	usr.sbin/sysinst/disks.c: revision 1.69
	usr.sbin/sysinst/mbr.c: revision 1.36
	usr.sbin/sysinst/arch/hppa/md.c: revision 1.8
	usr.sbin/sysinst/arch/prep/md.c: revision 1.13
	usr.sbin/sysinst/label.c: revision 1.30
	usr.sbin/sysinst/arch/ews4800mips/md.c: revision 1.7
	usr.sbin/sysinst/main.c: revision 1.21
	usr.sbin/sysinst/main.c: revision 1.22
	usr.sbin/sysinst/main.c: revision 1.23
	usr.sbin/sysinst/bsddisklabel.c: revision 1.40
	usr.sbin/sysinst/main.c: revision 1.24
	usr.sbin/sysinst/arch/cobalt/md.h: revision 1.6
	usr.sbin/sysinst/bsddisklabel.c: revision 1.41
	usr.sbin/sysinst/main.c: revision 1.25
	usr.sbin/sysinst/arch/news68k/md.c: revision 1.7
	usr.sbin/sysinst/bsddisklabel.c: revision 1.42
	usr.sbin/sysinst/bsddisklabel.c: revision 1.43
	usr.sbin/sysinst/bsddisklabel.c: revision 1.44
	usr.sbin/sysinst/bsddisklabel.c: revision 1.45
Use strlcpy in a few places to guarnatee 0-terminated strings
Rever previous: the d_packname in struct disklabel is not NUL terminated.
Disable the warning instead.
Do not force -Os optimization (unless SMALLPROG)
Remove unused "rel" global variable and make the -r option a no-op.
PR 55045: strlcpy(NULL, ..., 0) considered harmfull in some implementations.
PR misc/54886: bump threshold for automatic/default creation of a tmpfs /tmp
up slightly (to 384 MB ram). This will make sure the default install has
a > 64 MB /tmp available (number pulled out of thin air, 64 MB is the minimum
required by the ZFS tests).
Don't depend on common symbol definitions.
boardype should not be common.
Redo the root-size-limit check again after we grew the root partition
for kernel dumps. Auto-enable the /usr partition if it overflows.
For all non-root partitions, default to FFSv2.
When extending a partition (to fill the total disk size) do respect
size limits.
Do not suggest a size limited partition for extension by default.
Minor tweak to previous: when forcing a /usr partition just to have an
arbitrary extendable partition, still use its default size initially.
At the end of a new installation save entropy.
Ooops, backout previous - twice the entropy saving is not needed.
Instead slightly improve the (slightly) hidden other code that already
did it.
PR 55202: disable swapping if we started it due to low ram
it's "its"
Remove "If you booted from a floppy" message
Set HAVE_INSTALL_IMAGE for evbarm
Change mountpoint of boot ext2fs from /stand to /ext2 to avoid conflict.
Should be pulled up to netbsd-9, with fixes of PR/55060.
MBR type for Ext2 should be MBR_PTYPE_LNXEXT2, not MBR_PTYPE_FAT12.
Silence -Wstringop-truncation for ``name'' in disp_selected_part().
This variable is used only for display, and truncation seems harmless.
PR 55572: avoid crash when answering the mount point prompt for a previously
empty mount point with an emptry sting.
When adding a new partition in the concrete partition editor, make sure
to set a pointer to the partition table interface in the new entry.
Otherwise we may end up not writing back the partitions at all, leading
to further fallout later.
Receipe to reproduce the issue from Frederic Fauberteau, thanks!
In the concrete partitions editor, after deleting the last partition move
the menu selection to the "add a partition" entry (instead of the sentinel
line which is not an active menu entry).
Typo in comment
Keep a list of all partition tables from which we have deleted partitions
and make sure we update those partition tables when writing partitions,
even if no install related partition remains on them.
Fix display of timezone selection menu
If there is no current partitioning manager assume we are editing the
current system and make target_already_root() return true.
Fixes various fallout when using sysinst post installation.
PR 55377: mark boot partitions in the partition size display, as suggested
by Izumi Tsutsui (minor modifications + all bugs by me)
PR 55378: do not assume RAW_PART to be either 2 or 3
PR 55379: avoid creating bogus /etc/fstab lines for /dev/cd* if no
cdrom is available.
PR 55381: try to deal with moved (but not yet saved) partitions when
calculating free space
Apply patch provided by Izumi Tsutsui in PR 55382: make ext2 partitions
show up in the outer (MBR) partition table, needed for example on Cobalt
where firmware boots from that partition.
PR 55384: detangle pm->ptstart from the "install" flag (selecting a
target partition). Instead introduce a new PTI_INSTALL_TARGET per partition
flag and deal with it in the partitioning backends.
Honour pm->ptstart when allocating new partitions - it is supposed to be
the first sector usable by NetBSD.
If we have no explicitly marke target root partition, make sure to set
the proper flag on the implicit one.
When merging existing partitions with desired target system layout
information, only force the "mount" flag if the existing partitions
has a valid mount point.
Add a heuristic to detect and properly mark EFI system partitions
when re-using pre-existing partitions.
When MD code requests a reserved area (at the start of the disk)
make sure to properly account for the "lost" space during all calculations
and especially when expanding the main partition to fill the disk.
Avoid using the global "pm" or a passed device descriptons when we are
passing disk limits explicitly anyway.
Simplify/fix a few rounding calculations.
When creating new partitions for "full disk" use, pass a install target
hint to the partitioning backend (for the outer NetBSD partition).
Use an install target hint to mark a new partition active.
When compiled with BOOTSEL support, also name the new partition "NetBSD".
Remove more pm->ptstart abuse - calculate values localy where needed
instead.
Fix editing start and size of not yet existing outer partitions.
Previously we abused pm->ptstart / pm->ptsize to pass the bounds of the
NetBSD outer partition to the inner partition editor - but now this is
not a valid assumption any more, so explicitly fix the bounds if an
outer partition exists.
Remove very strange code that special-cased MSDOS file systems and refused
to newfs the partition (despite explicit request to do so) if it was
mountable.
Accidently carried over from a dim and distant past, before we had
fsck_newfs.
PR 55536: when we find existing partition tables and have alternative
formats available, offer to delete partitions and create new ones from
scratch (in some other or the same on-disk format).
Minor fix to previous: fix condition when we offer the partition type
switch - it makes sense even if the disk is partitioned but has no valid
partitions.
Before forcing MBR partitions into our disklabel, make sure they are not
there yet - could happen in various paths when reusing existing partitions
(or parts of that) - previously we would blindly duplicate identical
partitions.
Ooops, part of previous was not meant to be included yet
When renumbering partitions (after deletions) be slightly more lax
in matching, to cope with differences between MBR EFI partitions and
disklabel MSDOS partitions.
PR 55142: on popular demand bring back expert options to adjust the
number of free inodes, block size and fragment size for FFS and LFS.
Fix copy & pasto noticed by Jason Mitchell: change the type of a GPT
partition via "gpt type" - not "gpt label".
Fix copy & pasto (missing "again" label)
Remove dead code
Move MBR writing (if any) post disklabel writing, otherwise strange
interactions happen.
Properly convert partition default sizes in MB to number of sectors

Revision 1.71 / (download) - annotate - [select for diffs], Tue Oct 13 17:26:28 2020 UTC (3 years, 6 months ago) by martin
Branch: MAIN
Changes since 1.70: +27 -6 lines
Diff to previous 1.70 (colored) to selected 1.4.2.2 (colored)

PR 55142: on popular demand bring back expert options to adjust the
number of free inodes, block size and fragment size for FFS and LFS.

Revision 1.70 / (download) - annotate - [select for diffs], Mon Oct 12 14:29:41 2020 UTC (3 years, 6 months ago) by martin
Branch: MAIN
Changes since 1.69: +2 -17 lines
Diff to previous 1.69 (colored) to selected 1.4.2.2 (colored)

Remove very strange code that special-cased MSDOS file systems and refused
to newfs the partition (despite explicit request to do so) if it was
mountable.
Accidently carried over from a dim and distant past, before we had
fsck_newfs.

Revision 1.69 / (download) - annotate - [select for diffs], Mon Sep 28 18:51:34 2020 UTC (3 years, 6 months ago) by martin
Branch: MAIN
Changes since 1.68: +6 -4 lines
Diff to previous 1.68 (colored) to selected 1.4.2.2 (colored)

PR 55379: avoid creating bogus /etc/fstab lines for /dev/cd* if no
cdrom is available.

Revision 1.68 / (download) - annotate - [select for diffs], Tue Sep 22 15:16:49 2020 UTC (3 years, 6 months ago) by martin
Branch: MAIN
Changes since 1.67: +2 -2 lines
Diff to previous 1.67 (colored) to selected 1.4.2.2 (colored)

Typo in comment

Revision 1.67 / (download) - annotate - [select for diffs], Tue May 12 17:26:43 2020 UTC (3 years, 11 months ago) by martin
Branch: MAIN
Changes since 1.66: +22 -7 lines
Diff to previous 1.66 (colored) to selected 1.4.2.2 (colored)

PR 55202: disable swapping if we started it due to low ram

Revision 1.16.2.2 / (download) - annotate - [select for diffs], Mon Apr 13 08:06:00 2020 UTC (4 years ago) by martin
Branch: phil-wifi
Changes since 1.16.2.1: +1408 -693 lines
Diff to previous 1.16.2.1 (colored) to branchpoint 1.16 (colored) next main 1.17 (colored) to selected 1.4.2.2 (colored)

Mostly merge changes from HEAD upto 20200411

Revision 1.66 / (download) - annotate - [select for diffs], Wed Feb 19 18:08:03 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.65: +2 -2 lines
Diff to previous 1.65 (colored) to selected 1.4.2.2 (colored)

Use strlcpy in a few places to guarnatee 0-terminated strings

Revision 1.44.2.14 / (download) - annotate - [select for diffs], Mon Feb 10 21:39:37 2020 UTC (4 years, 2 months ago) by bouyer
Branch: netbsd-9
CVS Tags: netbsd-9-0-RELEASE
Changes since 1.44.2.13: +21 -5 lines
Diff to previous 1.44.2.13 (colored) to branchpoint 1.44 (colored) to selected 1.4.2.2 (colored)

Pull up following revision(s) (requested by martin in ticket #693):
	usr.sbin/sysinst/arch/x68k/msg.md.en: revision 1.2
	usr.sbin/sysinst/arch/x68k/md.c: revision 1.10
	usr.sbin/sysinst/arch/mvme68k/msg.md.fr: revision 1.2
	usr.sbin/sysinst/arch/x68k/msg.md.en: revision 1.3
	usr.sbin/sysinst/arch/mvme68k/msg.md.fr: revision 1.3
	usr.sbin/sysinst/msg.mi.en: revision 1.28
	usr.sbin/sysinst/arch/hp300/md.c: revision 1.10
	usr.sbin/sysinst/msg.mi.es: revision 1.22
	usr.sbin/sysinst/target.c: revision 1.12
	usr.sbin/sysinst/arch/mvme68k/md.c: revision 1.10
	usr.sbin/sysinst/arch/i386/md.c: revision 1.30
	usr.sbin/sysinst/arch/mvme68k/msg.md.pl: revision 1.2
	usr.sbin/sysinst/arch/mvme68k/msg.md.pl: revision 1.3
	usr.sbin/sysinst/bsddisklabel.c: revision 1.39
	usr.sbin/sysinst/arch/mvme68k/msg.md.de: revision 1.2
	usr.sbin/sysinst/arch/mac68k/md.c: revision 1.9
	usr.sbin/sysinst/disklabel.c: revision 1.35
	usr.sbin/sysinst/arch/mvme68k/msg.md.de: revision 1.3
	usr.sbin/sysinst/defs.h: revision 1.55
	usr.sbin/sysinst/disks.c: revision 1.63
	usr.sbin/sysinst/disks.c: revision 1.64
	usr.sbin/sysinst/mbr.c: revision 1.31
	usr.sbin/sysinst/disks.c: revision 1.65
	usr.sbin/sysinst/txtwalk.c: revision 1.3
	usr.sbin/sysinst/txtwalk.c: revision 1.4
	usr.sbin/sysinst/arch/mvme68k/msg.md.en: revision 1.2
	usr.sbin/sysinst/arch/mvme68k/msg.md.en: revision 1.3
	usr.sbin/sysinst/msg.mi.fr: revision 1.26
	usr.sbin/sysinst/msg.mi.pl: revision 1.29
	usr.sbin/sysinst/arch/mvme68k/msg.md.es: revision 1.2
	usr.sbin/sysinst/upgrade.c: revision 1.15
	usr.sbin/sysinst/arch/mvme68k/msg.md.es: revision 1.3
	usr.sbin/sysinst/upgrade.c: revision 1.16
	usr.sbin/sysinst/partman.c: revision 1.50
	usr.sbin/sysinst/msg.mi.de: revision 1.21
remove unused "emptypart" message (or moved to ifdef notyet area)
PR install/54921: message "ordering" takes a %s argument.
PR install/54921: skip non-user partitions when checking for overlaps
bootxx_name() - fix oversight in previous change (do not assume first
partition is the root partition)
PR install/54934: always use -f on the installboot invocation. We come
here post-newfs (and maybe should have dd'd zeros to the start of the
disk before newfs instead).
Remove a bogus assert: when reading disklabel partitions and the outer
(MBR) partitioning has changed, but the changes have not yet been written
back to disk, we need to ignore the kernels idea of the disklabel and
instead continue with an empty one.
Deal with partitioning schemes having no inner counterpart.
Avoid NULL derefs.
Do not assum a partitioning scheme that supports innner partitions always
needs to actually have such partitions defined.
PR bin/54944: deal with escaped spaces in NAME= syntax in /etc/fstab.
PR bin/54944: explicitly reject GPT protective MBRs.
PR bin/54944: make the "explicit single wedge" selection also work for
upgrades.
Reformat a query to add an automatically detected swap partition
so it fits on narrow screens.
Make re-install sets also work for an explicit selected root wedge
Fix copy&pasto in previous - from kre.
Only a single partition can ever have the "extend" flag (grow to available
size).
Do not use -P for tar extractions - the in tree tar has been fixed.
Finish conversion to generic partitioning backend

Revision 1.65 / (download) - annotate - [select for diffs], Thu Feb 6 19:08:38 2020 UTC (4 years, 2 months ago) by martin
Branch: MAIN
Changes since 1.64: +10 -4 lines
Diff to previous 1.64 (colored) to selected 1.4.2.2 (colored)

PR bin/54944: make the "explicit single wedge" selection also work for
upgrades.

Revision 1.64 / (download) - annotate - [select for diffs], Thu Feb 6 16:28:10 2020 UTC (4 years, 2 months ago) by martin
Branch: MAIN
Changes since 1.63: +11 -1 lines
Diff to previous 1.63 (colored) to selected 1.4.2.2 (colored)

PR bin/54944: deal with escaped spaces in NAME= syntax in /etc/fstab.

Revision 1.63 / (download) - annotate - [select for diffs], Thu Feb 6 10:42:06 2020 UTC (4 years, 2 months ago) by martin
Branch: MAIN
Changes since 1.62: +2 -2 lines
Diff to previous 1.62 (colored) to selected 1.4.2.2 (colored)

bootxx_name() - fix oversight in previous change (do not assume first
partition is the root partition)

Revision 1.44.2.13 / (download) - annotate - [select for diffs], Tue Jan 28 10:17:58 2020 UTC (4 years, 2 months ago) by msaitoh
Branch: netbsd-9
CVS Tags: netbsd-9-0-RC2
Changes since 1.44.2.12: +55 -39 lines
Diff to previous 1.44.2.12 (colored) to branchpoint 1.44 (colored) to selected 1.4.2.2 (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.62 / (download) - annotate - [select for diffs], Mon Jan 27 21:21:22 2020 UTC (4 years, 2 months ago) by martin
Branch: MAIN
Changes since 1.61: +15 -10 lines
Diff to previous 1.61 (colored) to selected 1.4.2.2 (colored)

Fix support for non-512-byte/sector disks again after I broke it when
introducing the abstract partition backends.

Revision 1.61 / (download) - annotate - [select for diffs], Fri Jan 24 07:31:15 2020 UTC (4 years, 2 months ago) by martin
Branch: MAIN
Changes since 1.60: +2 -2 lines
Diff to previous 1.60 (colored) to selected 1.4.2.2 (colored)

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.

Revision 1.60 / (download) - annotate - [select for diffs], Thu Jan 16 16:47:19 2020 UTC (4 years, 3 months ago) by martin
Branch: MAIN
Changes since 1.59: +29 -17 lines
Diff to previous 1.59 (colored) to selected 1.4.2.2 (colored)

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@.

Revision 1.59 / (download) - annotate - [select for diffs], Thu Jan 9 13:22:30 2020 UTC (4 years, 3 months ago) by martin
Branch: MAIN
Changes since 1.58: +13 -14 lines
Diff to previous 1.58 (colored) to selected 1.4.2.2 (colored)

Finish conversion of extended partitioning parts to new abstract
backend interface. XXX still could use a lot of polishing.

Revision 1.44.2.12 / (download) - annotate - [select for diffs], Tue Dec 17 09:44:50 2019 UTC (4 years, 4 months ago) by msaitoh
Branch: netbsd-9
Changes since 1.44.2.11: +7 -2 lines
Diff to previous 1.44.2.11 (colored) to branchpoint 1.44 (colored) to selected 1.4.2.2 (colored)

Pull up following revision(s) (requested by martin in ticket #560):
	usr.sbin/sysinst/partitions.h: revision 1.11
	usr.sbin/sysinst/defs.h: revision 1.49
	usr.sbin/sysinst/mbr.c: revision 1.23
	usr.sbin/sysinst/msg.mi.en: revision 1.26
	usr.sbin/sysinst/disks.c: revision 1.58
	usr.sbin/sysinst/arch/evbarm/menus.md.pl: revision 1.2
	usr.sbin/sysinst/msg.mi.es: revision 1.20
	usr.sbin/sysinst/arch/mvme68k/md.c: revision 1.9
	usr.sbin/sysinst/gpt.c: revision 1.13
	usr.sbin/sysinst/arch/evbarm/md.c: revision 1.10
	usr.sbin/sysinst/arch/arc/md.c: revision 1.10
	usr.sbin/sysinst/disklabel.c: revision 1.18
	usr.sbin/sysinst/bsddisklabel.c: revision 1.33
	usr.sbin/sysinst/disklabel.c: revision 1.19
	usr.sbin/sysinst/main.c: revision 1.19
	usr.sbin/sysinst/partman.c: revision 1.45
	usr.sbin/sysinst/arch/alpha/md.c: revision 1.7
	usr.sbin/sysinst/msg.mi.de: revision 1.19
	usr.sbin/sysinst/arch/evbarm/menus.md.en: revision 1.2
	usr.sbin/sysinst/arch/x68k/md.h: revision 1.4
	usr.sbin/sysinst/arch/x68k/md.c: revision 1.9
	usr.sbin/sysinst/arch/evbarm/menus.md.es: revision 1.2
	usr.sbin/sysinst/wskbd.c: revision 1.4
	usr.sbin/sysinst/label.c: revision 1.15
	usr.sbin/sysinst/arch/amiga/md.h: revision 1.5
	usr.sbin/sysinst/label.c: revision 1.16
	usr.sbin/sysinst/arch/hp300/md.c: revision 1.9
	usr.sbin/sysinst/arch/emips/md.c: revision 1.8
	usr.sbin/sysinst/label.c: revision 1.17
	usr.sbin/sysinst/arch/pmax/md.c: revision 1.7
	usr.sbin/sysinst/partitions.c: revision 1.6
	usr.sbin/sysinst/arch/prep/md.c: revision 1.10
	usr.sbin/sysinst/arch/mipsco/md.c: revision 1.7
	usr.sbin/sysinst/partitions.c: revision 1.7
	usr.sbin/sysinst/partitions.c: revision 1.8
	usr.sbin/sysinst/arch/ews4800mips/md.c: revision 1.5
	usr.sbin/sysinst/disklabel.c: revision 1.20
	usr.sbin/sysinst/arch/evbarm/menus.md.fr: revision 1.2
	usr.sbin/sysinst/msg.mi.fr: revision 1.24
	usr.sbin/sysinst/disklabel.c: revision 1.21
	usr.sbin/sysinst/partitions.h: revision 1.9
	usr.sbin/sysinst/msg.mi.pl: revision 1.27
	usr.sbin/sysinst/disklabel.c: revision 1.22
	usr.sbin/sysinst/disklabel.c: revision 1.23
	usr.sbin/sysinst/arch/i386/md.c: revision 1.27
	usr.sbin/sysinst/disklabel.c: revision 1.24
	usr.sbin/sysinst/disklabel.c: revision 1.25
	usr.sbin/sysinst/arch/cobalt/md.h: revision 1.5
	usr.sbin/sysinst/disklabel.c: revision 1.26
	usr.sbin/sysinst/disklabel.c: revision 1.27
	usr.sbin/sysinst/partitions.h: revision 1.10
	usr.sbin/sysinst/arch/cobalt/md.c: revision 1.10
PR install/54582: allow MD code to disable on-disk presence verification
of "real" disklabels. Auto-enable this (at run time) when there is no other
partitioning scheme but disklabel configured.
Hard-coded enable this for x68k to allow using kernel based translations
for native Human68k partitions.
Get rid of the evbarm preliminary menu: do not bother to ask the user
whether this is a RPi - query the FDT instead.
PR 54065: add optional "old compat" variant of ext2fs in file system
type selection and use that as default for the cobalt boot file system.
For now rely on the kernel mapping native RDB partitions.
Fix detection of existing disklabels in the case when we only have
the disklabel partitioning scheme available.
Fix DISKLABEL_NO_ONDISK_VERIFY (accidently disabled in previous)
Fix inverted comparison
Do not try to change the keyboard layout if we are not running on the
console.
When trying to tell a fictious but empty label from a real one, skip
partition a if it has the same start and size as the raw partition.
Remove bogus assert.
When finding (paritioning scheme native) partition types for file systems
from our install description, pass the partition type (not only the file
system type). Sometimes (e.g. EFI boot partition on GPT) the filesystem
type (MSDOS) is not a unique selector.
Adapt MD parts to changes in get_fs_part_type (pass partition type).
If a fictious label has no RAW_PART assume there is no valid disk label.
Pass proper track size when initializing the default alignment - this is
important with sunlabels.
Fix overlapping partitions display
Reject (what we consider) empty/invalid fake disklabels no matter whether
we have other partitioning schemes available or not.
Do not show disklabel command invocation by default (only if there are
errors).
After installing boot blocks with RUN_NO_CLEAR (and handling the
potential errors) make sure to clear the stdscreen.

Revision 1.58 / (download) - annotate - [select for diffs], Wed Dec 11 19:23:37 2019 UTC (4 years, 4 months ago) by martin
Branch: MAIN
Changes since 1.57: +7 -2 lines
Diff to previous 1.57 (colored) to selected 1.4.2.2 (colored)

PR 54065: add optional "old compat" variant of ext2fs in file system
type selection and use that as default for the cobalt boot file system.

Revision 1.44.2.11 / (download) - annotate - [select for diffs], Sun Nov 17 13:45:26 2019 UTC (4 years, 4 months ago) by msaitoh
Branch: netbsd-9
CVS Tags: netbsd-9-0-RC1
Changes since 1.44.2.10: +474 -3 lines
Diff to previous 1.44.2.10 (colored) to branchpoint 1.44 (colored) to selected 1.4.2.2 (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.57 / (download) - annotate - [select for diffs], Sat Nov 16 20:26:59 2019 UTC (4 years, 5 months ago) by martin
Branch: MAIN
CVS Tags: phil-wifi-20191119
Changes since 1.56: +4 -5 lines
Diff to previous 1.56 (colored) to selected 1.4.2.2 (colored)

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

Revision 1.56 / (download) - annotate - [select for diffs], Wed Nov 13 18:57:26 2019 UTC (4 years, 5 months ago) by martin
Branch: MAIN
Changes since 1.55: +4 -1 lines
Diff to previous 1.55 (colored) to selected 1.4.2.2 (colored)

Make cloning support optional, so we can save some space on very small
install media.

Revision 1.55 / (download) - annotate - [select for diffs], Tue Nov 12 16:33:14 2019 UTC (4 years, 5 months ago) by martin
Branch: MAIN
Changes since 1.54: +471 -2 lines
Diff to previous 1.54 (colored) to selected 1.4.2.2 (colored)

Add options to the various partitioning stages that allow cloning of
alien partitions (optionally including data).

Revision 1.44.2.10 / (download) - annotate - [select for diffs], Mon Oct 28 02:53:17 2019 UTC (4 years, 5 months ago) by msaitoh
Branch: netbsd-9
Changes since 1.44.2.9: +6 -4 lines
Diff to previous 1.44.2.9 (colored) to branchpoint 1.44 (colored) to selected 1.4.2.2 (colored)

Pull up following revision(s) (requested by martin in ticket #382):
	usr.sbin/sysinst/part_edit.c: revision 1.10
	usr.sbin/sysinst/part_edit.c: revision 1.9
	usr.sbin/sysinst/partitions.c: revision 1.3
	usr.sbin/sysinst/partitions.c: revision 1.4
	usr.sbin/sysinst/partitions.h: revision 1.7
	usr.sbin/sysinst/bsddisklabel.c: revision 1.29
	usr.sbin/sysinst/disks.c: revision 1.54
Honor the "no_mbr" flag (used especially for raid and xbd devices)
On device where we do not want a MBR (raid, xbd) skip the MBR partitioning
scheme when trying to read partitions from disk. The generic reader will
fall back to disklabel then.
In non-MBR specific files, #ifdef all tests for MBR for architectures
that do not even compile in MBR support.

Revision 1.54 / (download) - annotate - [select for diffs], Fri Oct 25 12:49:58 2019 UTC (4 years, 5 months ago) by martin
Branch: MAIN
Changes since 1.53: +6 -4 lines
Diff to previous 1.53 (colored) to selected 1.4.2.2 (colored)

On device where we do not want a MBR (raid, xbd) skip the MBR partitioning
scheme when trying to read partitions from disk. The generic reader will
fall back to disklabel then.

Revision 1.44.2.9 / (download) - annotate - [select for diffs], Wed Oct 23 06:30:16 2019 UTC (4 years, 5 months ago) by msaitoh
Branch: netbsd-9
Changes since 1.44.2.8: +35 -8 lines
Diff to previous 1.44.2.8 (colored) to branchpoint 1.44 (colored) to selected 1.4.2.2 (colored)

Pull up following revision(s) (requested by martin in ticket #369):
	usr.sbin/sysinst/disks.c: revision 1.51
PR install/54480: when upgrading a system and re-mounting the target /
with proper options, and the installed system does not use NAME= syntax
in fstab(5), use the device name we used to get here, instead of the
name from fstab, it might be different to what the real system calls the
device (compact flash root showing up as wd0 native, but sd? on the
card reader used for updating it right now).
This is an abuse of the upgrade functionality and in general pretty dangerous
when multiple devices are used in the upgraded fstab (e.g. separate /usr),
and it used to work more by accident with the old code.
However, it is a quite usefull way to upgrade tiny systems with compact flash
root, and it used to work - so support it properly (as far as we can).

Revision 1.44.2.8 / (download) - annotate - [select for diffs], Wed Oct 23 06:04:44 2019 UTC (4 years, 5 months ago) by msaitoh
Branch: netbsd-9
Changes since 1.44.2.7: +4 -1 lines
Diff to previous 1.44.2.7 (colored) to branchpoint 1.44 (colored) to selected 1.4.2.2 (colored)

Pull up following revision(s) (requested by martin in ticket #365):
	usr.sbin/sysinst/bsddisklabel.c: revision 1.28
	usr.sbin/sysinst/disks.c: revision 1.53
Skip unwanted (zero sized) partitions.

Revision 1.44.2.7 / (download) - annotate - [select for diffs], Wed Oct 23 05:58:13 2019 UTC (4 years, 5 months ago) by msaitoh
Branch: netbsd-9
Changes since 1.44.2.6: +21 -3 lines
Diff to previous 1.44.2.6 (colored) to branchpoint 1.44 (colored) to selected 1.4.2.2 (colored)

Pull up following revision(s) (requested by martin in ticket #362):
	usr.sbin/sysinst/disks.c: revision 1.52
Remove a hardcoded assumption that for BIOS boot we always will have
the first partition as root - in mixed EFI/BIOS setups this might not
be true (and in general the user is free to define arbitrary orders).
Pointed out by Robert Nestor.

Revision 1.53 / (download) - annotate - [select for diffs], Mon Oct 21 16:10:54 2019 UTC (4 years, 5 months ago) by martin
Branch: MAIN
Changes since 1.52: +4 -1 lines
Diff to previous 1.52 (colored) to selected 1.4.2.2 (colored)

Skip unwanted (zero sized) partitions.

Revision 1.52 / (download) - annotate - [select for diffs], Mon Oct 21 14:07:42 2019 UTC (4 years, 5 months ago) by martin
Branch: MAIN
Changes since 1.51: +21 -3 lines
Diff to previous 1.51 (colored) to selected 1.4.2.2 (colored)

Remove a hardcoded assumption that for BIOS boot we always will have
the first partition as root - in mixed EFI/BIOS setups this might not
be true (and in general the user is free to define arbitrary orders).
Pointed out by Robert Nestor.

Revision 1.51 / (download) - annotate - [select for diffs], Tue Aug 20 06:38:17 2019 UTC (4 years, 7 months ago) by martin
Branch: MAIN
Changes since 1.50: +35 -8 lines
Diff to previous 1.50 (colored) to selected 1.4.2.2 (colored)

PR install/54480: when upgrading a system and re-mounting the target /
with proper options, and the installed system does not use NAME= syntax
in fstab(5), use the device name we used to get here, instead of the
name from fstab, it might be different to what the real system calls the
device (compact flash root showing up as wd0 native, but sd? on the
card reader used for updating it right now).

This is an abuse of the upgrade functionality and in general pretty dangerous
when multiple devices are used in the upgraded fstab (e.g. separate /usr),
and it used to work more by accident with the old code.

However, it is a quite usefull way to upgrade tiny systems with compact flash
root, and it used to work - so support it properly (as far as we can).

Revision 1.44.2.6 / (download) - annotate - [select for diffs], Fri Aug 9 06:21:00 2019 UTC (4 years, 8 months ago) by msaitoh
Branch: netbsd-9
Changes since 1.44.2.5: +10 -3 lines
Diff to previous 1.44.2.5 (colored) to branchpoint 1.44 (colored) to selected 1.4.2.2 (colored)

Pull up following revision(s) (requested by martin in ticket #33):
	usr.sbin/sysinst/disks.c: revision 1.50
Do not even consider to fsck partitions where we do not know the file
system type. Add v7fs support.

Revision 1.44.2.5 / (download) - annotate - [select for diffs], Fri Aug 9 06:20:12 2019 UTC (4 years, 8 months ago) by msaitoh
Branch: netbsd-9
Changes since 1.44.2.4: +2 -2 lines
Diff to previous 1.44.2.4 (colored) to branchpoint 1.44 (colored) to selected 1.4.2.2 (colored)

Pull up following revision(s) (requested by martin in ticket #32):
	usr.sbin/sysinst/disks.c: revision 1.49
Do not try to fsck partitions we are never going to mount.
Found by Andreas Gustafsson's baremetal test bed.

Revision 1.50 / (download) - annotate - [select for diffs], Thu Aug 8 13:45:19 2019 UTC (4 years, 8 months ago) by martin
Branch: MAIN
Changes since 1.49: +10 -3 lines
Diff to previous 1.49 (colored) to selected 1.4.2.2 (colored)

Do not even consider to fsck partitions where we do not know the file
system type. Add v7fs support.

Revision 1.49 / (download) - annotate - [select for diffs], Thu Aug 8 11:41:16 2019 UTC (4 years, 8 months ago) by martin
Branch: MAIN
Changes since 1.48: +2 -2 lines
Diff to previous 1.48 (colored) to selected 1.4.2.2 (colored)

Do not try to fsck partitions we are never going to mount.
Found by Andreas Gustafsson's baremetal test bed.

Revision 1.44.2.4 / (download) - annotate - [select for diffs], Thu Aug 8 05:53:03 2019 UTC (4 years, 8 months ago) by msaitoh
Branch: netbsd-9
Changes since 1.44.2.3: +2 -2 lines
Diff to previous 1.44.2.3 (colored) to branchpoint 1.44 (colored) to selected 1.4.2.2 (colored)

Pull up following revision(s) (requested by martin in ticket #29):
	usr.sbin/sysinst/disks.c: revision 1.48
When creating the /etc/fstab for new installs, the sense of the "noauto"
flag was inverted (editor mishap?)

Revision 1.44.2.3 / (download) - annotate - [select for diffs], Thu Aug 8 05:51:43 2019 UTC (4 years, 8 months ago) by msaitoh
Branch: netbsd-9
Changes since 1.44.2.2: +249 -61 lines
Diff to previous 1.44.2.2 (colored) to branchpoint 1.44 (colored) to selected 1.4.2.2 (colored)

Pull up following revision(s) (requested by martin in ticket #28):
	usr.sbin/sysinst/disklabel.c: revision 1.11
	usr.sbin/sysinst/target.c: revision 1.10
	usr.sbin/sysinst/disks.c: revision 1.47
	usr.sbin/sysinst/txtwalk.c: revision 1.2
	usr.sbin/sysinst/partitions.h: revision 1.5
	usr.sbin/sysinst/txtwalk.h: revision 1.2
	usr.sbin/sysinst/arch/ews4800mips/md.h: revision 1.4
	usr.sbin/sysinst/gpt.c: revision 1.9
	usr.sbin/sysinst/defs.h: revision 1.43
Support upgrade of systems using NAME= syntax in /etc/fstab.
Make supported file system types dynamic - instead of hardcoding the
available types at compile time, check for available newfs_* helper
binaries in the actual install environment at runtime.

Revision 1.48 / (download) - annotate - [select for diffs], Wed Aug 7 10:12:32 2019 UTC (4 years, 8 months ago) by martin
Branch: MAIN
Changes since 1.47: +2 -2 lines
Diff to previous 1.47 (colored) to selected 1.4.2.2 (colored)

When creating the /etc/fstab for new installs, the sense of the "noauto"
flag was inverted (editor mishap?)

Revision 1.47 / (download) - annotate - [select for diffs], Wed Aug 7 10:08:04 2019 UTC (4 years, 8 months ago) by martin
Branch: MAIN
Changes since 1.46: +249 -61 lines
Diff to previous 1.46 (colored) to selected 1.4.2.2 (colored)

Support upgrade of systems using NAME= syntax in /etc/fstab.

Make supported file system types dynamic - instead of hardcoding the
available types at compile time, check for available newfs_* helper
binaries in the actual install environment at runtime.

Revision 1.44.2.2 / (download) - annotate - [select for diffs], Mon Aug 5 04:36:42 2019 UTC (4 years, 8 months ago) by msaitoh
Branch: netbsd-9
Changes since 1.44.2.1: +3 -6 lines
Diff to previous 1.44.2.1 (colored) to branchpoint 1.44 (colored) to selected 1.4.2.2 (colored)

Pull up following revision(s) (requested by martin in ticket #14):
	usr.sbin/sysinst/disks.c: revision 1.46
Properly handle partitions that we were requested to mount but not newfs.

Revision 1.46 / (download) - annotate - [select for diffs], Sat Aug 3 12:09:22 2019 UTC (4 years, 8 months ago) by martin
Branch: MAIN
Changes since 1.45: +3 -6 lines
Diff to previous 1.45 (colored) to selected 1.4.2.2 (colored)

Properly handle partitions that we were requested to mount but not newfs.

Revision 1.44.2.1 / (download) - annotate - [select for diffs], Fri Aug 2 05:41:46 2019 UTC (4 years, 8 months ago) by msaitoh
Branch: netbsd-9
Changes since 1.44: +21 -5 lines
Diff to previous 1.44 (colored) to selected 1.4.2.2 (colored)

Pull up following revision(s) (requested by martin in ticket #4):
	usr.sbin/sysinst/target.c: revision 1.9
	usr.sbin/sysinst/disks.c: revision 1.45
	usr.sbin/sysinst/label.c: revision 1.11
Do not strip the trailing / on root mounts when evaluation "last mounted
on". Fix some /dev/ and raw vs. block device confusion on system upgrades.

Revision 1.45 / (download) - annotate - [select for diffs], Thu Aug 1 16:32:06 2019 UTC (4 years, 8 months ago) by martin
Branch: MAIN
Changes since 1.44: +21 -5 lines
Diff to previous 1.44 (colored) to selected 1.4.2.2 (colored)

Do not strip the trailing / on root mounts when evaluation "last mounted
on". Fix some /dev/ and raw vs. block device confusion on system upgrades.

Revision 1.44 / (download) - annotate - [select for diffs], Thu Jul 25 13:11:15 2019 UTC (4 years, 8 months ago) by martin
Branch: MAIN
CVS Tags: netbsd-9-base
Branch point for: netbsd-9
Changes since 1.43: +18 -6 lines
Diff to previous 1.43 (colored) to selected 1.4.2.2 (colored)

When re-discovering a disk where we have free the partitions, read
the current partitions again (they might have changed).

Revision 1.43 / (download) - annotate - [select for diffs], Wed Jul 24 14:35:02 2019 UTC (4 years, 8 months ago) by martin
Branch: MAIN
Changes since 1.42: +2 -2 lines
Diff to previous 1.42 (colored) to selected 1.4.2.2 (colored)

Whenever offering "current system" as target, also offer the last disk
we found (not one less - oops).

Revision 1.42 / (download) - annotate - [select for diffs], Wed Jul 24 02:38:29 2019 UTC (4 years, 8 months ago) by msaitoh
Branch: MAIN
Changes since 1.41: +2 -2 lines
Diff to previous 1.41 (colored) to selected 1.4.2.2 (colored)

 Fix typo in comment (s/alreay/already/).

Revision 1.41 / (download) - annotate - [select for diffs], Wed Jul 24 02:37:17 2019 UTC (4 years, 8 months ago) by msaitoh
Branch: MAIN
Changes since 1.40: +2 -2 lines
Diff to previous 1.40 (colored) to selected 1.4.2.2 (colored)

Fix typo in comment (s/partion/partition/).

Revision 1.40 / (download) - annotate - [select for diffs], Tue Jul 23 18:13:40 2019 UTC (4 years, 8 months ago) by martin
Branch: MAIN
Changes since 1.39: +54 -9 lines
Diff to previous 1.39 (colored) to selected 1.4.2.2 (colored)

For upgrade / re-install allow the currently running system as a target
in the "disk" selection.

Revision 1.39 / (download) - annotate - [select for diffs], Tue Jul 23 15:23:14 2019 UTC (4 years, 8 months ago) by martin
Branch: MAIN
Changes since 1.38: +14 -5 lines
Diff to previous 1.38 (colored) to selected 1.4.2.2 (colored)

When searching for a partition that may be the root partition for upgrading,
allow "/", "/targetroot" and "/altroot" as potential last mount points.

Revision 1.38 / (download) - annotate - [select for diffs], Sun Jul 14 11:25:10 2019 UTC (4 years, 9 months ago) by martin
Branch: MAIN
Changes since 1.37: +4 -6 lines
Diff to previous 1.37 (colored) to selected 1.4.2.2 (colored)

Follow our internal install instructions correctly: newfs when a partition
is marked for it, don't second guess from mount point or similar.

Revision 1.37 / (download) - annotate - [select for diffs], Sat Jul 13 17:13:36 2019 UTC (4 years, 9 months ago) by martin
Branch: MAIN
Changes since 1.36: +4 -4 lines
Diff to previous 1.36 (colored) to selected 1.4.2.2 (colored)

We may call md_pre_mount() multiple times for the same install set,
so pass an additional index argument so MD code knows which part
of the install will be mounted next.

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

no need to initialize fields that are already 0.

Revision 1.35 / (download) - annotate - [select for diffs], Fri Jun 21 21:54:39 2019 UTC (4 years, 9 months ago) by christos
Branch: MAIN
Changes since 1.34: +30 -113 lines
Diff to previous 1.34 (colored) to selected 1.4.2.2 (colored)

refactor disk ioctl stuff to make it smaller.

Revision 1.34 / (download) - annotate - [select for diffs], Thu Jun 20 15:49:20 2019 UTC (4 years, 9 months ago) by christos
Branch: MAIN
Changes since 1.33: +1 -3 lines
Diff to previous 1.33 (colored) to selected 1.4.2.2 (colored)

devdev is an array, remove NULL check (rin)

Revision 1.33 / (download) - annotate - [select for diffs], Thu Jun 20 00:43:55 2019 UTC (4 years, 9 months ago) by christos
Branch: MAIN
Changes since 1.32: +5 -5 lines
Diff to previous 1.32 (colored) to selected 1.4.2.2 (colored)

Use _fmt_ msg_ methods when formats are needed.

Revision 1.32 / (download) - annotate - [select for diffs], Sat Jun 15 08:20:33 2019 UTC (4 years, 10 months ago) by martin
Branch: MAIN
Changes since 1.31: +3 -3 lines
Diff to previous 1.31 (colored) to selected 1.4.2.2 (colored)

When setting up a "use whole disk" single outer partition, force an
empty set of inner partitions immediately,

This avoids reading old (stale) partitions (e.g. disklabel that
survived cleaning and re-creating the MBR with the MBR NetBSD partition
starting at the same offset) later.

Revision 1.31 / (download) - annotate - [select for diffs], Thu Jun 13 19:13:05 2019 UTC (4 years, 10 months ago) by martin
Branch: MAIN
Changes since 1.30: +2 -2 lines
Diff to previous 1.30 (colored) to selected 1.4.2.2 (colored)

Disable debug output

Revision 1.30 / (download) - annotate - [select for diffs], Wed Jun 12 06:20:17 2019 UTC (4 years, 10 months ago) by martin
Branch: MAIN
Changes since 1.29: +498 -526 lines
Diff to previous 1.29 (colored) to selected 1.4.2.2 (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.16.2.1 / (download) - annotate - [select for diffs], Mon Jun 10 22:10:38 2019 UTC (4 years, 10 months ago) by christos
Branch: phil-wifi
Changes since 1.16: +256 -109 lines
Diff to previous 1.16 (colored) to selected 1.4.2.2 (colored)

Sync with HEAD

Revision 1.29 / (download) - annotate - [select for diffs], Sun Feb 3 10:48:47 2019 UTC (5 years, 2 months ago) by mrg
Branch: MAIN
CVS Tags: phil-wifi-20190609
Changes since 1.28: +2 -2 lines
Diff to previous 1.28 (colored) to selected 1.4.2.2 (colored)

- enlarge buffer to avoid snprintf() truncation

Revision 1.13.12.4 / (download) - annotate - [select for diffs], Wed Dec 26 14:02:12 2018 UTC (5 years, 3 months ago) by pgoyette
Branch: pgoyette-compat
CVS Tags: pgoyette-compat-merge-20190127
Changes since 1.13.12.3: +2 -2 lines
Diff to previous 1.13.12.3 (colored) to branchpoint 1.13 (colored) next main 1.14 (colored) to selected 1.4.2.2 (colored)

Sync with HEAD, resolve a few conflicts

Revision 1.28 / (download) - annotate - [select for diffs], Tue Nov 27 17:13:41 2018 UTC (5 years, 4 months ago) by martin
Branch: MAIN
CVS Tags: pgoyette-compat-20190127, pgoyette-compat-20190118, pgoyette-compat-1226
Changes since 1.27: +2 -2 lines
Diff to previous 1.27 (colored) to selected 1.4.2.2 (colored)

Cosmetics: consistently use MEG and GIG defines for size calculations

Revision 1.13.12.3 / (download) - annotate - [select for diffs], Mon Nov 26 01:52:55 2018 UTC (5 years, 4 months ago) by pgoyette
Branch: pgoyette-compat
Changes since 1.13.12.2: +254 -107 lines
Diff to previous 1.13.12.2 (colored) to branchpoint 1.13 (colored) to selected 1.4.2.2 (colored)

Sync with HEAD, resolve a couple of conflicts

Revision 1.27 / (download) - annotate - [select for diffs], Wed Nov 14 02:30:00 2018 UTC (5 years, 5 months ago) by martin
Branch: MAIN
CVS Tags: pgoyette-compat-1126
Changes since 1.26: +51 -17 lines
Diff to previous 1.26 (colored) to selected 1.4.2.2 (colored)

Slightly enhance previous: create two utility functions checking for
partitionability and boot code requirements, use a generic match helper
function for both and fully check the device name.

Revision 1.26 / (download) - annotate - [select for diffs], Tue Nov 13 17:22:04 2018 UTC (5 years, 5 months ago) by bouyer
Branch: MAIN
Changes since 1.25: +6 -1 lines
Diff to previous 1.25 (colored) to selected 1.4.2.2 (colored)

Skip mbr for xbd and raid devices, as it was before Nov. 5 commits.
anita xen installs should work again.

Revision 1.25 / (download) - annotate - [select for diffs], Sun Nov 11 10:06:09 2018 UTC (5 years, 5 months ago) by martin
Branch: MAIN
Changes since 1.24: +14 -6 lines
Diff to previous 1.24 (colored) to selected 1.4.2.2 (colored)

Skip floopies when selecting an install target, but do not add them to
the CD list when selecting an installation source device.

Revision 1.24 / (download) - annotate - [select for diffs], Sun Nov 11 09:17:10 2018 UTC (5 years, 5 months ago) by martin
Branch: MAIN
Changes since 1.23: +16 -2 lines
Diff to previous 1.23 (colored) to selected 1.4.2.2 (colored)

Do not allow installation onto floppy disk - can be overriden by
architectures where it would make sense (none currently), and also
works around a bug in QEMU for sparc that kills our -current anita tests.

Revision 1.23 / (download) - annotate - [select for diffs], Fri Nov 9 15:20:36 2018 UTC (5 years, 5 months ago) by martin
Branch: MAIN
Changes since 1.22: +3 -2 lines
Diff to previous 1.22 (colored) to selected 1.4.2.2 (colored)

Fix test for active root partition when booting from a wedge

Revision 1.22 / (download) - annotate - [select for diffs], Thu Nov 8 20:29:37 2018 UTC (5 years, 5 months ago) by martin
Branch: MAIN
Changes since 1.21: +7 -5 lines
Diff to previous 1.21 (colored) to selected 1.4.2.2 (colored)

Adapt other cd-device query functions to new world order, fix
default cd device (assume 'a' partition).

Revision 1.21 / (download) - annotate - [select for diffs], Thu Nov 8 11:56:56 2018 UTC (5 years, 5 months ago) by martin
Branch: MAIN
Changes since 1.20: +154 -120 lines
Diff to previous 1.20 (colored) to selected 1.4.2.2 (colored)

Untangle disk enumeration a bit more.

Revision 1.20 / (download) - annotate - [select for diffs], Thu Nov 8 11:15:58 2018 UTC (5 years, 5 months ago) by martin
Branch: MAIN
Changes since 1.19: +5 -23 lines
Diff to previous 1.19 (colored) to selected 1.4.2.2 (colored)

Simplify CD device name matching by using fnmatch(3), suggested
by Christoph Badura.

Revision 1.19 / (download) - annotate - [select for diffs], Wed Nov 7 21:59:30 2018 UTC (5 years, 5 months ago) by martin
Branch: MAIN
Changes since 1.18: +17 -6 lines
Diff to previous 1.18 (colored) to selected 1.4.2.2 (colored)

Fix CD_NAMES against concrete instances comparision - if CD_NAMES
entries have a wildcard, strip device instance number off from both
comparands.

Revision 1.18 / (download) - annotate - [select for diffs], Wed Nov 7 21:20:23 2018 UTC (5 years, 5 months ago) by martin
Branch: MAIN
Changes since 1.17: +54 -7 lines
Diff to previous 1.17 (colored) to selected 1.4.2.2 (colored)

Unify handling of CDROM device names.
Skip CDs when looking for install targets (we do not support installing
onto a blueray with UDF).

Fix search for the default CDROM device and the CD we booted from
for ports with nonstandard CDROM device names.

Revision 1.17 / (download) - annotate - [select for diffs], Mon Nov 5 19:45:56 2018 UTC (5 years, 5 months ago) by martin
Branch: MAIN
Changes since 1.16: +70 -61 lines
Diff to previous 1.16 (colored) to selected 1.4.2.2 (colored)

Get rid of hard coded disk names and use sysctl hw.disknames
instead.

Revision 1.13.12.2 / (download) - annotate - [select for diffs], Mon Jun 25 07:26:12 2018 UTC (5 years, 9 months ago) by pgoyette
Branch: pgoyette-compat
Changes since 1.13.12.1: +245 -43 lines
Diff to previous 1.13.12.1 (colored) to branchpoint 1.13 (colored) to selected 1.4.2.2 (colored)

Sync with HEAD

Revision 1.13.6.2 / (download) - annotate - [select for diffs], Tue Jun 5 08:12:54 2018 UTC (5 years, 10 months ago) by bouyer
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.13.6.1: +245 -43 lines
Diff to previous 1.13.6.1 (colored) to branchpoint 1.13 (colored) next main 1.14 (colored) to selected 1.4.2.2 (colored)

Pull up following revision(s) (requested by martin in ticket #860):
	usr.sbin/sysinst/msg.mi.de: revision 1.7
	usr.sbin/sysinst/arch/i386/md.c: revision 1.10
	usr.sbin/sysinst/msg.mi.fr: revision 1.10
	usr.sbin/sysinst/arch/i386/md.c: revision 1.11
	usr.sbin/sysinst/menus.mi: revision 1.13
	usr.sbin/sysinst/arch/i386/md.c: revision 1.9
	usr.sbin/sysinst/msg.mi.es: revision 1.7
	usr.sbin/sysinst/msg.mi.en: revision 1.11
	usr.sbin/sysinst/mbr.c: revision 1.6
	usr.sbin/sysinst/disks.c: revision 1.15
	usr.sbin/sysinst/bsddisklabel.c: revision 1.4
	usr.sbin/sysinst/disks.c: revision 1.16
	usr.sbin/sysinst/msg.mi.pl: revision 1.9
	usr.sbin/sysinst/defs.h: revision 1.11
Add an option to install onto a pre-configured wedge.
Greatly simmplifies (U)EFI setups (but does not fully automate them yet).
In the generated /etc/fstab, do not use the (temporary, during sysinst)
path name for the file in the comment, but instead the one it will
have on the target system.
Reorder fetch options: http before ftp
Default console device and speed to that used by syinst
add missing brace.

Revision 1.16 / (download) - annotate - [select for diffs], Sun Jun 3 13:18:06 2018 UTC (5 years, 10 months ago) by martin
Branch: MAIN
CVS Tags: phil-wifi-base, pgoyette-compat-1020, pgoyette-compat-0930, pgoyette-compat-0906, pgoyette-compat-0728, pgoyette-compat-0625
Branch point for: phil-wifi
Changes since 1.15: +3 -3 lines
Diff to previous 1.15 (colored) to selected 1.4.2.2 (colored)

In the generated /etc/fstab, do not use the (temporary, during sysinst)
path name for the file in the comment, but instead the one it will
have on the target system.

Revision 1.15 / (download) - annotate - [select for diffs], Sun Jun 3 13:16:30 2018 UTC (5 years, 10 months ago) by martin
Branch: MAIN
Changes since 1.14: +243 -41 lines
Diff to previous 1.14 (colored) to selected 1.4.2.2 (colored)

Add an option to install onto a pre-configured wedge.
Greatly simmplifies (U)EFI setups (but does not fully automate them yet).

Revision 1.13.6.1 / (download) - annotate - [select for diffs], Mon May 7 04:03:20 2018 UTC (5 years, 11 months ago) by snj
Branch: netbsd-8
Changes since 1.13: +4 -3 lines
Diff to previous 1.13 (colored) to selected 1.4.2.2 (colored)

Pull up following revision(s) (requested by martin in ticket #798):
	usr.sbin/sysinst/disks.c: 1.14
Simplify and get rid of external "grep" dependency which is not available
on all install meadia.
Sugested by kre.

Revision 1.13.12.1 / (download) - annotate - [select for diffs], Wed May 2 07:20:28 2018 UTC (5 years, 11 months ago) by pgoyette
Branch: pgoyette-compat
Changes since 1.13: +4 -3 lines
Diff to previous 1.13 (colored) to selected 1.4.2.2 (colored)

Synch with HEAD

Revision 1.14 / (download) - annotate - [select for diffs], Tue May 1 09:01:45 2018 UTC (5 years, 11 months ago) by martin
Branch: MAIN
CVS Tags: pgoyette-compat-0521, pgoyette-compat-0502
Changes since 1.13: +4 -3 lines
Diff to previous 1.13 (colored) to selected 1.4.2.2 (colored)

Simplify and get rid of external "grep" dependency which is not available
on all install meadia.
Sugested by kre.

Revision 1.12.2.1 / (download) - annotate - [select for diffs], Mon Mar 20 06:58:09 2017 UTC (7 years ago) by pgoyette
Branch: pgoyette-localcount
Changes since 1.12: +2 -2 lines
Diff to previous 1.12 (colored) next main 1.13 (colored) to selected 1.4.2.2 (colored)

Sync with HEAD

Revision 1.13 / (download) - annotate - [select for diffs], Fri Jan 13 05:49:27 2017 UTC (7 years, 3 months ago) by christos
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-compat-base, 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.12: +2 -2 lines
Diff to previous 1.12 (colored) to selected 1.4.2.2 (colored)

another buffer overflow.

Revision 1.12 / (download) - annotate - [select for diffs], Tue Jan 26 14:05:29 2016 UTC (8 years, 2 months ago) by martin
Branch: MAIN
CVS Tags: pgoyette-localcount-base, pgoyette-localcount-20170107, pgoyette-localcount-20161104, pgoyette-localcount-20160806, pgoyette-localcount-20160726, localcount-20160914
Branch point for: pgoyette-localcount
Changes since 1.11: +10 -3 lines
Diff to previous 1.11 (colored) to selected 1.4.2.2 (colored)

David Binderman in PR bin/50713: fix memory leaks

Revision 1.11 / (download) - annotate - [select for diffs], Sat Nov 14 23:00:17 2015 UTC (8 years, 5 months ago) by pgoyette
Branch: MAIN
Changes since 1.10: +3 -3 lines
Diff to previous 1.10 (colored) to selected 1.4.2.2 (colored)

Enable installation of amd64 on an lfsv2 partition.

XXX Other ports will need similar changes to arch/.../md.h after testing!

XXX The mount_lfs warning about lfs being experimental may confuse or
XXX corrupt the sysinst display window.

Revision 1.10 / (download) - annotate - [select for diffs], Sat Jul 25 07:12:30 2015 UTC (8 years, 8 months ago) by isaki
Branch: MAIN
Changes since 1.9: +22 -18 lines
Diff to previous 1.9 (colored) to selected 1.4.2.2 (colored)

indent and some KNF.

Revision 1.4.4.5 / (download) - annotate - [select for diffs], Thu May 14 07:58:49 2015 UTC (8 years, 11 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.4.4.4: +3 -5 lines
Diff to previous 1.4.4.4 (colored) to branchpoint 1.4 (colored) next main 1.5 (colored) to selected 1.4.2.2 (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.9 / (download) - annotate - [select for diffs], Sun May 10 10:14:02 2015 UTC (8 years, 11 months ago) by martin
Branch: MAIN
Changes since 1.8: +3 -5 lines
Diff to previous 1.8 (colored) to selected 1.4.2.2 (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.4.4.4 / (download) - annotate - [select for diffs], Sat May 9 13:50:15 2015 UTC (8 years, 11 months ago) by msaitoh
Branch: netbsd-7
Changes since 1.4.4.3: +12 -20 lines
Diff to previous 1.4.4.3 (colored) to branchpoint 1.4 (colored) to selected 1.4.2.2 (colored)

Pull up following revision(s) (requested by martin in ticket #744):
	usr.sbin/sysinst/defs.h: revision 1.7
	usr.sbin/sysinst/disks.c: revision 1.8
	usr.sbin/sysinst/partman.c: revision 1.9
Add a new utility function "update_wedges()", which triggers a scan
for wedges on the given disk. Call this after writing a disklabel.
This makes all auto-discovered wedges go away after we changed the
partitioning (and are not using GPT) and fixes PR 49665.

Revision 1.8 / (download) - annotate - [select for diffs], Sat May 9 12:06:31 2015 UTC (8 years, 11 months ago) by martin
Branch: MAIN
Changes since 1.7: +12 -20 lines
Diff to previous 1.7 (colored) to selected 1.4.2.2 (colored)

Add a new utility function "update_wedges()", which triggers a scan
for wedges on the given disk. Call this after writing a disklabel.
This makes all auto-discovered wedges go away after we changed the
partitioning (and are not using GPT) and fixes PR 49665.

Revision 1.4.4.3 / (download) - annotate - [select for diffs], Sun Jan 11 04:32:38 2015 UTC (9 years, 3 months ago) by snj
Branch: netbsd-7
Changes since 1.4.4.2: +8 -1 lines
Diff to previous 1.4.4.2 (colored) to branchpoint 1.4 (colored) to selected 1.4.2.2 (colored)

Pull up following revision(s) (requested by abs in ticket #400):
	usr.sbin/sysinst/arch/arc/md.c: revision 1.3
	usr.sbin/sysinst/arch/cobalt/md.c: revision 1.3
	usr.sbin/sysinst/arch/evbsh3/md.c: revision 1.3
	usr.sbin/sysinst/arch/hp300/md.c: revision 1.3
	usr.sbin/sysinst/arch/hpcsh/md.c: revision 1.3
	usr.sbin/sysinst/arch/i386/md.c: revision 1.5
	usr.sbin/sysinst/arch/luna68k/md.c: revision 1.4
	usr.sbin/sysinst/arch/mvme68k/md.c: revision 1.3
	usr.sbin/sysinst/arch/news68k/md.c: revision 1.3
	usr.sbin/sysinst/arch/sgimips/md.c: revision 1.3
	usr.sbin/sysinst/arch/vax/md.c: revision 1.3
	usr.sbin/sysinst/arch/x68k/md.c: revision 1.3
	usr.sbin/sysinst/defs.h: revision 1.6
	usr.sbin/sysinst/disks.c: revision 1.7
	usr.sbin/sysinst/install.c: revision 1.3
	usr.sbin/sysinst/partman.c: revision 1.8
	usr.sbin/sysinst/upgrade.c: revision 1.3
Rather than scatter set_swap() calls wrapped in ram size checks through
md_post_disklabel() and md_pre_update(), abstract them out to an MI
set_swap_if_low_ram() and call from the appropriate MI places.
Now all platforms add swap if the system has <= 32M of RAM.

Revision 1.7 / (download) - annotate - [select for diffs], Fri Jan 2 19:43:13 2015 UTC (9 years, 3 months ago) by abs
Branch: MAIN
Changes since 1.6: +8 -1 lines
Diff to previous 1.6 (colored) to selected 1.4.2.2 (colored)

Rather than scatter set_swap() calls wrapped in ram size checks through
md_post_disklabel() and md_pre_update(), abstract them out to an MI
set_swap_if_low_ram() and call from the appropriate MI places.
Now all platforms add swap if the system has <= 32M of RAM.

Revision 1.4.4.2 / (download) - annotate - [select for diffs], Wed Dec 31 06:19:19 2014 UTC (9 years, 3 months ago) by snj
Branch: netbsd-7
Changes since 1.4.4.1: +23 -5 lines
Diff to previous 1.4.4.1 (colored) to branchpoint 1.4 (colored) to selected 1.4.2.2 (colored)

Pull up following revision(s) (requested by martin in ticket #357):
	usr.sbin/sysinst/disks.c: revision 1.6
We can not rely on the existence of the "gpt" binary on install media -
make installation work without it (and without strange errors) again.

Revision 1.6 / (download) - annotate - [select for diffs], Sun Dec 28 12:05:27 2014 UTC (9 years, 3 months ago) by martin
Branch: MAIN
Changes since 1.5: +23 -5 lines
Diff to previous 1.5 (colored) to selected 1.4.2.2 (colored)

We can not rely on the existence of the "gpt" binary on install media -
make installation work without it (and without strange errors) again.

Revision 1.4.4.1 / (download) - annotate - [select for diffs], Sat Aug 23 03:44:02 2014 UTC (9 years, 7 months ago) by riz
Branch: netbsd-7
Changes since 1.4: +2 -2 lines
Diff to previous 1.4 (colored) to selected 1.4.2.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.5.2.2 / (download) - annotate - [select for diffs], Wed Aug 20 00:05:13 2014 UTC (9 years, 7 months ago) by tls
Branch: tls-maxphys
Changes since 1.5.2.1: +1464 -0 lines
Diff to previous 1.5.2.1 (colored) next main 1.6 (colored) to selected 1.4.2.2 (colored)

Rebase to HEAD as of a few days ago.

Revision 1.5.2.1, Tue Aug 19 13:26:27 2014 UTC (9 years, 7 months ago) by tls
Branch: tls-maxphys
Changes since 1.5: +0 -1464 lines
FILE REMOVED

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

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

Make an invariant more clear to avoid fals positives from coverity scan

Revision 1.4.2.2 / (download) - annotate - [selected], Sun Aug 10 07:00:24 2014 UTC (9 years, 8 months ago) by tls
Branch: tls-earlyentropy
Changes since 1.4.2.1: +1464 -0 lines
Diff to previous 1.4.2.1 (colored) to branchpoint 1.4 (colored) next main 1.5 (colored)

Rebase.

Revision 1.4.2.1, Fri Aug 8 20:24:27 2014 UTC (9 years, 8 months ago) by tls
Branch: tls-earlyentropy
Changes since 1.4: +0 -1464 lines
FILE REMOVED

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

Revision 1.4 / (download) - annotate - [select for diffs], Fri Aug 8 20:24:27 2014 UTC (9 years, 8 months ago) by riz
Branch: MAIN
CVS Tags: tls-maxphys-base, tls-earlyentropy-base, netbsd-7-base
Branch point for: tls-earlyentropy, netbsd-7
Changes since 1.3: +11 -10 lines
Diff to previous 1.3 (colored) to selected 1.4.2.2 (colored)

Most GPT fields are 64-bit quantities, so use 64-bit types to store.
Don't try to assign negative values to unsigned quantities.
Use strtouq(), not atoi(), to read 64-bit values.

Booting from an installed GPT-labelled disk still doesn't work,
but at least sysinst doesn't crash as soon as a GPT is created.

Revision 1.3 / (download) - annotate - [select for diffs], Mon Aug 4 04:20:01 2014 UTC (9 years, 8 months ago) by mrg
Branch: MAIN
Changes since 1.2: +2 -2 lines
Diff to previous 1.2 (colored) to selected 1.4.2.2 (colored)

for the !tmpfs case, ensure that pm_with_swap is initialised.

Revision 1.2 / (download) - annotate - [select for diffs], Sun Aug 3 16:09:38 2014 UTC (9 years, 8 months ago) by martin
Branch: MAIN
Changes since 1.1: +461 -189 lines
Diff to previous 1.1 (colored) to selected 1.4.2.2 (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, 8 months ago) by dholland
Branch: MAIN
Diff to selected 1.4.2.2 (colored)

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>