The NetBSD Project

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

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

Request diff between arbitrary revisions


Keyword substitution: kv
Default branch: MAIN


Revision 1.21: download - view: text, markup, annotated - select for diffs
Fri Jun 24 22:05:24 2022 UTC (2 years, 5 months ago) by tsutsui
Branches: MAIN
CVS tags: perseant-exfatfs-base-20240630, perseant-exfatfs-base, perseant-exfatfs, 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, HEAD
Diff to: previous 1.20: preferred, colored
Changes since revision 1.20: +2 -2 lines
Use proper ANSI function declarations.

Revision 1.20: download - view: text, markup, annotated - select for diffs
Thu Apr 21 17:30:15 2022 UTC (2 years, 7 months ago) by martin
Branches: MAIN
Diff to: previous 1.19: preferred, colored
Changes since revision 1.19: +9 -1 lines
Make default installations a bit more secure:
 - push a bit harder for setup of a root password
 - simplify/clarify manual entropy setup
 - visit the entropy setup (on machines where it is needed) on the
   default path through sysinst

Revision 1.12.2.5: download - view: text, markup, annotated - select for diffs
Wed Feb 2 04:25:36 2022 UTC (2 years, 10 months ago) by msaitoh
Branches: netbsd-9
CVS tags: netbsd-9-4-RELEASE, netbsd-9-3-RELEASE
Diff to: previous 1.12.2.4: preferred, colored; branchpoint 1.12: preferred, colored; next MAIN 1.13: preferred, colored
Changes since revision 1.12.2.4: +2 -2 lines
Pull up following revision(s) (requested by martin in ticket #1422):
	usr.sbin/sysinst/util.c: revision 1.64
	usr.sbin/sysinst/arch/hpcsh/md.c: revision 1.11
	usr.sbin/sysinst/arch/alpha/md.c: revision 1.10
	usr.sbin/sysinst/arch/sparc64/md.c: revision 1.7
	usr.sbin/sysinst/arch/emips/md.c: revision 1.10
	usr.sbin/sysinst/arch/cobalt/md.c: revision 1.15
	usr.sbin/sysinst/arch/x68k/md.c: revision 1.12
	usr.sbin/sysinst/arch/sandpoint/md.c: revision 1.10
	usr.sbin/sysinst/arch/luna68k/md.c: revision 1.10
	usr.sbin/sysinst/arch/hp300/md.c: revision 1.12
	usr.sbin/sysinst/arch/vax/md.c: revision 1.8
	usr.sbin/sysinst/arch/hpcmips/md.c: revision 1.10
	usr.sbin/sysinst/target.c: revision 1.16
	usr.sbin/sysinst/arch/mvme68k/md.c: revision 1.12
	usr.sbin/sysinst/arch/arc/md.c: revision 1.14
	usr.sbin/sysinst/target.c: revision 1.17
	usr.sbin/sysinst/arch/i386/md.c: revision 1.34
	usr.sbin/sysinst/arch/mac68k/md.c: revision 1.11
	usr.sbin/sysinst/arch/atari/md.c: revision 1.8
	usr.sbin/sysinst/arch/sgimips/md.c: revision 1.10
	usr.sbin/sysinst/arch/acorn32/md.c: revision 1.8
	usr.sbin/sysinst/install.c: revision 1.22
	usr.sbin/sysinst/arch/amiga/md.c: revision 1.7
	usr.sbin/sysinst/arch/cats/md.c: revision 1.6
	usr.sbin/sysinst/arch/dummy/md.c: revision 1.7
	usr.sbin/sysinst/arch/shark/md.c: revision 1.7
	usr.sbin/sysinst/arch/pmax/md.c: revision 1.9
	usr.sbin/sysinst/arch/newsmips/md.c: revision 1.7
	usr.sbin/sysinst/arch/mipsco/md.c: revision 1.9
	usr.sbin/sysinst/arch/landisk/md.c: revision 1.15
	usr.sbin/sysinst/arch/hppa/md.c: revision 1.9
	usr.sbin/sysinst/arch/prep/md.c: revision 1.14
	usr.sbin/sysinst/defs.h: revision 1.77
	usr.sbin/sysinst/arch/ofppc/md.c: revision 1.13
	usr.sbin/sysinst/arch/ews4800mips/md.c: revision 1.8
	usr.sbin/sysinst/defs.h: revision 1.78
	usr.sbin/sysinst/arch/macppc/md.c: revision 1.7
	usr.sbin/sysinst/arch/evbppc/md.c: revision 1.10
	usr.sbin/sysinst/defs.h: revision 1.79
	usr.sbin/sysinst/gpt.c: revision 1.27
	usr.sbin/sysinst/arch/bebox/md.c: revision 1.10
	usr.sbin/sysinst/gpt.c: revision 1.28
	usr.sbin/sysinst/arch/sparc/md.c: revision 1.7
	usr.sbin/sysinst/arch/evbsh3/md.c: revision 1.7
	usr.sbin/sysinst/arch/evbarm/md.c: revision 1.22
	usr.sbin/sysinst/arch/news68k/md.c: revision 1.8
	usr.sbin/sysinst/upgrade.c: revision 1.19
	usr.sbin/sysinst/arch/zaurus/md.c: revision 1.12
	usr.sbin/sysinst/arch/playstation2/md.c: revision 1.10
	usr.sbin/sysinst/arch/hpcarm/md.c: revision 1.11
	usr.sbin/sysinst/arch/evbmips/md.c: revision 1.10
	usr.sbin/sysinst/main.c: revision 1.28
Add an option to set the directory where we look for message catalogs.
Try to get rid of all wedges we created (after unmounting).
When upgrading, update the boot code post extraction from
the updated target file system.
Do not defer wedge deletions when we have nothing mounted.
Define and use a constant for maximum disk name length.

Revision 1.19: download - view: text, markup, annotated - select for diffs
Sat Jan 29 16:01:16 2022 UTC (2 years, 10 months ago) by martin
Branches: MAIN
Diff to: previous 1.18: preferred, colored
Changes since revision 1.18: +2 -2 lines
When upgrading, update the boot code post extraction from
the updated target file system.

Revision 1.12.2.4: download - view: text, markup, annotated - select for diffs
Thu Aug 19 04:52:10 2021 UTC (3 years, 3 months ago) by snj
Branches: netbsd-9
Diff to: previous 1.12.2.3: preferred, colored; branchpoint 1.12: preferred, colored
Changes since revision 1.12.2.3: +2 -3 lines
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.18: download - view: text, markup, annotated - select for diffs
Thu Aug 12 09:33:59 2021 UTC (3 years, 3 months ago) by martin
Branches: MAIN
Diff to: previous 1.17: preferred, colored
Changes since revision 1.17: +2 -3 lines
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.17: download - view: text, markup, annotated - select for diffs
Wed Nov 4 14:29:40 2020 UTC (4 years, 1 month ago) by martin
Branches: MAIN
CVS tags: cjep_sun2x-base1, cjep_sun2x-base, cjep_sun2x, cjep_staticlib_x-base1, cjep_staticlib_x-base, cjep_staticlib_x
Diff to: previous 1.16: preferred, colored
Changes since revision 1.16: +1 -2 lines
Add (experimental) entropy input support:
Early during new installs or after upgrades we check if entropy is
available. If not (no hardware random number generator available)
we inform the user and ask them to fix it.

Revision 1.6.16.1: download - view: text, markup, annotated - select for diffs
Mon Apr 13 08:06:00 2020 UTC (4 years, 7 months ago) by martin
Branches: phil-wifi
Diff to: previous 1.6: preferred, colored; next MAIN 1.7: preferred, colored
Changes since revision 1.6: +56 -25 lines
Mostly merge changes from HEAD upto 20200411

Revision 1.12.2.3: download - view: text, markup, annotated - select for diffs
Mon Feb 10 21:39:37 2020 UTC (4 years, 9 months ago) by bouyer
Branches: netbsd-9
CVS tags: netbsd-9-2-RELEASE, netbsd-9-1-RELEASE, netbsd-9-0-RELEASE
Diff to: previous 1.12.2.2: preferred, colored; branchpoint 1.12: preferred, colored
Changes since revision 1.12.2.2: +6 -11 lines
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.16: download - view: text, markup, annotated - select for diffs
Thu Feb 6 19:50:04 2020 UTC (4 years, 9 months ago) by martin
Branches: MAIN
CVS tags: phil-wifi-20200421, phil-wifi-20200411, phil-wifi-20200406, is-mlppp-base, is-mlppp
Diff to: previous 1.15: preferred, colored
Changes since revision 1.15: +3 -8 lines
Make re-install sets also work for an explicit selected root wedge

Revision 1.15: download - view: text, markup, annotated - select for diffs
Thu Feb 6 19:08:38 2020 UTC (4 years, 9 months ago) by martin
Branches: MAIN
Diff to: previous 1.14: preferred, colored
Changes since revision 1.14: +4 -4 lines
PR bin/54944: make the "explicit single wedge" selection also work for
upgrades.

Revision 1.12.2.2: download - view: text, markup, annotated - select for diffs
Tue Jan 28 10:17:58 2020 UTC (4 years, 10 months ago) by msaitoh
Branches: netbsd-9
CVS tags: netbsd-9-0-RC2
Diff to: previous 1.12.2.1: preferred, colored; branchpoint 1.12: preferred, colored
Changes since revision 1.12.2.1: +1 -3 lines
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.14: download - view: text, markup, annotated - select for diffs
Thu Jan 16 13:56:24 2020 UTC (4 years, 10 months ago) by martin
Branches: MAIN
Diff to: previous 1.13: preferred, colored
Changes since revision 1.13: +1 -3 lines
Remove useless calls to get_ramsize() - return value is ignored and
the function has no side effects.

Revision 1.12.2.1: download - view: text, markup, annotated - select for diffs
Wed Aug 28 10:00:53 2019 UTC (5 years, 3 months ago) by msaitoh
Branches: netbsd-9
CVS tags: netbsd-9-0-RC1
Diff to: previous 1.12: preferred, colored
Changes since revision 1.12: +3 -3 lines
Pull up following revision(s) (requested by martin in ticket #123):
	usr.sbin/sysinst/util.c: revision 1.32
	usr.sbin/sysinst/upgrade.c: revision 1.13
	usr.sbin/sysinst/defs.h: revision 1.44
Do not offer to upgrade the "current system" if we are running off a CD
(i.e. / is mounted read-only)

Revision 1.13: download - view: text, markup, annotated - select for diffs
Tue Aug 27 14:11:00 2019 UTC (5 years, 3 months ago) by martin
Branches: MAIN
CVS tags: phil-wifi-20191119
Diff to: previous 1.12: preferred, colored
Changes since revision 1.12: +3 -3 lines
Do not offer to upgared the "current system" if we are running off a CD
(i.e. / is mounted read-only)

Revision 1.12: download - view: text, markup, annotated - select for diffs
Tue Jul 23 18:13:40 2019 UTC (5 years, 4 months ago) by martin
Branches: MAIN
CVS tags: netbsd-9-base
Branch point for: netbsd-9
Diff to: previous 1.11: preferred, colored
Changes since revision 1.11: +24 -16 lines
For upgrade / re-install allow the currently running system as a target
in the "disk" selection.

Revision 1.11: download - view: text, markup, annotated - select for diffs
Tue Jul 23 16:02:32 2019 UTC (5 years, 4 months ago) by martin
Branches: MAIN
Diff to: previous 1.10: preferred, colored
Changes since revision 1.10: +17 -7 lines
Fix the "reinstall sets" action.

Revision 1.10: download - view: text, markup, annotated - select for diffs
Tue Jul 23 15:23:14 2019 UTC (5 years, 4 months ago) by martin
Branches: MAIN
Diff to: previous 1.9: preferred, colored
Changes since revision 1.9: +6 -1 lines
When searching for a partition that may be the root partition for upgrading,
allow "/", "/targetroot" and "/altroot" as potential last mount points.

Revision 1.9: download - view: text, markup, annotated - select for diffs
Mon Jun 24 18:48:08 2019 UTC (5 years, 5 months ago) by martin
Branches: MAIN
Diff to: previous 1.8: preferred, colored
Changes since revision 1.8: +4 -6 lines
If low on ram, mount the proper swap partition before doing the main
upgrade work.

Revision 1.8: download - view: text, markup, annotated - select for diffs
Thu Jun 20 00:43:55 2019 UTC (5 years, 5 months ago) by christos
Branches: MAIN
Diff to: previous 1.7: preferred, colored
Changes since revision 1.7: +4 -3 lines
Use _fmt_ msg_ methods when formats are needed.

Revision 1.7: download - view: text, markup, annotated - select for diffs
Wed Jun 12 06:20:18 2019 UTC (5 years, 5 months ago) by martin
Branches: MAIN
Diff to: previous 1.6: preferred, colored
Changes since revision 1.6: +33 -17 lines
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.6: download - view: text, markup, annotated - select for diffs
Fri Aug 28 12:04:08 2015 UTC (9 years, 3 months ago) by joerg
Branches: MAIN
CVS tags: prg-localcount2-base3, prg-localcount2-base2, prg-localcount2-base1, prg-localcount2-base, prg-localcount2, phil-wifi-base, phil-wifi-20190609, pgoyette-localcount-base, pgoyette-localcount-20170426, pgoyette-localcount-20170320, pgoyette-localcount-20170107, pgoyette-localcount-20161104, pgoyette-localcount-20160806, pgoyette-localcount-20160726, pgoyette-localcount, pgoyette-compat-merge-20190127, pgoyette-compat-base, pgoyette-compat-20190127, pgoyette-compat-20190118, pgoyette-compat-1226, pgoyette-compat-1126, pgoyette-compat-1020, pgoyette-compat-0930, pgoyette-compat-0906, pgoyette-compat-0728, pgoyette-compat-0625, pgoyette-compat-0521, pgoyette-compat-0502, pgoyette-compat-0422, pgoyette-compat-0415, pgoyette-compat-0407, pgoyette-compat-0330, pgoyette-compat-0322, pgoyette-compat-0315, pgoyette-compat, perseant-stdc-iso10646-base, perseant-stdc-iso10646, netbsd-8-base, netbsd-8-3-RELEASE, netbsd-8-2-RELEASE, netbsd-8-1-RELEASE, netbsd-8-1-RC1, netbsd-8-0-RELEASE, netbsd-8-0-RC2, netbsd-8-0-RC1, netbsd-8, matt-nb8-mediatek-base, matt-nb8-mediatek, localcount-20160914, bouyer-socketcan-base1, bouyer-socketcan-base, bouyer-socketcan
Branch point for: phil-wifi
Diff to: previous 1.5: preferred, colored
Changes since revision 1.5: +2 -2 lines
Simplify.

Revision 1.5: download - view: text, markup, annotated - select for diffs
Sat Jul 25 07:12:30 2015 UTC (9 years, 4 months ago) by isaki
Branches: MAIN
Diff to: previous 1.4: preferred, colored
Changes since revision 1.4: +2 -2 lines
indent and some KNF.

Revision 1.2.4.2: download - view: text, markup, annotated - select for diffs
Thu May 14 07:58:49 2015 UTC (9 years, 6 months ago) by snj
Branches: 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
Diff to: previous 1.2.4.1: preferred, colored; branchpoint 1.2: preferred, colored; next MAIN 1.3: preferred, colored
Changes since revision 1.2.4.1: +3 -5 lines
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.4: download - view: text, markup, annotated - select for diffs
Sun May 10 10:14:02 2015 UTC (9 years, 6 months ago) by martin
Branches: MAIN
Diff to: previous 1.3: preferred, colored
Changes since revision 1.3: +3 -5 lines
Backout the previous incorrect fix for PR 49440 and redo it more globaly:
get rid of the global "yesno", introduce utility functions "ask_yesno()"
and "ask_noyes()" instead, greatly simplifying a lot of code.
Pass in a pointer to the return value to various "set source" menus.

Revision 1.2.4.1: download - view: text, markup, annotated - select for diffs
Sun Jan 11 04:32:38 2015 UTC (9 years, 10 months ago) by snj
Branches: netbsd-7
Diff to: previous 1.2: preferred, colored
Changes since revision 1.2: +4 -1 lines
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.3: download - view: text, markup, annotated - select for diffs
Fri Jan 2 19:43:13 2015 UTC (9 years, 11 months ago) by abs
Branches: MAIN
Diff to: previous 1.2: preferred, colored
Changes since revision 1.2: +4 -1 lines
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.2.6.2: download - view: text, markup, annotated - select for diffs
Wed Aug 20 00:05:14 2014 UTC (10 years, 3 months ago) by tls
Branches: tls-maxphys
Diff to: previous 1.2.6.1: preferred, colored; branchpoint 1.2: preferred, colored; next MAIN 1.3: preferred, colored
Changes since revision 1.2.6.1: +200 -0 lines
Rebase to HEAD as of a few days ago.

Revision 1.2.2.2: download - view: text, markup, annotated - select for diffs
Sun Aug 10 07:00:24 2014 UTC (10 years, 3 months ago) by tls
Branches: tls-earlyentropy
Diff to: previous 1.2.2.1: preferred, colored; branchpoint 1.2: preferred, colored; next MAIN 1.3: preferred, colored
Changes since revision 1.2.2.1: +200 -0 lines
Rebase.

Revision 1.2.6.1
Sun Aug 3 16:09:38 2014 UTC (10 years, 4 months ago) by tls
Branches: tls-maxphys
FILE REMOVED
Changes since revision 1.2: +0 -200 lines
file upgrade.c was added on branch tls-maxphys on 2014-08-20 00:05:14 +0000

Revision 1.2.2.1
Sun Aug 3 16:09:38 2014 UTC (10 years, 4 months ago) by tls
Branches: tls-earlyentropy
FILE REMOVED
Changes since revision 1.2: +0 -200 lines
file upgrade.c was added on branch tls-earlyentropy on 2014-08-10 07:00:24 +0000

Revision 1.2: download - view: text, markup, annotated - select for diffs
Sun Aug 3 16:09:38 2014 UTC (10 years, 4 months ago) by martin
Branches: MAIN
CVS tags: tls-maxphys-base, tls-earlyentropy-base, netbsd-7-base
Branch point for: tls-maxphys, tls-earlyentropy, netbsd-7
Diff to: previous 1.1: preferred, colored
Changes since revision 1.1: +10 -5 lines
(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 - view: text, markup, annotated - select for diffs
Sat Jul 26 19:30:44 2014 UTC (10 years, 4 months ago) by dholland
Branches: MAIN
Move sysinst sources to usr.sbin.

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

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

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

Diff request

This form allows you to request diffs 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.

Log view options

CVSweb <webmaster@jp.NetBSD.org>