The NetBSD Project

CVS log for src/distrib/utils/sysinst/arch/macppc/Attic/md.c

[BACK] Up to [cvs.NetBSD.org] / src / distrib / utils / sysinst / arch / macppc

Request diff between arbitrary revisions


Default branch: MAIN


Revision 1.45.6.1, Tue Aug 19 23:45:48 2014 UTC (9 years, 7 months ago) by tls
Branch: tls-maxphys
Changes since 1.45: +1 -1 lines
FILE REMOVED

Rebase to HEAD as of a few days ago.

Revision 1.46.2.1, Sun Aug 10 06:48:51 2014 UTC (9 years, 8 months ago) by tls
Branch: tls-earlyentropy
Changes since 1.46: +1 -1 lines
FILE REMOVED

Rebase.

Revision 1.47, Sat Jul 26 19:30:42 2014 UTC (9 years, 8 months ago) by dholland
Branch: MAIN
CVS Tags: tls-maxphys-base, tls-earlyentropy-base, prg-localcount2-base3, prg-localcount2-base2, prg-localcount2-base1, prg-localcount2-base, prg-localcount2, phil-wifi-20200421, phil-wifi-20200411, phil-wifi-20200406, 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, localcount-20160914, cjep_sun2x-base, cjep_sun2x, cjep_staticlib_x-base1, cjep_staticlib_x-base, cjep_staticlib_x, bouyer-socketcan-base1, bouyer-socketcan-base, bouyer-socketcan, HEAD
Changes since 1.46: +1 -1 lines
FILE REMOVED

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.

Revision 1.45.2.1 / (download) - annotate - [select for diffs], Fri Jul 18 02:21:53 2014 UTC (9 years, 9 months ago) by riz
Branch: netbsd-6
Changes since 1.45: +2 -2 lines
Diff to previous 1.45 (colored) next main 1.46 (colored)

Pull up following revision(s) (requested by tsutsui in ticket #1079):
	distrib/utils/sysinst/arch/newsmips/md.c: revision 1.22
	distrib/utils/sysinst/arch/pmax/md.c: revision 1.68
	distrib/utils/sysinst/arch/vax/md.c: revision 1.40
	distrib/utils/sysinst/arch/alpha/md.c: revision 1.52
	distrib/utils/sysinst/arch/macppc/md.c: revision 1.46
	distrib/utils/sysinst/arch/mipsco/md.c: revision 1.21
	distrib/utils/sysinst/arch/landisk/md.c: revision 1.11
	distrib/utils/sysinst/arch/news68k/md.c: revision 1.35
Use msg_display(3) rather than printf(3) to print dobootblk messages.
The latter won't show any characters on the sysinst screen
and other ports have used the former.

Revision 1.44.4.2 / (download) - annotate - [select for diffs], Thu May 22 12:01:35 2014 UTC (9 years, 10 months ago) by yamt
Branch: yamt-pagecache
Changes since 1.44.4.1: +2 -2 lines
Diff to previous 1.44.4.1 (colored) to branchpoint 1.44 (colored) next main 1.45 (colored)

sync with head.

for a reference, the tree before this commit was tagged
as yamt-pagecache-tag8.

this commit was splitted into small chunks to avoid
a limitation of cvs.  ("Protocol error: too many arguments")

Revision 1.46 / (download) - annotate - [select for diffs], Sat Feb 15 19:45:43 2014 UTC (10 years, 2 months ago) by tsutsui
Branch: MAIN
CVS Tags: yamt-pagecache-base9, riastradh-xf86-video-intel-2-7-1-pre-2-21-15, riastradh-drm2-base3
Branch point for: tls-earlyentropy
Changes since 1.45: +2 -2 lines
Diff to previous 1.45 (colored)

Use msg_display(3) rather than printf(3) to print dobootblk messages.

The latter won't show any characters on the sysinst screen
and other ports have used the former.

Revision 1.44.4.1 / (download) - annotate - [select for diffs], Thu Nov 10 14:31:19 2011 UTC (12 years, 5 months ago) by yamt
Branch: yamt-pagecache
CVS Tags: yamt-pagecache-tag8
Changes since 1.44: +7 -1 lines
Diff to previous 1.44 (colored)

sync with head

Revision 1.45 / (download) - annotate - [select for diffs], Fri Nov 4 11:27:03 2011 UTC (12 years, 5 months ago) by martin
Branch: MAIN
CVS Tags: yamt-pagecache-base8, yamt-pagecache-base7, yamt-pagecache-base6, yamt-pagecache-base5, yamt-pagecache-base4, yamt-pagecache-base3, yamt-pagecache-base2, riastradh-drm2-base2, riastradh-drm2-base1, riastradh-drm2-base, riastradh-drm2, netbsd-6-base, netbsd-6-1-RELEASE, netbsd-6-1-RC4, netbsd-6-1-RC3, netbsd-6-1-RC2, netbsd-6-1-RC1, netbsd-6-1-5-RELEASE, netbsd-6-1-4-RELEASE, netbsd-6-1-3-RELEASE, netbsd-6-1-2-RELEASE, netbsd-6-1-1-RELEASE, netbsd-6-1, netbsd-6-0-RELEASE, netbsd-6-0-RC2, netbsd-6-0-RC1, netbsd-6-0-6-RELEASE, netbsd-6-0-5-RELEASE, netbsd-6-0-4-RELEASE, netbsd-6-0-3-RELEASE, netbsd-6-0-2-RELEASE, netbsd-6-0-1-RELEASE, netbsd-6-0, matt-nb6-plus-nbase, matt-nb6-plus-base, matt-nb6-plus, khorben-n900, agc-symver-base, agc-symver
Branch point for: tls-maxphys, netbsd-6
Changes since 1.44: +7 -1 lines
Diff to previous 1.44 (colored)

Add a new hook, md_pre_mount(), that is called after preparation of
the target filesystem, but before mounting it. Use this on sparc64
to install the primary boot block, but install the secondary boot
(/ofwboot) later.
This allows sysinst to run at securelevel 1 (as long as we don't do an
upgrade install on the hard disk we booted from).

Revision 1.44 / (download) - annotate - [select for diffs], Mon Apr 4 08:30:34 2011 UTC (13 years ago) by mbalmer
Branch: MAIN
CVS Tags: yamt-pagecache-base, cherry-xenmp-base, cherry-xenmp
Branch point for: yamt-pagecache
Changes since 1.43: +4 -8 lines
Diff to previous 1.43 (colored)

Remove the advertisement clause from files copyrighted by Piermont Information
Systems, with the consent of the copyright owner, Perry E. Metzger.

Revision 1.42.2.1 / (download) - annotate - [select for diffs], Tue Feb 8 16:18:45 2011 UTC (13 years, 2 months ago) by bouyer
Branch: bouyer-quota2
Changes since 1.42: +3 -3 lines
Diff to previous 1.42 (colored) next main 1.43 (colored)

Sync with HEAD

Revision 1.43 / (download) - annotate - [select for diffs], Tue Feb 1 01:42:12 2011 UTC (13 years, 2 months ago) by joerg
Branch: MAIN
CVS Tags: bouyer-quota2-nbase, bouyer-quota2-base
Changes since 1.42: +3 -3 lines
Diff to previous 1.42 (colored)

Introduce a new option for all base sets without X11.
From jmcneill with translation help from Daniel Horecki.

Revision 1.42 / (download) - annotate - [select for diffs], Mon Nov 23 13:25:02 2009 UTC (14 years, 4 months ago) by tsutsui
Branch: MAIN
CVS Tags: matt-premerge-20091211, matt-mips64-premerge-20101231
Branch point for: bouyer-quota2
Changes since 1.41: +26 -1 lines
Diff to previous 1.41 (colored)

Don't try installboot(8) if offset of PART_A is not zero.

As man page says, installboot(8) is required only OpenFirmware 1 and 2
machines and even on such machines the root partition has to be at the
beginning of the disk to make installboot(8) work.

On OpenFirmware version 3 machines, the strategy provided by
installboot(8) doesn't work, and they need to have an extra
native partition (HFS or FAT16) which can be recognized by
the newer firmware to put a loadable bootloader.
If PART_A has some offset, we can assume the disk is partitioned
for a machine with OF3, which does't require installboot(8).

Eventually, we should provide an independent partitioning method
for OpenFirmware 3 machines (fdisk MBR partition + FAT16 partition
for ofwboot.xcf as OpenBSD does), but it may require some new API
to get OF version in sysinst.

Revision 1.41 / (download) - annotate - [select for diffs], Sat Sep 19 14:57:29 2009 UTC (14 years, 7 months ago) by abs
Branch: MAIN
Changes since 1.40: +43 -55 lines
Diff to previous 1.40 (colored)

defs.h:
- Re-order the md_*() definitions so they are in the order called
- Add some comments
- Remove obsolete md_set_no_x() definition
- Remove md_copy_filesystem()
- #if defined(DEBUG) declare backtowin(void) to avoid scattering
  externs in various md .c files

mbr.[ch]:
- Add a set_bios_geom_with_mbr_guess() which can be called by all
  the non x86 ports rather than copying the same code into arc,
  bebox, cobalt, evbmips, evbppc, hpcarm, hpcmips, landisk, ofppc,
  prep, sandpoint, and zaurus md.c

install.c:
- Remove now unnecessary call to md_copy_filesystem()

upgrade.c:
- Move move_aout_libs() here, and put under #ifdef AOUT2ELF
- Rather than having *every* md_update call wrefresh(curscr),
  wmove(stdscr, 0, 0), wclear(stdscr), and wrefresh(stdscr),
  move them here

arch/acorn26/md.c:
- Just include arch/acorn32/md.c, but add a note there warning
  about this, and while here add a note to i386/md.c that it
  is included by amd64

arch/*/md.c:
- By all means "Vive la difference", but we have 38 pairs of md.[ch],
  and they could not even agree on the order in which to list the
  md hooks, let alone formatting. Sort the md hooks to match the
  (now sane) order in def.sh, and try to normalise the formatting
- Also copy across some function level comments everywhere
- Ensure functions only used inside each md.c are defined as static
- Remove some now unused functions
- Some files had enable_rc_conf in #ifdef DEBUG. Add this to all
- bebox, evbppc and sandpoint were still playing broken games with
  copying the booted ramdisk to the target disk, the primary result
  of which was just to slow things down and ensure the target system
  lost the .profile extracted from the sets. Just kill this.
- For some ports md_update() called endwin(), and in others not.
  Take a cure from i386/amd64 and a few other more active ports,
  and update everything to match (no endwin())
- In a couple of cases correct port names in comments
- ANSIfy some lingering old style functions
- Consistently use "return 0;" rather than "return (0);"

More of the mbr code should be abstracted, along with the
get_ramsize() / set_swap() logic, but this is (more than)
enough for one day...

sysinst built for all ports but only runtime tested on amd64 & i386

Revision 1.40 / (download) - annotate - [select for diffs], Tue Oct 7 09:58:15 2008 UTC (15 years, 6 months ago) by abs
Branch: MAIN
CVS Tags: netbsd-5-base, netbsd-5-2-RELEASE, netbsd-5-2-RC1, netbsd-5-2-3-RELEASE, netbsd-5-2-2-RELEASE, netbsd-5-2-1-RELEASE, netbsd-5-2, netbsd-5-1-RELEASE, netbsd-5-1-RC4, netbsd-5-1-RC3, netbsd-5-1-RC2, netbsd-5-1-RC1, netbsd-5-1-5-RELEASE, netbsd-5-1-4-RELEASE, netbsd-5-1-3-RELEASE, netbsd-5-1-2-RELEASE, netbsd-5-1-1-RELEASE, netbsd-5-1, netbsd-5-0-RELEASE, netbsd-5-0-RC4, netbsd-5-0-RC3, netbsd-5-0-RC2, netbsd-5-0-RC1, netbsd-5-0-2-RELEASE, netbsd-5-0-1-RELEASE, netbsd-5-0, netbsd-5, matt-nb5-pq3-base, matt-nb5-pq3, matt-nb5-mips64-u2-k2-k4-k7-k8-k9, matt-nb5-mips64-u1-k1-k5, matt-nb5-mips64-premerge-20101231, matt-nb5-mips64-premerge-20091211, matt-nb5-mips64-k15, matt-nb5-mips64, matt-nb4-mips64-k7-u2a-k9b, matt-mips64-base2, jym-xensuspend-nbase, jym-xensuspend-base, jym-xensuspend
Changes since 1.39: +2 -6 lines
Diff to previous 1.39 (colored)

Most ports do not create /.profile /.termcap and /sysinst in the target
before extracting sets, so do not try to delete them after install.
Now the '/.profile' from etc.tgz will actually be left after install

Note: bebox, evppc, and sandpoint still have a md_copy_filesystem() which
dumps a copy of the install filesystem into the target before extracting,
so I've left them removing /.profile /.termcap and /sysinst after install.

Revision 1.39.6.1, Sun Oct 5 20:11:13 2008 UTC (15 years, 6 months ago) by mjf
Branch: mjf-devfs2
Changes since 1.39: +1 -1 lines
FILE REMOVED

Sync with HEAD.

Revision 1.38.8.1 / (download) - annotate - [select for diffs], Sun Mar 23 00:21:05 2008 UTC (16 years ago) by matt
Branch: matt-armv6
Changes since 1.38: +7 -1 lines
Diff to previous 1.38 (colored) next main 1.39 (colored)

sync with HEAD

Revision 1.39.2.2 / (download) - annotate - [select for diffs], Mon Jan 28 02:47:16 2008 UTC (16 years, 2 months ago) by rumble
Branch: mjf-devfs
Changes since 1.39.2.1: +207 -0 lines
Diff to previous 1.39.2.1 (colored) to branchpoint 1.39 (colored) next main 1.40 (colored)

Fix MD set tweaking by introducing `md_init_set_status', which is called
at the end of `init_set_status'.

Previously, i386/amd64, mac68k and sgimips were using `md_init' to set the
appropriate kernel, but any changes made were being undone by a later call
to `init_set_status'.

This should fix IP3x installation issues on sgimips.

XXX - `md_init' is now unused. Should we G/C it?

Revision 1.39.2.1, Mon Jan 28 02:47:15 2008 UTC (16 years, 2 months ago) by rumble
Branch: mjf-devfs
Changes since 1.39: +0 -207 lines
FILE REMOVED

file md.c was added on branch mjf-devfs on 2008-01-28 02:47:16 +0000

Revision 1.39 / (download) - annotate - [select for diffs], Mon Jan 28 02:47:15 2008 UTC (16 years, 2 months ago) by rumble
Branch: MAIN
CVS Tags: yamt-pf42-baseX, yamt-pf42-base4, yamt-pf42-base3, yamt-pf42-base2, yamt-pf42-base, yamt-pf42, wrstuden-revivesa-base-3, wrstuden-revivesa-base-2, wrstuden-revivesa-base-1, wrstuden-revivesa-base, wrstuden-revivesa, simonb-wapbl-nbase, simonb-wapbl-base, simonb-wapbl, mjf-devfs2-base, mjf-devfs-base, matt-armv6-nbase, keiichi-mipv6-base, keiichi-mipv6, hpcarm-cleanup-nbase, hpcarm-cleanup-base
Branch point for: mjf-devfs2, mjf-devfs
Changes since 1.38: +7 -1 lines
Diff to previous 1.38 (colored)

Fix MD set tweaking by introducing `md_init_set_status', which is called
at the end of `init_set_status'.

Previously, i386/amd64, mac68k and sgimips were using `md_init' to set the
appropriate kernel, but any changes made were being undone by a later call
to `init_set_status'.

This should fix IP3x installation issues on sgimips.

XXX - `md_init' is now unused. Should we G/C it?

Revision 1.36.2.2 / (download) - annotate - [select for diffs], Wed Sep 27 12:14:22 2006 UTC (17 years, 6 months ago) by tron
Branch: abandoned-netbsd-4
Changes since 1.36.2.1: +2 -1 lines
Diff to previous 1.36.2.1 (colored) to branchpoint 1.36 (colored) next main 1.37 (colored)

Pull up following revision(s) (requested by hubertf in ticket #187):
	distrib/utils/sysinst/arch/pc532/md.c: revision 1.35
	distrib/utils/sysinst/arch/news68k/md.c: revision 1.27
	distrib/utils/sysinst/arch/ews4800mips/md.c: revision 1.4
	distrib/utils/sysinst/arch/x68k/md.c: revision 1.34
	distrib/utils/sysinst/arch/prep/md.c: revision 1.27
	distrib/utils/sysinst/arch/newsmips/md.c: revision 1.15
	distrib/utils/sysinst/arch/mvme68k/md.c: revision 1.19
	distrib/utils/sysinst/arch/macppc/md.c: revision 1.38
Make md_cleanup_install() more uniform across platforms.

Revision 1.36.2.1 / (download) - annotate - [select for diffs], Wed Sep 27 12:12:50 2006 UTC (17 years, 6 months ago) by tron
Branch: abandoned-netbsd-4
Changes since 1.36: +5 -1 lines
Diff to previous 1.36 (colored)

Pull up following revision(s) (requested by hubertf in ticket #187):
	distrib/utils/sysinst/arch/pc532/md.c: revision 1.34
	distrib/utils/sysinst/arch/alpha/md.c: revision 1.43
	distrib/utils/sysinst/arch/macppc/md.c: revision 1.37
Enable rc_configured=yes, to be consistent with our other ports.
Also do the same cleanup.

Revision 1.38 / (download) - annotate - [select for diffs], Mon Sep 4 00:11:00 2006 UTC (17 years, 7 months ago) by hubertf
Branch: MAIN
CVS Tags: wrstuden-fixsa-newbase, wrstuden-fixsa-base-1, wrstuden-fixsa-base, wrstuden-fixsa, pc532-eol-2008, netbsd-4-base, netbsd-4-0-RELEASE, netbsd-4-0-RC5, netbsd-4-0-RC4, netbsd-4-0-RC3, netbsd-4-0-RC2, netbsd-4-0-RC1, netbsd-4-0-1-RELEASE, netbsd-4-0, netbsd-4, matt-mips64-base, matt-mips64, matt-armv6-prevmlocking, matt-armv6-base, hpcarm-cleanup, cube-autoconf-base, cube-autoconf
Branch point for: matt-armv6
Changes since 1.37: +2 -1 lines
Diff to previous 1.37 (colored)

Make md_cleanup_install() more uniform across platforms.

Revision 1.37 / (download) - annotate - [select for diffs], Sun Sep 3 10:54:41 2006 UTC (17 years, 7 months ago) by hubertf
Branch: MAIN
Changes since 1.36: +5 -1 lines
Diff to previous 1.36 (colored)

Enable rc_configured=yes, to be consistent with our other ports.
Also do the same cleanup.

Revision 1.36 / (download) - annotate - [select for diffs], Wed Apr 5 16:55:06 2006 UTC (18 years ago) by garbled
Branch: MAIN
CVS Tags: abandoned-netbsd-4-base
Branch point for: abandoned-netbsd-4
Changes since 1.35: +7 -1 lines
Diff to previous 1.35 (colored)

Rather big update to sysinst, in order to get it working on the prep port.

1) Add an md_post_extract() function.  This function is called after
extracting the sets, and allows the arch to do something at that time.
In the case of prep, it is much easier to install the bootcode after all
the sets are extracted, so we do it in md_post_extract().  Added empty
md_post_extract() functions to all other arches so they compile.

2) Add md_mbr_use_wholedisk() and md_check_mbr().  In edit_mbr() I have
split off the code that uses the whole disk for NetBSD, into the
mbr_use_wholedisk() function.  On most ports that use mbr.c, I made
md_mbr_use_wholedisk() just call that and return.  On prep we create the
magical prep boot partition here.  The md_check_mbr() function allows the
arch to add additional checks after the user had manually edited the MBR
to make sure the choices he made allow NetBSD to function.  Added a dummy
routine to all mbr.c using arches.

3) Added code to bsdlabel.c to create a partition of type boot if
PART_BOOT is defined, but BOOT_SIZE is not defined.  Also added two more
globals "bootsize" and "bootstart" which must be seeded in order to do
so.  This is done on prep in md_check_mbr().

4) Added MBR_PTYPE_PREP to the list of MBR partitions.

5) Made the prep port actually install sanely.  It now creates a prep
boot partition, labels it correctly, installs all the sets, and then runs
mkbootimage and dd's the bootimage into the prep partition.  The result
is a prep installer that creates a bootable NetBSD installation
automatically.

6) Edited the prep menus and messages files to add new labels.  In the
case of the translated files, I just added the words in english for
someone to translate later.

I tried to xcompile a few arches to make sure I didn't break anything,
but I could have missed something.  Please let me know if I have broken
your arch in any way.  I'll watch the autobuilds for the next few days
too. For all ports other than prep there should be no functional changes
at all.

Revision 1.35 / (download) - annotate - [select for diffs], Sun Feb 26 10:25:53 2006 UTC (18 years, 1 month ago) by dsl
Branch: MAIN
Changes since 1.34: +1 -3 lines
Diff to previous 1.34 (colored)

Make floppy install messages less confusing (maybe).
Make floppy file system type settable - it depends on the system you are
using to write the split sets, not the target.

Revision 1.32.4.1 / (download) - annotate - [select for diffs], Sun Jul 24 02:25:25 2005 UTC (18 years, 8 months ago) by snj
Branch: netbsd-2
CVS Tags: netbsd-2-1-RELEASE, netbsd-2-1-RC6, netbsd-2-1-RC5, netbsd-2-1-RC4, netbsd-2-1-RC3, netbsd-2-1-RC2, netbsd-2-1-RC1, netbsd-2-1
Changes since 1.32: +3 -8 lines
Diff to previous 1.32 (colored) next main 1.33 (colored)

Apply patch (requested by riz in ticket #5523):
Sync sysinst with HEAD of 2005-07-23.

Revision 1.34 / (download) - annotate - [select for diffs], Sat Aug 14 16:06:42 2004 UTC (19 years, 8 months ago) by dsl
Branch: MAIN
CVS Tags: netbsd-3-base, netbsd-3-1-RELEASE, netbsd-3-1-RC4, netbsd-3-1-RC3, netbsd-3-1-RC2, netbsd-3-1-RC1, netbsd-3-1-1-RELEASE, netbsd-3-1, netbsd-3-0-RELEASE, netbsd-3-0-RC6, netbsd-3-0-RC5, netbsd-3-0-RC4, netbsd-3-0-RC3, netbsd-3-0-RC2, netbsd-3-0-RC1, netbsd-3-0-3-RELEASE, netbsd-3-0-2-RELEASE, netbsd-3-0-1-RELEASE, netbsd-3-0, netbsd-3
Changes since 1.33: +1 -8 lines
Diff to previous 1.33 (colored)

Default to input in MB for all architectures (MB are cylinder aligned).
Move info about cylinders to the 'ask for units' menu.
  (translations need checking, done by cutting sentences)
Stop i386 always asking for units.
Use BIOS cylinders for MBR and disk cylinders for the disklabel.
  (code intended to do this, but got it wrong...)
Mark some menus as 'sub menu' or MC_SUBMENU so that the screen underneath
  is saved.
Add GENERIC.MPACPI to i386 menu.

Revision 1.33 / (download) - annotate - [select for diffs], Sun Jun 6 06:07:01 2004 UTC (19 years, 10 months ago) by christos
Branch: MAIN
Changes since 1.32: +3 -1 lines
Diff to previous 1.32 (colored)

Get rid of the EXTERN/INIT mess; fix so that we can process this with xstr(1).
Not worth processing though, since on the i386 we only save ~3K.

Revision 1.32 / (download) - annotate - [select for diffs], Sun Nov 30 14:36:45 2003 UTC (20 years, 4 months ago) by dsl
Branch: MAIN
CVS Tags: netbsd-2-base, netbsd-2-0-base, netbsd-2-0-RELEASE, netbsd-2-0-RC5, netbsd-2-0-RC4, netbsd-2-0-RC3, netbsd-2-0-RC2, netbsd-2-0-RC1, netbsd-2-0-3-RELEASE, netbsd-2-0-2-RELEASE, netbsd-2-0-1-RELEASE, netbsd-2-0
Branch point for: netbsd-2
Changes since 1.31: +2 -2 lines
Diff to previous 1.31 (colored)

- Change enum for partition numbers from [A..Z] to PART_[A..P] (16 is enough)
- Rename run_prog() to run_program() and remove the 'errmsg' argument (almost
  never used).
- Be consistent about #define<space> in defs.h
- Allow BSDFFS partitions to be FFSv1 or FFSv2 (fixes PR install/23547)
- i386: install correct bootblocks for root filesystem type.
- Do 'fsck -p' before all mounts (but never a full fsck), rename fsck_xxx()
  to mount_xxx() and remove some wrapper functions.
- Allow root to be an APPLEUFS partition - and allow them to be newfsed,
  should fix PR install/23198
- Redo fstab processing for upgrade to avoid large static data items and
  memory leaks.  Change walk() to abort on user defined error.
  (the fstab stuff really needs more work though...)
- i386: 'Warp' cursor to alternate option when selecting console/bootblocks,
  should fix PR port-i386/23546.
- Allow MENU_ok and MENU_yesno to take user defined title.
- Ensure that mountpoint not defined for swap (and similar issues) when
  editing netbsd label.
- Tweaks to error handling in run_program(), allow user to say that errors
  are expected or that the display shouldn't be cleared before returning.
- Remove some old code that has been festering under #if 0

Revision 1.31 / (download) - annotate - [select for diffs], Sat Aug 30 13:53:28 2003 UTC (20 years, 7 months ago) by dsl
Branch: MAIN
Changes since 1.30: +1 -8 lines
Diff to previous 1.30 (colored)

Move definition of PART_USR to md.h where it has a chance of having some effect.

Revision 1.30 / (download) - annotate - [select for diffs], Fri Jul 25 08:26:28 2003 UTC (20 years, 8 months ago) by dsl
Branch: MAIN
Changes since 1.29: +6 -6 lines
Diff to previous 1.29 (colored)

Sprinkle a load of consts, and change a few variable names.
Now compiles with WARNS=3.

Revision 1.29 / (download) - annotate - [select for diffs], Fri Jun 13 11:57:31 2003 UTC (20 years, 10 months ago) by dsl
Branch: MAIN
Changes since 1.28: +1 -4 lines
Diff to previous 1.28 (colored)

Remove all references to minfsdmb and STDNEEDMB - neither are used any more.

Revision 1.28 / (download) - annotate - [select for diffs], Wed Jun 11 21:35:44 2003 UTC (20 years, 10 months ago) by dsl
Branch: MAIN
Changes since 1.27: +1 -13 lines
Diff to previous 1.27 (colored)

rototil of the set selection menu
I've also made the set selection happen first.  This lets me test it!
also measn the selected sets could be used in the disk partition code.
Removed the 'with X' disk layout question (now too late to change the sets).

Revision 1.27 / (download) - annotate - [select for diffs], Fri May 30 22:17:04 2003 UTC (20 years, 10 months ago) by dsl
Branch: MAIN
Changes since 1.26: +7 -184 lines
Diff to previous 1.26 (colored)

Make all architectures (except amiga and mac68k) use the MI make_bsd_partitions.
This does change the default size of /, but I'm going to rewrite
make_bsd_partitions next to make it less user-hostile.
(I'm not sure adding in 2 * ram is actually useful! Especially size it left
/usr with a -ve size on all my test installs with 256MB ram and 1GB disk)
Make bootsel code delete menu names if the partition is unused.
Use raw device for cdrom access (I've a kernel that doesn't report an invalid
label so /dev/cd0a dosn't work).

Revision 1.26 / (download) - annotate - [select for diffs], Fri May 30 17:31:21 2003 UTC (20 years, 10 months ago) by dsl
Branch: MAIN
Changes since 1.25: +12 -12 lines
Diff to previous 1.25 (colored)

KNF

Revision 1.25 / (download) - annotate - [select for diffs], Thu May 29 17:51:29 2003 UTC (20 years, 10 months ago) by dsl
Branch: MAIN
Changes since 1.24: +2 -1 lines
Diff to previous 1.24 (colored)

psrtsize and partstart are only over used inside md_make_bsd_partitions,
use locals instead of globals.

Revision 1.24 / (download) - annotate - [select for diffs], Wed May 21 10:05:26 2003 UTC (20 years, 11 months ago) by dsl
Branch: MAIN
Changes since 1.23: +12 -13 lines
Diff to previous 1.23 (colored)

Reduce the number of global variables slightly, use the ones that are
left consistently.
Make the i386 install let you partition a disk beyond the CHS limit if the
system bios doesn't support LBA reads (the checks aren't ideal yet).
Make the bsddislabel.c code usable onan i386 system - but don't use it yet.

Revision 1.23 / (download) - annotate - [select for diffs], Fri Aug 2 05:11:33 2002 UTC (21 years, 8 months ago) by grant
Branch: MAIN
CVS Tags: fvdl_fs64_base
Changes since 1.22: +3 -1 lines
Diff to previous 1.22 (colored)

set root partition default bsize and fsize.

Revision 1.22 / (download) - annotate - [select for diffs], Mon May 20 13:31:26 2002 UTC (21 years, 11 months ago) by lukem
Branch: MAIN
CVS Tags: netbsd-1-6-base, netbsd-1-6-RELEASE, netbsd-1-6-RC3, netbsd-1-6-RC2, netbsd-1-6-RC1, netbsd-1-6-PATCH002-RELEASE, netbsd-1-6-PATCH002-RC4, netbsd-1-6-PATCH002-RC3, netbsd-1-6-PATCH002-RC2, netbsd-1-6-PATCH002-RC1, netbsd-1-6-PATCH002, netbsd-1-6-PATCH001-RELEASE, netbsd-1-6-PATCH001-RC3, netbsd-1-6-PATCH001-RC2, netbsd-1-6-PATCH001-RC1, netbsd-1-6-PATCH001, netbsd-1-6
Changes since 1.21: +5 -5 lines
Diff to previous 1.21 (colored)

use new installboot

Revision 1.21 / (download) - annotate - [select for diffs], Sun Jan 14 02:38:20 2001 UTC (23 years, 3 months ago) by mrg
Branch: MAIN
Changes since 1.20: +20 -1 lines
Diff to previous 1.20 (colored)

extend sysinst disk handling, some general clean ups, better /etc support
and some sparc64 fixes.  details:

- new scripting_{,v}fprintf() that also write to the script log (if open).
- support of creation of LFS filesystems
- standard installs now allow one to choose which file systems to create,
out of the list of /usr, /var, /home, MFS /tmp, and swap.  a / is always
created, but the rest all optional. [*]
- new disklabel method: use existing.  this requires one to fill in the
mount points (and having at least a "/" is enforced).
- preservation of existing filesystems (at install) is supported.
- rewrote most of make_fstab(): the entire thing is generated from the
bsdlabel now, rather than hard coding / to 'a' and swap to 'b'.  create
MFS /tmp if requested.
- if IPv6 support isn't present, don't display any ipv6 messages.
- better rc.conf support
- sparc & sparc64 default to "cylinders" now.
- choosing "standard" instead of "standard with X" de-selects the X pkgs
by default.
- sparc64: don't install bootblocks until we have a complete system, avoids
booting with no /dev/console.
- sparc64: bump STDNEEDMB, it is way low.


[*] i have added default values for DEFVARSIZE & DEFUSRSIZE (this is used
only if /usr and /home are selected) to each port, based on STDNEEDMB.  as
such, my guesses might be wrong so port maintainers should look at these.

Revision 1.20 / (download) - annotate - [select for diffs], Sun Jan 7 13:07:59 2001 UTC (23 years, 3 months ago) by jdc
Branch: MAIN
Changes since 1.19: +2 -2 lines
Diff to previous 1.19 (colored)

Use wrefresh(curscr) instead of clearok().
Suggested by Thomas Dickey.

Revision 1.19 / (download) - annotate - [select for diffs], Sun Dec 31 13:08:07 2000 UTC (23 years, 3 months ago) by jdc
Branch: MAIN
Changes since 1.18: +2 -1 lines
Diff to previous 1.18 (colored)

Be paranoid and do a clearok() before we do a refresh().

Revision 1.18 / (download) - annotate - [select for diffs], Thu Dec 21 21:42:01 2000 UTC (23 years, 4 months ago) by jdc
Branch: MAIN
Changes since 1.17: +2 -2 lines
Diff to previous 1.17 (colored)

Don't output the termcap `cl' sequence.
XXX: do we really need to home the cursor here?
XXX: should we do clearok() instead or in addition?

Revision 1.14.4.1 / (download) - annotate - [select for diffs], Wed Oct 18 17:51:22 2000 UTC (23 years, 6 months ago) by tv
Branch: netbsd-1-5
CVS Tags: netbsd-1-5-RELEASE, netbsd-1-5-PATCH003, netbsd-1-5-PATCH002, netbsd-1-5-PATCH001, netbsd-1-5-BETA2, netbsd-1-5-BETA
Changes since 1.14: +13 -2 lines
Diff to previous 1.14 (colored) next main 1.15 (colored)

Pullup (sync with HEAD not including xmisc set changes) [fvdl]:
==
Don't call test(1) to determine the existence/type of files, that's
rather over the top. Not doing this also means that test(1) can
be omitted from the ramdisks (for scripts it's not needed, because it
is built in to sh(1)).
==
On the i386, enable swapspace as soon as the disklabel has been written,
to play nice with low-memory systems.

Add a md_pre_update() hook, to do MD things before an upgrade operation.
On the i386, use it to enable swap.
==
Remove outdated comment.
==
Add a definition for md_init(), an MD function to initialize whatever
needs to be initialized before sysinst starts processing menus.
Call it from main().
==
[i386 only]
* In md_init, determine what kind of bootfloppy we are (either
  by checking uname, or the BOOTMODEL environment var), and set
  the kernel setname accordingly for some bootmodels (tiny and laptop),
  to install GENERIC_TINY and GENERIC_LAPTOP respectively. There's
  no sense in installing plain GENERIC, especially on "tiny" systems;
  it may not even make it far enough to add swapspace on 4M machines.
* Make sure to always install bootcode into the MBR (unless the user
  explicitly tells us not to). Should fix PR#8887, PR#9093, PR#9999
==
[non-i386 md.c files]
Add empty stubs for md_init().
==
[i386]
Fix compare logic error in check for installation of seperate kernel
sets.

Add code to deal with moving a.out libraries to /emul/aout for
upgrading.
==
[i386]
Add 2 defines for a.out library move code.
==
Externalize concat_paths, it is used by arch/i386/md.c now. Add
target_realpath prototype.
==
Add message for a.out library move failure case.
==
Add target_realpath(), a function that expands a pathname on the
"target" filesystem, i.e. a filesystem that will probably be
mounted on /mnt during install/upgrade, but will be / when
the system is booted. Needed to deal with absolute symbolic links.
This function is (unfortunately) a verbatim copy of realpath() from libc,
with prefix handling added.
==
Don't abort when trying to remove a directory marked as obsolete that does
not exist.
==
Create the disktab file directly, no need to waste precious inodes/space
in ramdisks with disktab.preinstall.
==
* Change the interface of run_prog: use a flags argument instead of
  seperate booleans. Add flags to run as a plain 'system()' command,
  fullscreen (but on a pty), and chrooted, and implement their
  functionality. Add a bit of TIOCPKT handling code to handle
  programs messing with term settings better.
* Ask to set the root password at the end of an install.
* Remove a few unneeded comments.
* Sprinkle some touchwin() calls here and there to make the output
cleaner.
  They shouldn't really be needed, but even normal usage (no syslog
  messages) even left the screen messy sometimes.
* Change some messages around that were apparently swapped by accident and
  thus caused confusion.
==
Improve labelling a bit, by allowing some shortcuts to start partitions
where another one ends, and ending partitions where another one start,
or at the start of the disk / until the end of the disk.
==
Stress that if a match is found between a disk device and a BIOS disk,
you really should not be changing the geometry values, unless they
look totally ridiculous due to some BIOS bug.

Disable manual entering of initial partition label values when doing
a custom label. The step was redundant. Just go to the label edit
directly, leaving everything but the c and d partitions empty.
==
Adapt for format change in mbr editing header; it now always displays
the whole partition, and the total disksize.

Revision 1.17 / (download) - annotate - [select for diffs], Wed Oct 11 23:47:59 2000 UTC (23 years, 6 months ago) by fvdl
Branch: MAIN
Changes since 1.16: +2 -2 lines
Diff to previous 1.16 (colored)

* Change the interface of run_prog: use a flags argument instead of
  seperate booleans. Add flags to run as a plain 'system()' command,
  fullscreen (but on a pty), and chrooted, and implement their
  functionality. Add a bit of TIOCPKT handling code to handle
  programs messing with term settings better.
* Ask to set the root password at the end of an install.
* Remove a few unneeded comments.
* Sprinkle some touchwin() calls here and there to make the output cleaner.
  They shouldn't really be needed, but even normal usage (no syslog
  messages) even left the screen messy sometimes.
* Change some messages around that were apparently swapped by accident and
  thus caused confusion.

Revision 1.16 / (download) - annotate - [select for diffs], Mon Oct 2 12:05:11 2000 UTC (23 years, 6 months ago) by fvdl
Branch: MAIN
Changes since 1.15: +6 -1 lines
Diff to previous 1.15 (colored)

Add empty stubs for md_init().

Revision 1.15 / (download) - annotate - [select for diffs], Tue Sep 26 23:12:46 2000 UTC (23 years, 6 months ago) by fvdl
Branch: MAIN
Changes since 1.14: +7 -1 lines
Diff to previous 1.14 (colored)

On the i386, enable swapspace as soon as the disklabel has been written,
to play nice with low-memory systems.

Add a md_pre_update() hook, to do MD things before an upgrade operation.
On the i386, use it to enable swap.

Revision 1.14 / (download) - annotate - [select for diffs], Tue Mar 14 22:42:52 2000 UTC (24 years, 1 month ago) by fvdl
Branch: MAIN
CVS Tags: netbsd-1-5-base, netbsd-1-5-ALPHA2, minoura-xpg4dl-base, minoura-xpg4dl
Branch point for: netbsd-1-5
Changes since 1.13: +3 -3 lines
Diff to previous 1.13 (colored)

Convert ask_sizemult to take an argument, so that MBR using ports can
actually call it with the right sectors per cylinder size during
MBR partitioning.

Revision 1.13 / (download) - annotate - [select for diffs], Mon Aug 16 08:29:06 1999 UTC (24 years, 8 months ago) by abs
Branch: MAIN
CVS Tags: wrstuden-devbsize-base, wrstuden-devbsize-19991221, wrstuden-devbsize, comdex-fall-1999-base, comdex-fall-1999
Changes since 1.12: +19 -17 lines
Diff to previous 1.12 (colored)

Add generic make_bsd_partitions() in bsddisklabel.c useable by virtually all
orts. Since port specific information is in appropriate arch/.../md.h
bsddisklabel.c is currently #included by arch/.../md.c.
I'm not totally happy about this, but my concience is somewhat salved by the
overall reduction in breakage.
Initially only pmax, sparc, vax and x68k are using bsddisklabel.c.
While I'm here adjust defs.h for more than eight partitions in a generic
fashion.

Revision 1.6.2.3 / (download) - annotate - [select for diffs], Thu Jun 24 22:52:03 1999 UTC (24 years, 9 months ago) by cgd
Branch: netbsd-1-4
CVS Tags: netbsd-1-4-PATCH003, netbsd-1-4-PATCH002, netbsd-1-4-PATCH001
Changes since 1.6.2.2: +4 -3 lines
Diff to previous 1.6.2.2 (colored) to branchpoint 1.6 (colored) next main 1.7 (colored)

pull up rev(s) 1.11-1.12 from trunk. (cgd)

Revision 1.12 / (download) - annotate - [select for diffs], Tue Jun 22 00:57:09 1999 UTC (24 years, 10 months ago) by cgd
Branch: MAIN
CVS Tags: dynamic-messages-base, dynamic-messages
Changes since 1.11: +3 -2 lines
Diff to previous 1.11 (colored)

mark all calls to write 'CL' (the screen-clear escape sequence) to the
screen as XXX.  Where they were not followed by wclear(stdscr), add
wclear(stdscr).  Somebody was let out without adult supervision.  If i
were more adventurous, i'd remove the bits that output 'CL', but i'm not
gonna go there right now.

Revision 1.11 / (download) - annotate - [select for diffs], Sun Jun 20 06:08:21 1999 UTC (24 years, 10 months ago) by cgd
Branch: MAIN
Changes since 1.10: +2 -2 lines
Diff to previous 1.10 (colored)

copyright notice typo fixups, as noticed in PR#7248.  This software
was developed, not develooped.

Revision 1.6.2.2 / (download) - annotate - [select for diffs], Fri Apr 23 15:20:41 1999 UTC (25 years ago) by perry
Branch: netbsd-1-4
CVS Tags: netbsd-1-4-RELEASE
Changes since 1.6.2.1: +2 -2 lines
Diff to previous 1.6.2.1 (colored) to branchpoint 1.6 (colored)

pullup 1.9->1.10 (tsubai)

Revision 1.10 / (download) - annotate - [select for diffs], Fri Apr 23 01:38:35 1999 UTC (25 years ago) by tsubai
Branch: MAIN
Changes since 1.9: +2 -2 lines
Diff to previous 1.9 (colored)

md_post_newfs() should return int.

Revision 1.6.2.1 / (download) - annotate - [select for diffs], Mon Apr 19 15:19:30 1999 UTC (25 years ago) by perry
Branch: netbsd-1-4
Changes since 1.6: +13 -12 lines
Diff to previous 1.6 (colored)

sync with head. yes, this is an unorthodox pullup.

Revision 1.9 / (download) - annotate - [select for diffs], Sun Apr 11 22:40:27 1999 UTC (25 years ago) by bouyer
Branch: MAIN
Changes since 1.8: +4 -4 lines
Diff to previous 1.8 (colored)

- Add 2 functions in label.c, getpartoff()/getpartsize() used to let the user
  enter partitions offet and size. The user can chose unit independantly of
  the unit used for display ('M'/'c'/'s'). These functions do the proper
  bound checks and alignement/roudups. Used in the edfspart menu and
  i386 md_make_bsd_partitions() (other ports should do the change as
  well).
- now that getpartsize() does the rigth thing, kill the swapadj hack (which was
  buggy anyway).
- in i386 md_make_bsd_partitions(), don't propose defaults that don't fit on
  the disk. If the disk is too small, fallback to custom instead.
- fix a bug in mbr.c, where the partition flags would not have always been
  reset. sysinst created me a MBR with 2 active partition. The boot code
  doesn't like it :)
- added a message for eventual mount failures.
- killed donewfs and extracting messages, as we run  the commands in a
  subwindow these messages just flashed on the screen.
- Changes a few exit(1) to return(1), to give the user a second chance.
- added msg_clear() or wclear(stdscr) in a place or two, to make
  display a bit nicer.
- in run_cmd(), if the command succeeded, don't wait for the user to
  press enter.

Revision 1.8 / (download) - annotate - [select for diffs], Fri Apr 9 10:44:00 1999 UTC (25 years ago) by bouyer
Branch: MAIN
Changes since 1.7: +2 -2 lines
Diff to previous 1.7 (colored)

Oups, missed a lot of run_prog() calls when I changed the prototype.

Revision 1.7 / (download) - annotate - [select for diffs], Fri Apr 9 10:24:41 1999 UTC (25 years ago) by bouyer
Branch: MAIN
Changes since 1.6: +9 -8 lines
Diff to previous 1.6 (colored)

Some fixes for the do_install() function:
- Make all the functions called from do_install() return an error code,
  so that we can abort install if something went wrong.
- Add a 'errstr' argument to run_prog(), which if not NULL is displayed
  with msg_printf() and followed by process_menu(MENU_ok) if the command fail.
  Used to warn the user that the current action is aborted.
- in a few places use msg_display() or msg_printf() rather than printf.
  It seems that stdout/stderr are not always pointing to the active curses
  window.
- garbage-collecd unused messages, add a few new one (error handling).
XXX only tested on i386. Other md parts should be tested as well.

Revision 1.6 / (download) - annotate - [select for diffs], Wed Mar 31 00:44:50 1999 UTC (25 years ago) by fvdl
Branch: MAIN
CVS Tags: netbsd-1-4-base
Branch point for: netbsd-1-4
Changes since 1.5: +38 -38 lines
Diff to previous 1.5 (colored)

Rework the MBR code, and some of the labelling code.

	* Use structures, not 2-dimensional arrays..
	* Use the DIOCGDEFLABEL ioctl to get the disk information,
	  to avoid confusion with (older) labels.
	* Don't ever call fdisk for partitioning. This was the
	  source of much confusion.
	* For the i386, use the BIOS geometry information passed by
	  the bootblocks.

Lots of things left to do, but it's a start.

Revision 1.5 / (download) - annotate - [select for diffs], Thu Jan 21 08:02:19 1999 UTC (25 years, 3 months ago) by garbled
Branch: MAIN
Changes since 1.4: +2 -2 lines
Diff to previous 1.4 (colored)

This change includes the following:
Scripting and logging functionality for sysinst.
Child programs are run in a "display window" so you can actually see what
	they did before the screen flashes back and you loose it all.
Lots of curses fixups.  Removed nasty endwins that mangled the tty upon
	rentry.
Change the yes/no box to accept Y or N, and not require cursor motion to
	decide one or the other.
Perform curses redraws when doing things that could cause the kernel to
	spew printfs onto your screen.

Revision 1.4 / (download) - annotate - [select for diffs], Sun Nov 8 02:55:08 1998 UTC (25 years, 5 months ago) by jonathan
Branch: MAIN
Changes since 1.3: +2 -3 lines
Diff to previous 1.3 (colored)

Fix thinko in previous commit (spelling mistake in argument name).

Revision 1.3 / (download) - annotate - [select for diffs], Sun Nov 8 02:11:24 1998 UTC (25 years, 5 months ago) by jonathan
Branch: MAIN
Changes since 1.2: +3 -33 lines
Diff to previous 1.2 (colored)

Use MI function label.c:savenewlabel() in MD code to to save labels,
now that cut-and-paste errors are resolved and MD changes unified.
Postponed for i386, pmax until 1.3.3 frozen.

Revision 1.2 / (download) - annotate - [select for diffs], Sun Nov 8 01:45:45 1998 UTC (25 years, 5 months ago) by jonathan
Branch: MAIN
Changes since 1.1: +2 -2 lines
Diff to previous 1.1 (colored)

Fix lossage from overly-aggressie undoing of i386 'd' partition lossage:
alpha, sparc, ppc md.c files had disktab string ":sd#.." to save
disklabel sector-size, when they really need ":se#..."
(Can now make this MI.)

Revision 1.1 / (download) - annotate - [select for diffs], Wed Jul 29 05:41:55 1998 UTC (25 years, 8 months ago) by tsubai
Branch: MAIN

Add md part of sysinst.

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>