Commit Graph

357 Commits

Author SHA1 Message Date
cgd 026efaa662 replace "/sbin/ping -c 2 %s" with "/sbin/ping -v -c 5 -w 5 -o -n %s".
Shouldn't bother doing DNS lookups or wait a really long time,
should display verbose output and quit after the host has been
successfully pinged even once.  count bumped up to 5 to give boards
which take a while to do media autoselection time to do their thing.
1999-06-24 00:16:49 +00:00
cgd 834b871ea5 don't make /etc/hosts's contents a message. there's no point and it
makes some things harder, for instance... Deal correctly with the case
where the user-supplied hostname is already fully qualified with the
domain name they supplied.  Addresses PR#6955.
1999-06-23 22:55:14 +00:00
cgd 491d56190d address the problems described in PR#7833 and its followups: ftp/nfs
installation would try to continue even if no networking interfaces found,
and, and, when that was fixed, instead of dropping back to the
pick-distribution-medium menu they'd drop all the way back to the opening
menu.
1999-06-22 18:47:07 +00:00
cgd 092b1acdb4 now that msg_window returns a value, check it 1999-06-22 15:04:15 +00:00
bouyer ab68dc3e40 Translate into french the new stuffs added by cgd. 1999-06-22 12:45:26 +00:00
cgd 3528b5e0cf * make selection of 'none' for installation media type return the user
to the toplevel menu, as promised by the media selection menu, without
  first going through an "installation is aborted" menu.
* when something causes the installation to fail (e.g. missing set or failure
  to extract a set's contents), don't go through N menus
  (missing/failed/aborted, sets didn't install/aborted,
  sanity check failed/aborted) before getting back to the top level.  The
  user only needs to be told once that their life sucks.
1999-06-22 06:57:00 +00:00
cgd f9227dd6ef kill the "If you see error messages above..." and related chunks from
the disksetupdone message.  If there were errors, sysinst would (or
should) have bailed out.
1999-06-22 04:29:54 +00:00
cgd 72928b1093 nuke ask_ynquestion from orbit. not only was it bogus w.r.t. what is
allowed in C (see PR 6431), but it's also bogus w.r.t. sysinst's message
display style, etc.  XXX the French msg file needs translation.
1999-06-22 02:43:09 +00:00
cgd 1efdb57757 explicitly mention that the domain name requested is the DNS domain name 1999-06-22 02:21:58 +00:00
cgd 59d3c08e03 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.
1999-06-22 00:57:06 +00:00
cgd afa3578c2f provide a way to ignore tty-generated signals (INTR and QUIT) and/or
forward them on to subprocesses.  nice when running a subprocess in
a display window to allow the user to kill the subprocess w/o nuking
sysinst itself.  add handling for QUIT, which gets handled the same
as intr.  add handling for HUP which just cleans up.  More signals
should be handled.
1999-06-22 00:43:57 +00:00
cgd f337a5c974 actually use all of the action window for command output 1999-06-21 02:55:27 +00:00
cgd 7f0f3a202c simplify the code to display cmd output in subwindows slightly. while
at it, remove the gratuitous inefficiencies.
1999-06-21 02:47:41 +00:00
cgd 9c8517c573 handle CRs properly when running cmds w/output to subwin 1999-06-21 02:31:17 +00:00
cgd f4ce9a35ea nuke extra spaces around logging menu title, allow the menu to be
automatically horizontally centered.
1999-06-20 20:26:42 +00:00
cgd 45a8fa11cd reimplement most of get_ifconfig_info() so that it only ignores network
pseudo-devices.  This is done by explicitly listing the driver names
(e.g. "lo") to ignore in an array in this file.  Right now, "eon", "gre",
"ipip", "lo", "nsip", "ppp", "sl", "strip", and "tun" are ignored.
1999-06-20 07:55:00 +00:00
cgd cdd16f2bf9 clues for the clueless and convenient common-bogon grep list. 1999-06-20 06:53:06 +00:00
cgd a1d9660ade typos noticed in PR#7248 1999-06-20 06:42:05 +00:00
cgd a640bc7014 copyright notice typo fixups, as noticed in PR#7248. This software
was developed, not develooped.
1999-06-20 06:08:13 +00:00
cgd eb1ee6e879 message and menu files now named *.en rather than *.eng (via repository
move).  Fixes PR#7277.
1999-06-20 05:55:51 +00:00
cgd a28535f4c0 Moved to ./msg.mi.en,v 1999-06-20 05:48:49 +00:00
cgd f3d8660f1f Moved from ./msg.mi.eng,v 1999-06-20 05:48:48 +00:00
cgd 5bc1f13c47 Moved to ./menus.mi.en,v 1999-06-20 05:48:45 +00:00
cgd 303077ef06 Moved from ./menus.mi.eng,v 1999-06-20 05:48:44 +00:00
cgd d15ec67e7c Moved to ./arch/mac68k/msg.md.en,v 1999-06-20 05:48:42 +00:00
cgd 36c2855ac2 Moved from ./arch/mac68k/msg.md.eng,v 1999-06-20 05:48:41 +00:00
cgd 4641e1cceb Moved to ./arch/mac68k/menus.md.en,v 1999-06-20 05:48:39 +00:00
cgd 109d4d2820 Moved from ./arch/mac68k/menus.md.eng,v 1999-06-20 05:48:38 +00:00
cgd f0eb5d2943 Moved to ./arch/bebox/msg.md.en,v 1999-06-20 05:48:36 +00:00
cgd 0ca07199cd Moved from ./arch/bebox/msg.md.eng,v 1999-06-20 05:48:35 +00:00
cgd 1e1bd40fc1 Moved to ./arch/bebox/menus.md.en,v 1999-06-20 05:48:34 +00:00
cgd d909fb233b Moved from ./arch/bebox/menus.md.eng,v 1999-06-20 05:48:33 +00:00
cgd 7d4a1bcfd0 Moved to ./arch/vax/msg.md.en,v 1999-06-20 05:48:21 +00:00
cgd e6e1d712f2 Moved from ./arch/vax/msg.md.eng,v 1999-06-20 05:48:20 +00:00
cgd 32c1996a86 Moved to ./arch/vax/menus.md.en,v 1999-06-20 05:48:19 +00:00
cgd 02e778ce3f Moved from ./arch/vax/menus.md.eng,v 1999-06-20 05:48:18 +00:00
cgd 53ad1be219 Moved to ./arch/macppc/msg.md.en,v 1999-06-20 05:48:14 +00:00
cgd 1209c0ae3d Moved from ./arch/macppc/msg.md.eng,v 1999-06-20 05:48:13 +00:00
cgd 9722658a75 Moved to ./arch/macppc/menus.md.en,v 1999-06-20 05:48:13 +00:00
cgd b26232be40 Moved from ./arch/macppc/menus.md.eng,v 1999-06-20 05:48:12 +00:00
cgd 6979132b6e Moved to ./arch/sparc/msg.md.en,v 1999-06-20 05:48:11 +00:00
cgd 251277862f Moved from ./arch/sparc/msg.md.eng,v 1999-06-20 05:48:10 +00:00
cgd c991293875 Moved to ./arch/sparc/menus.md.en,v 1999-06-20 05:48:09 +00:00
cgd 9542802224 Moved from ./arch/sparc/menus.md.eng,v 1999-06-20 05:48:08 +00:00
cgd 667ca88f62 Moved to ./arch/pmax/msg.md.en,v 1999-06-20 05:48:07 +00:00
cgd 947338be21 Moved from ./arch/pmax/msg.md.eng,v 1999-06-20 05:48:06 +00:00
cgd 827fb383e3 Moved to ./arch/pmax/menus.md.en,v 1999-06-20 05:48:06 +00:00
cgd d80758862c Moved from ./arch/pmax/menus.md.eng,v 1999-06-20 05:48:05 +00:00
cgd caa48ae9df Moved to ./arch/pc532/msg.md.en,v 1999-06-20 05:48:03 +00:00
cgd 95c31e6136 Moved from ./arch/pc532/msg.md.eng,v 1999-06-20 05:48:02 +00:00
cgd 25bbeb1bc7 Moved to ./arch/pc532/menus.md.en,v 1999-06-20 05:48:02 +00:00
cgd 64c6534433 Moved from ./arch/pc532/menus.md.eng,v 1999-06-20 05:48:01 +00:00
cgd 185d9f5c26 Moved to ./arch/i386/msg.md.en,v 1999-06-20 05:47:59 +00:00
cgd 5b971a4435 Moved from ./arch/i386/msg.md.eng,v 1999-06-20 05:47:58 +00:00
cgd 7cede0dbab Moved to ./arch/i386/menus.md.en,v 1999-06-20 05:47:57 +00:00
cgd 88f46e6a38 Moved from ./arch/i386/menus.md.eng,v 1999-06-20 05:47:56 +00:00
cgd 1ca2706d9b Moved to ./arch/arm32/msg.md.en,v 1999-06-20 05:47:53 +00:00
cgd 14205fc529 Moved from ./arch/arm32/msg.md.eng,v 1999-06-20 05:47:52 +00:00
cgd 34c597ab48 Moved to ./arch/arm32/menus.md.en,v 1999-06-20 05:47:51 +00:00
cgd 8af3c264a7 Moved from ./arch/arm32/menus.md.eng,v 1999-06-20 05:47:50 +00:00
cgd 5fd4cb736d Moved to ./arch/alpha/msg.md.en,v 1999-06-20 05:47:49 +00:00
cgd 737bb75981 Moved from ./arch/alpha/msg.md.eng,v 1999-06-20 05:47:48 +00:00
cgd 4d6228ce87 Moved to ./arch/alpha/menus.md.en,v 1999-06-20 05:47:47 +00:00
cgd 953eba11a8 Moved from ./arch/alpha/menus.md.eng,v 1999-06-20 05:47:46 +00:00
cgd ab6f2f5d56 since all horizontal placement specs here are attempts to center the menu,
just stick with the new default (horizontal centering).
1999-06-20 05:44:26 +00:00
garbled 128b6749ab Check the return code of subwin and newwin for NULL. 1999-06-20 04:17:57 +00:00
cgd 56de4e1945 slightly better title for the utility menu 1999-06-20 02:15:22 +00:00
cgd 01d9e08651 instead of defining a specific menu item for exit, use an 'exit' spec
with a custom string.  This way the top-level exit is 'x', like the rest.
1999-06-20 02:09:20 +00:00
cgd 4ffb63388c kill bogus spaces before and after menu titles. the menu code now positions
titles correctly.
1999-06-20 01:23:32 +00:00
cgd fb8da4672e initialize the menu systerm before setting up the message window. Then
use stdscr's maxx and maxy to set up the message window rather than hard
coding 78 and 22, respectively.  The latter, combined with large messages
and a relatively small screen (and perhaps badly-placed menus), would seem
to cause the SEGVs reported in PR#7806.  (For certain window sizes, the
menu system would reject the menus as too small, but for others sysinst
would just crash.)
1999-06-19 06:52:22 +00:00
cgd 8d188fe03a fix a slight bogon in the geometry approval message. (This is the
correct disk -> This is the correct geometry.)  (Thanks to tls and
wrstuden for help w/french.)
1999-06-19 01:23:52 +00:00
cgd ee07f989ae Clean up the FTP source selection menu some. When changing all but
password, offer defaults.  When displaying the current values, note
that a password has been set and is hidden, rather than displaying
the number of characters entered for the password.  (Thanks to wrstuden
for the translation of "hidden"...)
1999-06-19 01:10:59 +00:00
cgd 5e4db63c27 * when encoding an FTP url, if the path starts with a / put a %2F at the
start of the URL so that the request will start from / (rather than
  relative to the login directory; makes things work better for
  non-anonymous FTP).  To make it clearer what's going on, make the
  default path (used to get distribution bits) relative.  (according
  to the 1.4 LAST_MINUTE file, this is OK.)
* Also, %-encode passwords in FTP URLs (doesn't help actual security, but
  makes it slightly harder to figure out a password by reading over
  somebody's shoulder).
1999-06-18 23:26:40 +00:00
cgd e26af403c2 get rid of some annoying (bad-looking) and unnecessary spaces in the
network name/address/etc. prompts.
1999-06-18 23:14:01 +00:00
cgd bf0ffa5211 * hitting control-c (causing SIGINTR) would cause the SIGINTR handler to
be called.  it'd cleanup() then exit().  however, cleanup() is scheduled
  to run at exit via atexit().  This means that it gets run twice, and
  this causes confusion for things like endwin().  The end result is
  that rather than actually exiting and printing the "sysinst terminated"
  message, after one control-c it looks like it's still sitting at the
  last screen you were viewing even though it's actually at a shell prompt.
  squelch the cleanup() in the SIGINTR handler to avoid this problem.
* while here, nuke the annoying space before the "sysinst terminated."
  message.  it looks bad, and serves no purpose.
1999-06-18 08:54:28 +00:00
cgd c42289089f nuke md_copy_filesystem()'s contents. it now just returns 0. 1999-06-18 05:08:57 +00:00
bouyer 145e79f160 Sync with the english version. 1999-05-18 18:07:25 +00:00
simonb a94b4b4c49 Add setting RTC offset for pc's. 1999-05-05 01:21:37 +00:00
fvdl e254cfed65 Since our mbr code and bootselector are only 512 bytes long, only
read/write that much. Previously, too much was written back to
disk (although it didn't do any harm because of the sequence
of execution).

Also, upgrade the MBR type from 386bsd -> NetBSD if needed during
an upgrade operation.
1999-05-02 15:26:22 +00:00
fvdl 337300d376 Change partition type if we're installing into an old 386bsd partition.
Check if there's no active partition after MBR editing.
Ask for own MBR to be installed if we're booting from out of CHS range.
Ask for bootselector to be installed if > 1 OS, and configure it.
1999-05-02 13:07:15 +00:00
abs 4a2304f936 Cleanup to work on sparc again 1999-04-26 05:04:50 +00:00
ross 944dc00f76 * Umm, the installboot(8) run is important. Don't ignore errors!
* Use the current boot program schema.
1999-04-23 19:10:54 +00:00
tsubai 9751244932 md_post_newfs() should return int. 1999-04-23 01:38:35 +00:00
simonb eec6041cf5 An empty stub routine should return success not failure! 1999-04-21 11:55:07 +00:00
ws aded74faa1 Update the set split counts for floppy installation to match reality. 1999-04-19 13:17:09 +00:00
simonb e491f2661b Don't frob the interals of a WINDOW*, use the getmaxx() and getmaxy()
macros.
1999-04-18 04:09:27 +00:00
simonb c6f8d15017 md_post_newfs() now returns int after the latest round of changes. 1999-04-16 15:42:32 +00:00
ender 3a4b99f66e Make this compile again. 1999-04-16 08:29:15 +00:00
bouyer 88c3275af3 Add wclear()/wupdate() before MSG_makedev, bits of the previous screen
were left.
1999-04-15 12:25:54 +00:00
nathanw d69ac94192 Make this compile again (a return -> return foo was missed when
md_copy_filesystem was made to return an int in 1.10).
1999-04-15 05:01:04 +00:00
bouyer de3024ade3 Correct some bugs in mbr handling, which could lead to invalid partition
tables being written on disk:
- when counting non-BSD partitions, use part[i], not part[0]
- when using full disk for NetBSD, initialise all the fileds of the
  mbr entries (especially flags)
- When converting to on-disk format, if start and size = 0, initialise
  c/h/s to 0 for both start and end. convert_mbr_chs() would make an entry
  0/0/0, 0/0/1 which is not bogus, but not what we really want either.
1999-04-14 16:00:42 +00:00
bouyer 0e3751fa5f If there is no files to delete, return 1 (success), not 0. 1999-04-14 12:47:27 +00:00
bouyer 8d7cb08335 Main change: add a cleanup_dist() function in util.c which will do the needed
cleanups before extracting a set. Should'nt do anything for an install,
as the filesystem shouldn't contain files that need to be removed.
cleanup_dist() is called before extract_file() for each set (the set name
is passed as parameter). It will open a file /dist/<set name>_obsolete
if it exists. This file should contain a list of files (absolutes
pathnames) that needs to be removed. cleanup_dist() will lstat() each file
to determine if it's there and if it's a directory or not.
It will then unlink() entries that are not directories and then rmdir()
directories. If a directory is not empty (it should now if the list of files
is correct) it will be renamed to <directory.old> and the user will be warned.

Other changes:
- move prototype of target_prefix() in defs.h, don't maintain a copy
  of it in each file.
- in install.c, after MSG_disksetupdone, do a wclear(stdscr) (display was
  clobbered after it).
- kill MSG_openmsgbuf, it's not used anywhere
- after MSG_disksetupdone in upgrade, don't call MENU_ok, do it the
  same way as in install.
- add wclear(stdscr);/wrefresh(stdscr); before calling MENU_distset (another
  display problem ...)
- While I'm there, move ask_verbose_dist() before MENU_distmedium. This way,
  if all go well the user can go away one ftp starts and come back once
  sets are extracted.
1999-04-13 20:17:47 +00:00
bouyer 5c7e21f9cb - Add a message explaining the user how to specify units for inputs
- in run_prog(), do an explicit wclear(stdscr); wrefresh(stdscr);
  before launching subwindows. This seems to solve all the display
  problems associated with run_prog().
1999-04-13 14:49:56 +00:00
bouyer be743ed36b - 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.
1999-04-11 22:40:19 +00:00
jonb fb618761b7 Make this compile again... fix a couple of small typo's 1999-04-09 12:44:44 +00:00
bouyer 72d28a06a3 Oups, missed a lot of run_prog() calls when I changed the prototype. 1999-04-09 10:43:56 +00:00
bouyer 04f9354ab3 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.
1999-04-09 10:24:38 +00:00
bouyer a17071efea Sync with .eng versions. 1999-04-08 12:54:52 +00:00
simonb 1c15941926 Remove any leading '/'s in the pathname component of the FTP URL.
When the complete URL is constructed, and '/' is inserted between
the hostname and the pathname components.
1999-04-07 13:09:55 +00:00