2014-07-26 23:30:39 +04:00
|
|
|
# $NetBSD: TODO,v 1.1 2014/07/26 19:30:44 dholland Exp $
|
1998-01-09 21:56:42 +03:00
|
|
|
|
1998-09-17 08:11:54 +04:00
|
|
|
Things to do .... in no specific order.
|
1997-11-10 20:11:19 +03:00
|
|
|
|
1997-12-07 06:03:19 +03:00
|
|
|
-- On error messages, do something to allow the user to
|
|
|
|
see any errors from anything run by run_prog().
|
|
|
|
Ideas suggested maximum entropy <entropy@zippy.bernstein.com>.
|
|
|
|
are:
|
1997-11-14 12:32:24 +03:00
|
|
|
|
1997-12-07 06:03:19 +03:00
|
|
|
#1:
|
1997-11-14 12:32:24 +03:00
|
|
|
if (run_prog("foo") != 0)
|
|
|
|
sleep(5);
|
|
|
|
|
1997-12-07 06:03:19 +03:00
|
|
|
#2:
|
1997-11-14 12:32:24 +03:00
|
|
|
endwin();
|
|
|
|
run_prog("foo");
|
|
|
|
printf("press return to continue");
|
|
|
|
getchar();
|
|
|
|
initscr();
|
|
|
|
|
1997-12-07 06:03:19 +03:00
|
|
|
#3: (modification of #2):
|
1997-11-14 12:32:24 +03:00
|
|
|
|
|
|
|
endwin();
|
|
|
|
if (run_prog("foo") != 0) {
|
|
|
|
printf("press return to continue");
|
|
|
|
getchar();
|
|
|
|
}
|
|
|
|
initscr();
|
|
|
|
|
1997-12-07 06:03:19 +03:00
|
|
|
#4:
|
1997-11-14 12:32:24 +03:00
|
|
|
|
|
|
|
Manually fork and exec everything, dup2 fd's 1 and 2
|
|
|
|
onto sockets in the child, and paginate the output in
|
|
|
|
your curses app :-)
|
|
|
|
|
1997-12-07 06:03:19 +03:00
|
|
|
We currently implement a special-case variant of #1 for untarring
|
|
|
|
release sets, since the GNU tar in 1.3 fails to report many
|
|
|
|
errors in its exit status.
|
1997-11-14 12:32:24 +03:00
|
|
|
|
1997-12-07 06:03:19 +03:00
|
|
|
-- "browse" for a local directory to get the
|
1997-11-14 12:32:24 +03:00
|
|
|
distribution set from. Maybe just allowing the user to shell
|
|
|
|
out and look around is good enough (this needs more thought).
|
|
|
|
|
2000-12-04 23:27:02 +03:00
|
|
|
-- check for already-mounted filesystems before install newfs.
|
1997-11-10 20:11:19 +03:00
|
|
|
Abort with message.
|
|
|
|
|
2000-12-04 23:27:02 +03:00
|
|
|
-- check for already-mounted filesystems before upgrade fsck.
|
1997-11-10 20:11:19 +03:00
|
|
|
(ignore?)
|
|
|
|
|
|
|
|
-- check for already-mounted filesystems before upgrade mount.
|
|
|
|
Continue, if device mount is where we wanted it?
|
|
|
|
|
|
|
|
(Jonathan ran into the above 3 by upgrading from a live
|
|
|
|
system to a scratch disk. sysinst copied the live /etc/fstab
|
|
|
|
to the target. The upgrade failed because sysinst wanted
|
|
|
|
to mount the active system's /usr. Could happen when a
|
|
|
|
real upgrade aborts, even running from ramdisk root.)
|
|
|
|
|
1999-01-10 03:52:33 +03:00
|
|
|
-- Handle ccd's and raid's during an upgrade.
|
1999-01-09 15:58:03 +03:00
|
|
|
|
1997-11-15 14:09:45 +03:00
|
|
|
-- Use bootp or dhcp to get network info (hostname, domain name,
|
|
|
|
name servers, ...)
|
|
|
|
|
2000-12-04 23:27:02 +03:00
|
|
|
-- Things like having config_network()
|
1997-11-06 02:32:44 +03:00
|
|
|
possibly use the information on the fixed disk instead of having
|
|
|
|
to ask everything.
|
|
|
|
|
|
|
|
-- Build the disktab as a profile, not a true /etc/disktab so it
|
|
|
|
doesn't overwrite the real disktab.
|
|
|
|
|
|
|
|
-- Have both ftp and floppy gets get the file, extract the file,
|
|
|
|
and then remove the file before going on to the next set to
|
|
|
|
save disk space.
|
|
|
|
|
1997-11-10 20:11:19 +03:00
|
|
|
-- Set current time and date.
|
|
|
|
|
|
|
|
-- Configure NTP servers, set NTP in rc.conf
|
|
|
|
|
1999-05-05 05:21:37 +04:00
|
|
|
-- On i386 (and others) allow for storing localtime in the RTC.
|
|
|
|
Need to patch kernel variable with offset from UTC. Any
|
|
|
|
other kernel variables we might want to patch as well???
|
|
|
|
|
2000-12-04 23:27:02 +03:00
|
|
|
-- A little more clean-up of the run_prog suite so things work
|
1997-11-06 02:32:44 +03:00
|
|
|
nicely for all ports.
|
|
|
|
|
1997-11-10 20:11:19 +03:00
|
|
|
-- fix "disklabel -r -w" vs. "disklabel -w": I still don't grok why
|
|
|
|
the -r, and the manpage says it will lose totally on sparcs.
|
|
|
|
Phil, was there some reason to bypass the incore label on i386?
|
2000-12-04 23:27:02 +03:00
|
|
|
Can we just do "disklabel -w" everywhere?
|
1997-11-10 20:11:19 +03:00
|
|
|
|
|
|
|
-- Michael bumped the in-memory disklabel struct up to 16 entries.
|
2000-12-04 23:27:02 +03:00
|
|
|
Also add a runtime check in case that grows in future
|
1997-11-10 20:11:19 +03:00
|
|
|
(e.g., slices). Maybe bump to 32 entries just in case.
|
1997-11-07 17:12:27 +03:00
|
|
|
|
1997-11-10 20:11:19 +03:00
|
|
|
-- Fix sanity-check message code. It currently gets over-written
|
|
|
|
immediately by the following message.
|
1997-11-07 17:12:27 +03:00
|
|
|
|
1997-11-10 20:11:19 +03:00
|
|
|
-- check for disklabel edits changing active root partition.
|
|
|
|
reject.
|
1997-11-07 17:12:27 +03:00
|
|
|
|
1997-11-10 20:11:19 +03:00
|
|
|
-- remove any possibly-stale ld.so.cache files from the target
|
|
|
|
/etc after unpacking sets. Maybe just don't copy ld.so.cache
|
|
|
|
from /etc.old?
|
1997-11-07 17:12:27 +03:00
|
|
|
|
1998-09-17 08:11:54 +04:00
|
|
|
-- Full configuration of rc.conf?
|
1997-11-07 17:12:27 +03:00
|
|
|
|
1997-11-10 20:11:19 +03:00
|
|
|
-- If we're doing a fresh install and there's already a label
|
2000-12-04 23:27:02 +03:00
|
|
|
on the disk, maybe use that instead of the compiled-in default
|
1997-11-10 20:11:19 +03:00
|
|
|
label?
|
1997-11-07 17:12:27 +03:00
|
|
|
|
1997-11-10 20:11:19 +03:00
|
|
|
-- symlinks for /tmp (/tmp -> /var/tmp or some such)
|
1997-11-11 03:43:31 +03:00
|
|
|
|
1998-09-17 08:11:54 +04:00
|
|
|
-- Do non-standard installs from arbitrary tar files (?)
|
|
|
|
|
2001-12-13 17:02:02 +03:00
|
|
|
-- Install binary packages. (possibly a second program
|
1998-09-17 08:11:54 +04:00
|
|
|
run after installation.)
|
2005-06-28 11:41:46 +04:00
|
|
|
|
|
|
|
-- Provide the user a menu to select each installation step on
|
|
|
|
its own. Currently there's no way to repeat steps or leave
|
|
|
|
them out. (See the Debian installer for a good example.)
|
2005-10-05 20:44:39 +04:00
|
|
|
|
|
|
|
-- Allow the user to install binary snapshots available from releng.
|
|
|
|
This could be done in the following way:
|
|
|
|
* list the available snapshots in ftp.NetBSD.org
|
|
|
|
(eg.: ls /pub/NetBSD-daily/*/*/${ARCH} using ftp(1)).
|
|
|
|
* present the user with the possible selections (handle the
|
|
|
|
case of zero options).
|
|
|
|
* set the variables and install via FTP showing first the
|
|
|
|
FTP installation screen.
|