Commit Graph

577 Commits

Author SHA1 Message Date
dg
93e241d404 Verify that the last component of the mount point path exists and is
a directory - allows for better error reporting.
1995-02-15 14:20:50 +00:00
dg
a4c353eefe Slight change of wording on clean flag not set message to appease some
complaints.
1995-02-15 00:23:56 +00:00
dg
9c98e6242d >The fix for the missing ".." in the root directory is enclosed below.
Submitted by:	Kirk McKusick
1995-02-15 00:17:56 +00:00
ugen
13a6aaa8e0 Ppl asked to make ipfw smarter..ok..
here it is..
1995-02-14 09:34:04 +00:00
ugen
c5bdd3a729 Fix for rather stupid bug by which you couldn't set
ports for the destination IP addr/port.
Nobody reported this btw , while a lot of other things reported-
probably ppl does not use destination ports at all????
1995-02-14 08:28:27 +00:00
phk
66bfe1171e Made the changes needed here to install from a CDrom.
Cleaned some cruft in the process.
This program becomes curiouser curiouser...
1995-02-13 06:52:16 +00:00
martin
f4a355cd18 Added FIFO restore capability. 1995-02-10 21:57:02 +00:00
jkh
823ef3fe8f Prepare for 950210-SNAP 1995-02-10 01:13:27 +00:00
wollman
df7354d684 Implement TCP MIB variables. 1995-02-09 23:16:17 +00:00
bde
5c099a964c Don't allow the alternate superblock block number for one file system
to apply to others (except when it is given on the command line).
1995-02-09 15:58:31 +00:00
ugen
80de10dd9c Ok..at least this man page is up to date now
To be continued..
1995-02-09 13:13:18 +00:00
phk
88fa097b58 Allow zero as value for certain arguments to indicate "take from disklabel". 1995-02-05 18:03:37 +00:00
phk
f3be06362e Change the defaults for newfs to disregard the geometry in the disklabel.
We pretend we have one head with two megabyte worth of sectors per cylinder.

The code try to access another head in what it belives to the same
physical cylinder, because it belives that it would be faster than
waiting for the next free sector under this head to come around.

Most modern drives doesn't have a "classical" geometry, and thus
we end up fooling ourselves doing the above optimization.  With this
change we will fill a cylinder sequentially if we can, and thus get
much more mileage from the track-buffer/cache built into the drives.

As a result a lot of seeks to the next or previous track should be
avoided by this.

(My disk is a lot less noisy actually...)

You can still get the old behaviour, by specifying zero for the
numbers.

This will also solve the problem with newfs barfing at really big
drives.

Obtained from:	adult advice from Kirk.
1995-02-05 08:42:31 +00:00
jkh
3e44350f15 Bump the date to February 2nd. 1995-02-02 08:32:11 +00:00
jkh
9fa893b664 Mkdir() now takes two flags. 1995-02-02 05:49:06 +00:00
phk
28e440fd71 Make dirs for msdos fs's. 1995-02-02 05:35:36 +00:00
jkh
01be8a1a70 Do what I think Poul *intended* to do, rather than what he did.. :-) 1995-02-01 11:15:45 +00:00
jkh
c766e4d1a4 Bump snap date. Our current version numbering scheme loses.
How can we get ONE canonical version string into everything?
1995-02-01 11:03:35 +00:00
phk
9f0a17dbb2 I have taken sysinstall out of the normal SUBDIR rule. There are too
many build problems just now, and it isn't that general after all.
1995-01-31 19:41:08 +00:00
dfr
e6dda6d3d5 Add support for kerberised NQNFS.
Reviewed by:
Submitted by:
Obtained from:
1995-01-30 19:18:11 +00:00
dfr
4ae95525d6 Add support for kerberised NQNFS. 1995-01-30 18:56:06 +00:00
phk
5da6d72e0b Move the real kernel onto the cpio.flp and read this from the boot.flp
make debug handling with serial console obnoxious, but present.
1995-01-30 03:19:58 +00:00
phk
7199f4d8dc Some cleanup done.
Include bteasy, bootsd, sdboot and termcap entries using file2.c

Remove all traces of "termcap.small".

The policy in this program regarding termcap is:

| If $TERM is set
| 	do nothing special, rely on usual termcap.
| else
| 	use compiled in (via file2c) termcap entries
1995-01-29 02:31:38 +00:00
ats
d088957441 fix another bug in the MAKEDEV cludge :-). The x-bit permission are not
necessarly copied over. So better call it explicit with a sh ./MAKEDEV .
1995-01-29 01:45:54 +00:00
ats
4409083679 Correct the relative path for the etc directory in the makedev cludge :-). 1995-01-29 01:25:17 +00:00
jkh
011a8b78ff Less kludge dev. 1995-01-28 09:17:58 +00:00
jkh
d1582b8e3a A different kludge for /dev 1995-01-28 09:16:41 +00:00
jkh
fe0a504c2b Poul lost his copy of K&R again - add a semicolon to the end of the
preceeding statement..
1995-01-28 05:00:50 +00:00
phk
a9ff763a3b Update to BTEASY 1.7
Submitted by:	vak
1995-01-28 04:42:08 +00:00
phk
5eca39107f Make Jordan a little happier by fixing a couple of bogons. 1995-01-28 04:35:05 +00:00
jkh
0b97346fe6 Bump the date again - the snapshot doesn't look like it's going to happen until
tomorrow.. :-)
1995-01-28 01:14:39 +00:00
jkh
22ae6b3e5f Call the bininst.sh script by its new name. 1995-01-28 01:13:29 +00:00
dg
05e6d3db11 Kill used "error" variable. 1995-01-27 23:26:53 +00:00
dg
aff0ac7fd7 Fixed bogus error reporting when the failure is RPC related ("Address
already in use", instead of "Permission denied").
1995-01-27 23:24:33 +00:00
jkh
8150a31389 Tweak SNAP date. 1995-01-27 19:56:56 +00:00
dufault
34ecc54a2c Fix verbose printout of "" name 1995-01-26 23:40:40 +00:00
ache
98ff5a82cf Sync with main termcap 1995-01-26 08:51:52 +00:00
jkh
e5245c175c Add a reference to ft(8). 1995-01-26 00:34:56 +00:00
jkh
3b8f9f3b9a Add pointer to the `ft' command. 1995-01-26 00:32:58 +00:00
ache
e9afac40c9 DPADD added 1995-01-25 20:25:57 +00:00
dufault
f5abb7313b Added "scsi" 1995-01-24 12:08:15 +00:00
dufault
6b93b57e13 This commit was generated by cvs2svn to compensate for changes in r5843,
which included commits to RCS files with non-trunk default branches.
1995-01-24 12:07:27 +00:00
dufault
2b302b8741 Submitted by: Julian Elischer and Peter Dufault
Obtained from: 1.1.5

"scsi (8)" from 1.1.5, with added support for any command from
the command line.
1995-01-24 12:07:27 +00:00
bde
addc929715 Use the correct include path if there's an obj directory. 1995-01-24 06:10:48 +00:00
ugen
5de334c990 Add dset to Makefile. 1995-01-23 15:45:41 +00:00
ugen
6ce7502ad0 src/sbin/dset
*blush* this is the commit i meant to do before..
Utility to save device configuration.
1995-01-23 15:42:59 +00:00
wollman
c443b655cf Make modload more informative about errors encountered while running
`ld' by calling execl() directly rather than using system().
1995-01-23 04:08:00 +00:00
wollman
47c6f0361a Document the requirements of dynamic loading on mounting order. Cross-ref
to vfsload(3).
1995-01-22 22:54:56 +00:00
ache
b35d573109 Reflect lastest termcap changes 1995-01-19 17:15:54 +00:00
joerg
7c98836d83 Should that last sentence read "...thus a full dump must be done...",
or do I have it all wrong?

Submitted by:	"Shawn M. Carey" <smcarey@mailbox.syr.edu>
1995-01-18 19:26:14 +00:00
joerg
7b3f6414f5 Removed the comment about missing support for the original "High
Sierra" format from the bugs section.
1995-01-16 17:05:44 +00:00
jkh
e1791b06e3 Make sure a partition we're about to mount on will always exist on the
user's system.  Make Mkdir() selectively not die in case of failure.
1995-01-14 10:31:29 +00:00
jkh
65615239a4 Correct positioning of text, update version. 1995-01-14 07:30:30 +00:00
jkh
0a93efad73 Recognise Linux filesystems.
Submitted by:	remy
1995-01-14 02:26:07 +00:00
jkh
5f4e772ef8 Correctly recognise Linux partitions.
Submitted by:	remy
1995-01-14 02:25:36 +00:00
jkh
7e84fde7fb Patch from Remy Card for bogus path in Makefile. 1995-01-14 02:20:42 +00:00
joerg
0cd8c74ee0 Make ldconfig and ld.so not hashing the shared lib minor number. This
misfeature caused troubles when a program attempted to access a shlib
where one with a higher minor number has been hashed.  Ldconfig does
only include the highest-numbered shlib anyway, so this is in no way a
limitation of generality.

Caution: after installing the new programs, your /var/run/ld.so.hints
needs to be rebuiult; run ldconfig again as it's done from /etc/rc.
1995-01-12 19:12:29 +00:00
ugen
e681bf4b48 Utility changes following the facility.
We have only one firewall chain and one accounting chain now.
   No blocking/forwarding so commands changed.
Man pages are somewhat out of date and will be updated ASAP.
1995-01-12 13:01:21 +00:00
ache
6cbf9ac3bb Add better argument handling
Submitted by: jmz
1995-01-10 21:19:57 +00:00
bde
514cb70f5e Remove excessive argc checking. It was impossible to set `dtrwait' and
and `drainwait' in a single command.
1995-01-10 01:42:24 +00:00
ache
a8479792d7 Fight agaist hanging modems: add new drainwait option.
Reviewed by: Bruce
1995-01-05 00:03:06 +00:00
gibbs
e9de78da56 Honor the values for bsize, fsize and bps from the disklabel. 1995-01-04 23:50:30 +00:00
gibbs
0df1a28aca Allow for the specification of bsize, fsize, and bps (blocks per segment)
for LFS filesystems.
1995-01-04 23:49:51 +00:00
joerg
d6efd109b7 The -N option takes one argument, hence the getopt control string
needs to have a colon for it.  Looks like nobody has tested this
so far.
1995-01-02 12:08:06 +00:00
jkh
571bcca723 Tweak the man page too. 1994-12-30 22:51:33 +00:00
jkh
19e605aa04 From: Wankle Rotary Engine <wpaul@skynet.ctr.columbia.edu>
- The -a flag now works just as it does in SunOS: '-a' is actually
  handled like a wildcard for all interfaces. 'ifconfig -a' displays
  the status of all interfaces, 'ifconfig -a netmask 0xffffff00' sets
  the netmask of all interfaces, and so forth. I don't know if many
  people really need to be able to set the netmasks of all interfaces
  at once, but the SunOS ifconfig seems to allow this, so there you
  have it.

- An 'ether_status' function has been added to display the ethernet
  address of all ethernet interfaces. Again, as in SunOS, you must
  be root in order for this to work. The ethernet address is read
  from /dev/kmem using kvm_open() and kvm_read(), much in the same
  was as it's done with netstat. If you choose to install ifconfig
  set-gid kmem then normal users will be able to see the ethernet
  address as well, though this may not be desireable. This feature
  requires a small change to the ifconfig Makefile: you need to link
  with -lkvm in order to use the kvm_*() functions.

Submitted by:	wpaul
1994-12-30 22:42:41 +00:00
jkh
8b2cef6b70 Bring the 2.0 RELEASE version back into -current. Now I just need
to resurrect my changes for the last snapshot, which were unfortunately
lost in a forest fire on time.
1994-12-27 23:26:59 +00:00
ache
6476aa24f1 Use timelocal() instead of mktime() hack 1994-12-26 10:43:48 +00:00
nate
7f56eb7b93 Updated to recent version of Paul K.'s shlib code. This code has better
warning handling and allows for link-time warnings with a modified
version of gas.

Note: Not all of the newer bits were updated such as some of the non-x86
machine-dependant code is relevant to FreeBSD right now.

Obtained from: NetBSD
1994-12-23 22:31:35 +00:00
ugen
5a746995e3 Add interface to clear accounting entry option.
Reflect ip_fw structure changes.
1994-12-13 15:56:51 +00:00
ugen
d3899ce8a1 Add via option,minor changes to interface to reflect
internal firewall changes.Check option disabled temporary.
1994-12-12 17:19:33 +00:00
ache
7e73ded5b5 Fix resetting adjkerntz to 0 (pointed by Bruce),
forget to initialize mib variable.
1994-12-12 05:48:45 +00:00
ache
1ff1e1698a Optimize setting of DISRTCSET 1994-12-12 05:43:28 +00:00
ache
14cf84efe4 Clean internal logic, helps for some unusual cases 1994-12-12 05:20:44 +00:00
ats
963df32de3 Changed a sum(1) to a cksum(1). 1994-12-11 23:29:20 +00:00
ats
d879492c2b Changed a reboot(1) to a reboot(8). 1994-12-11 23:27:59 +00:00
ache
f9dc382f6c rc.local -> rc.serial
cua0? -> cuaa?
1994-12-05 19:52:29 +00:00
pst
5e1370a6d0 Fix spelling/grammar errors 1994-12-05 10:08:35 +00:00
jkh
813d1d8c36 Joe Greco <jgreco@brasil.moneng.mei.com>'s enhancements to startslip.
Submitted by:	jgreco
1994-12-04 12:26:01 +00:00
bde
7b75b11952 Fix another path that was broken by moving things to sbin/i386. 1994-12-04 08:01:24 +00:00
wollman
8192c613ef Move i386-specific programs into i386 subdirectory. 1994-12-02 23:53:23 +00:00
wollman
fa9f248392 This commit was generated by cvs2svn to compensate for changes in r4910,
which included commits to RCS files with non-trunk default branches.
1994-12-02 23:23:01 +00:00
wollman
02ba538e2e Cronyx/Sigma sync/async serial driver with PPP support
from Serge Vakulenko
1994-12-02 23:23:01 +00:00
wollman
1e6f21ed41 Cronyx/Sigma sync/async serial driver with PPP support
from Serge Vakulenko
1994-12-02 23:23:01 +00:00
wollman
17bb48fa11 Change obnoxious ``Not root dir'' error message into one which actually
tells you what's wrong.
1994-12-02 02:58:56 +00:00
dg
2350bbf295 In past releases of FreeBSD, I have used the exit status of "ping" to
determine whether a connection to a given machine is up or not.

In FreeBSD 2.0 (and therefore, I assume, BSD 4.4) the exit code of ping
is always zero, even if no packets were received.

I would like to propose the following change to /usr/src/sbin/ping/ping.c
to restore this useful behaviour:

Submitted by:	Denis Fortin
1994-11-29 16:09:56 +00:00
ugen
b682f16030 Interface changes to support additions to firewall. 1994-11-28 12:34:37 +00:00
ats
ffea1bbfcc Submitted by: M.C. Wong
Obtained from:
Don't throw away the /etc/nologin file in the -k case.
1994-11-27 23:52:13 +00:00
ats
a686a27a88 Correct a litle typo in an error message: PRC -> RPC. 1994-11-26 13:57:46 +00:00
ache
1642397153 Sectors field too narow (6 digits only), increase it to 7 1994-11-24 21:56:03 +00:00
ache
da72abc9ca Fix draw_box dims 1994-11-24 21:50:26 +00:00
paul
4a8057be33 Added
CLEANFILES += makedevs.c
1994-11-22 13:34:43 +00:00
jkh
1e9b506674 ALPHA -> BETA 1994-11-21 07:38:48 +00:00
phk
c5ce0e844d Another absolute path... Two actually. 1994-11-20 23:01:27 +00:00
phk
00777402fa Guess what 1994-11-20 22:47:52 +00:00
phk
0f64dfe096 Whoops. 1994-11-20 22:46:14 +00:00
phk
4c0d04b7f5 I might soon stop to keep count of these... 1994-11-20 22:45:14 +00:00
phk
fd2550d3d3 And another absolute path -I :-< 1994-11-20 22:42:16 +00:00
phk
73136aa719 This time: an absolute -I :-< 1994-11-20 22:41:03 +00:00
phk
ef133122f9 fix another BLODDY ABSOLUTE .PATH !!!! :-< 1994-11-20 22:28:09 +00:00
ats
7fc3a47818 Add parameters "compress", "normal" and "noicmp" for the slip usage.
These names are used in the slip.hosts file as examples, but ifconfig
have formerly only accepted link0, -link0 and link1 for this.
1994-11-20 19:45:58 +00:00
ugen
695c3c825a G-d help me to do it right first time....
Minor patch to man page,test.
1994-11-20 11:53:06 +00:00
phk
bc27a932fa A couple of changes more. Now Paul & Jordan can play again... :-) 1994-11-20 00:49:21 +00:00
phk
f7ebe8faec Changes to match Pauls code. Had to "globalize" the variables for the
mountpoints.
1994-11-19 23:59:03 +00:00
paul
433a9ec864 Changed the MBR partition type field from being a string to
a decimal value.

I don't have the time to deal with users typing in partition names
such as "FreeBSD" at the moment so just allow the numerical id to be
specified for the moment.
1994-11-19 18:23:08 +00:00
nate
fff3236967 NetBSD -> FreeBSD
(Poul, bring this into 2.0 please)
1994-11-19 17:55:35 +00:00
paul
10b6f8dcf3 Implemented buttons for all the screens.
Could do with some cosmetic tuning regarding placement and things.

Fixed some dialog code (from Andrew).
Pass mountpoints onto stage2 in a struct fstab *mounts[]
Fix all the field connections to conform to the new L&F document.
1994-11-19 17:29:19 +00:00
paul
45071d7640 I hope this gets my changes merged back into the current branch.
Removed a layer of menus.
Auto select partition to install into -- first FreeBSD partition
in MBR table. Abort if no FreeBSD partition.
Added a F_BUTTON type.
Fixed up label editor to show free space properly.
Fixed a few bugs.
1994-11-19 05:20:13 +00:00
ache
36e48a1400 Insert newline into too long line 1994-11-19 00:17:55 +00:00
ache
b07ce32e95 Fix more dialog bugs and core dumps introduced by previous commiter 1994-11-19 00:09:00 +00:00
ache
36b86c098c Fix dialog things broken by previous commiter 1994-11-18 23:34:05 +00:00
ache
8950638ff7 Nuke edit_line crawled in again. Change all occurances to line_edit. 1994-11-18 22:21:57 +00:00
paul
b56a203af3 Update the in-core disklabel when we change the on-disk version.
Fix up the editor links for the disklabel editor.
Correct the display of fields when they're longer than the
viewable length.
1994-11-18 19:29:01 +00:00
paul
b0eb8ee384 New files that the last commit missed. 1994-11-18 18:24:00 +00:00
paul
3ad24d66db Merge in my new mbr and disklabel code. 1994-11-18 18:13:13 +00:00
phk
e1f4929dce Add a "write Bootcode" option to the Fdisk editor.
unzip sysinstall on the way to the hd.
1994-11-18 11:30:04 +00:00
jkh
1233624381 Give the user a chance to retry the cpio floppy. 1994-11-18 10:12:56 +00:00
ache
649677a5d9 Remove edit_line(), use line_edit() libdialog function instead in all places 1994-11-18 01:16:58 +00:00
ache
b70f1c641c Use dialog_clear_norefresh() if possible 1994-11-17 23:36:49 +00:00
ache
ba821de391 Use -1, -1 where is possible 1994-11-17 19:44:55 +00:00
jkh
850f1f5bb6 Rethink the cpio floppy verify a little. Don't use a magic cookie,
check for bininst instead (see comments in release/Makefile).
1994-11-17 14:18:43 +00:00
jkh
307863bc92 1. Add check to see if CPIO floppy extracted properly.
2. See if swapon() failed and at least print a diagnostic.
3. Use -1 instead of strheight()/strwidth() everywhere.

Reviewed by:
Submitted by:
Obtained from:
1994-11-17 14:12:38 +00:00
jkh
74b1e0b017 New man pages from Ugen. Delete my old, first attempt. I only hope
that the english in Ugen's two replacement pages is not too impenetrable! :-)
[Note:  Poul - please pull these into the BETA branch along with the
other firewall changes]

Submitted by:	ugen
1994-11-17 09:50:30 +00:00
gibbs
a28860212f Make newlfs work by adding the MAXSYMLINKLEN and a byte padding to
struct lfs.

sovs@diku.dk:
The pad2 field in struct lfs is a kludge. You
need it because the raw devices has to be written in DEV_BSIZE. The
lfs_maxsymlinklen is needed because the tells the UFS code that we
want to use 4.4BSD directory layout insted of FreeBSD 1.1.5.

Reviewed by: Justin Gibbs
Submitted by: sovs@diku.dk
1994-11-17 01:38:30 +00:00
ache
41021bcb13 Remove str{width,height} functions, they are in libdialog now.
It is only first hook for new autosizing changes, more changes
will follow.
1994-11-16 14:42:22 +00:00
jkh
a8e45e5f34 Latest from Ugen J.S.Antsilevich" <ugen@NetVision.net.il>. Poul, please
take this into BETA.
Submitted by:	ugen
1994-11-16 10:18:18 +00:00
ache
b268748ec9 Use autodetected dimensions in Sorry! window 1994-11-15 12:17:42 +00:00
ache
a7080ca0ef Use TellEm instead of dialog_msgbox 1994-11-15 12:15:51 +00:00
ache
75b7af8528 Check exit code of the dialer, from asa@gw.cronyx.msk.su
Set HUPCL as default modem flag, idea from asa@gw.cronyx.msk.su
but different implementation.
1994-11-14 20:17:36 +00:00
jkh
7b9ea7d743 I buggered the last commit. Make sysinstall work again (^$&*!! missing
comma!).
1994-11-13 04:20:23 +00:00
jkh
cde83c584f Whoops! Update the size of the main menu to 7 items. I'm sleepy. 1994-11-13 02:06:50 +00:00
jkh
67de5d8eaa Now I know what this message is really supposed to say.. :-) 1994-11-13 01:14:38 +00:00
jkh
0669d98a63 Add hooks for a short trouble shooting document. 1994-11-12 20:34:18 +00:00
phk
72f0a6c2c9 Don't continue if we don't get a /, swap and a /usr or 80Mb in /. 1994-11-12 05:40:28 +00:00
jkh
7d0620c826 Make sysinstall deal with user interrupts properly. 1994-11-11 23:22:56 +00:00
jkh
59151de821 1. Ask the user one final time before newfs'ing his disk into oblivion.
This means that even "proceed" can be chosen now without going
   irrevokably down that path.
2. Clean up the stage5 text.
1994-11-11 07:58:09 +00:00
jkh
ad3495c912 Poul's and my idea of avoiding the last reboot at the end was
too ambitious; we can't make the transiton from install to /sbin/init
without another reboot.  Sigh..  Oh well, not that big a deal.
1994-11-08 18:44:14 +00:00
jkh
f260055f86 Detect that bininst has finished and go straight into the new system.
Reviewed by: phk
1994-11-08 14:04:19 +00:00
phk
73ad652e88 swapon had a bug. Thanks Michael, but couldn't you told me and not Jordan ?
now I have to listen to him all morning teasing me...
1994-11-08 13:40:01 +00:00
jkh
504234844c More 12th hour fixes from Ugen.
Submitted by:	ugen
1994-11-08 12:48:02 +00:00
phk
f400f6fddf Remember to set the d_type field correctly 1994-11-08 11:51:44 +00:00
jkh
fa404ed611 Change TITLE to something more rational. Make sysinstall.c use it instead
of its own hardcoded constant.
1994-11-08 11:44:04 +00:00
phk
2678bc9274 Always say the magic word at the end. 1994-11-08 10:14:19 +00:00
jkh
2b933300e4 Change Fatals to Warnings. 1994-11-08 07:44:57 +00:00
jkh
f914144b3e Fixup:
1. Don't use kernel name for headers - I'm running 2.0.1-Development,
   not ALPHA, and this messes things up.
2. The last dialog was too big, make it a little smaller.  Just cosmetic,
   while I'm in here.
1994-11-08 03:41:52 +00:00
jkh
b3497d7fb9 My last cosmetic changes. 1994-11-07 13:48:54 +00:00
jkh
65d35f2a0a Cosmetic. 1994-11-07 09:49:06 +00:00
phk
b726489c35 Always clear before we "TellEm()" 1994-11-07 04:53:23 +00:00
phk
c63f9ab050 Only Mount relative to Written disklabel. 1994-11-07 00:41:38 +00:00
phk
2f6866bfb5 Never have more than one active partition. 1994-11-06 23:33:20 +00:00
ache
3cdc22268f After fixing curses bugs use LINExCOLS in show file 1994-11-06 15:35:50 +00:00
jkh
23fb6cd17d If a file is not present, it's not an error. This means you're using the
1.2MB floppy image.
1994-11-06 11:09:18 +00:00
phk
6f05c1e02d remember to tell dialog that we leave. 1994-11-06 04:34:46 +00:00
jkh
e1cdf7f90c Retreat from the idea of using gzip'd ascii files. 1994-11-06 04:10:13 +00:00
phk
3ae26fefe1 label.c Make sure we always show 8 disk-partitions.
main.c	sanitize the logic of what we do when:

if(getpid()!=1) do stage0 & stage1  (very useful actually)
else if (floppy-marker-file is there) stage0-2, reboot
else stage3-5
1994-11-06 04:05:45 +00:00
jkh
126cfc59f8 Sigh. My error message printing was still wrong. Wipe the sleep from
my eyes and do this properly (debugging is especially difficult when you have
to burn a floppy every time you want to test your changes! :-( ).
1994-11-06 02:24:45 +00:00
jkh
d8b995a391 Don't use a shell, silly, we don't have one! 1994-11-06 01:34:14 +00:00
jkh
d73066b385 Tweak tweak.. 1994-11-06 01:16:30 +00:00
jkh
469f514e6e I misunderstood dialog_prgbox() - fix it. 1994-11-05 23:56:40 +00:00
jkh
f61da25ffa Make ShowFile() now show gzip'd text files. This should save a fair
bit of space on the install floppy.  Modify stage0 and the target names
accordingly.
1994-11-05 23:12:10 +00:00
ache
4efdfe2270 Enable back dialog_msgbox in TellEm, real problem was delwin
into edit_line
1994-11-05 23:09:26 +00:00
jkh
bec8289edc Whoops! Knew I forgot something.. Bump the menu size. 1994-11-05 08:20:54 +00:00
jkh
57081f9150 Add a chance to read the release notes, too. 1994-11-05 08:20:08 +00:00
jkh
b17742d5b7 I'm not sure if we're just supposed to fall off the end like this,
but at least return something.
1994-11-05 07:34:02 +00:00
jkh
b8a61492cb Make stage5 go either to a shell, or on to the bindist installation. 1994-11-05 07:23:58 +00:00
jkh
ab0b408b2e Make this work the way it was really supposed to - less intrusively. 1994-11-05 07:03:55 +00:00
phk
a41a416d53 Use /DISKSPACE.FAQ as help-file in the disk-editor. 1994-11-05 06:03:06 +00:00
jkh
bd82c2541d Change the logic for how error messages are printed so we can actually
see them.
1994-11-05 05:46:12 +00:00
phk
2782436747 Cosmetics: edit_line() does standend() when done; 1994-11-05 03:59:34 +00:00
phk
8e7b034f19 Added a (H)elp function to the fdisk/disklabel code, much needed, now I only
have to write the text-file it will dump on you.
Stopped using cleartoeol in AskEm(), just as a test to see if the screen
looks more sane.
Added a attempted auto-recognition of /, swap and /usr for the first disk
where it looks sensible.  Logic of this might need to be improved.
Made a "ShowFile()" which will not bomb/ignore you if the file isn't there.
1994-11-05 03:34:22 +00:00
phk
2f7789168b Fixed a ghastly mistake. Edit_line() would "delwin(window)". Bad move
buddy, you'd better not call with stdwin then!   fixed now.
Seems like dialog is a LOT more rational now.
1994-11-05 03:13:33 +00:00
phk
e15766c491 Fix a potential bug in stage2.
disable the dialog_msgbox in TellEm(), until we find out why it
hangs on second or third invocation.
1994-11-04 21:38:37 +00:00
dg
f9ee10c7bb From njw@cs.city.ac.uk (Nick Williams):
/sbin/umount does not return the correct exit status due to incorrect
logic in its internals.

Further, because of the nature of the code, you *cannot* use it to
umount a directory from a union mountpoint. Well, you can sometimes,
it depends on if the directory is at the top of the union stack or not :)

Submitted by:	njw@cs.city.ac.uk (Nick Williams)
1994-11-04 17:51:37 +00:00
ache
a3d03a23fc -i case goes to background pause and acts like -a case on receiving
SIGTERM. This helps to keep CMOS clock updated before reboot.
Idea from J.Wunsch.
1994-11-03 03:16:16 +00:00
ache
eef1d6f571 Restore jkh's changes, now it works for const strings 1994-11-03 00:30:27 +00:00
ache
4c93e09be1 Now autosizing code works with const strings too.
Prototype added.
1994-11-03 00:28:05 +00:00
jkh
4194c9242f Don't use autosizing code after all - it doesn't like const strings. 1994-11-02 22:39:57 +00:00
phk
18e6482b87 a missing star. 1994-11-02 22:06:24 +00:00
jkh
d8bef49c01 Last changes before going to bed. Disk label editor should now work
a fair bit better.
1994-11-02 11:00:35 +00:00
ache
dcd5ec0ca7 Restore back -i, -a 1994-11-02 10:04:11 +00:00
ache
fdf434f26c Restore back -i, -a 1994-11-02 09:40:06 +00:00
jkh
144bc301e9 Stage0 can't dump you into a shell. There isn't one. Just reboot.
Stage5 didn't have a large enough dialog box.  Fix that.  Also use
Andrew's autosizing code.
1994-11-02 09:05:49 +00:00
phk
316afd9b6a Make MkDir() actually do "mkdir -p", so that we can mount on /home/foo, even if
/home isn't a mountpoint.
1994-11-02 08:52:15 +00:00
jkh
a1ca5f047f Fix more mongoloid coding style.
Make a stab at getting free space display to work.
Forward decls to shut compiler warnings up.
Increase some fields to width 2 in order to get edit_line to let you
actually edit them.
Sanity check values and yell at bonehead users.
1994-11-02 08:15:46 +00:00
ache
cb3e557352 Restore things broken by phk, please use patches to 'cvs update'
instead of whole files commiting!
1994-11-02 07:37:40 +00:00
ache
3ee3d198c2 Restore things broken by phk, please use patches on 'cvs update'
instead of whole files!
1994-11-02 07:34:01 +00:00
jkh
1bfe374ac3 More miscellaneous changes. Clear the screen in some appropriate spots. 1994-11-02 07:15:56 +00:00
jkh
ab9dc068de Get stage0 and stage5 working.
Try to reformat this code to be a little more human.  Weird europeans
have been writing this, and can't even seem to agree a single coding
style for more than 4 consecutive lines! :-)
1994-11-02 06:19:53 +00:00
wollman
f22ba017a0 Add support for filesystem-specific `-o' options, and re-implement the
most common cd9660 and nfs options like God intended them.  (It is now
possible to say

	mount -o ro,soft,bg,intr there:/foo/bar /foo/bar

again.)  This whole getmntopt() business is an incredible botch;
it never should have been anything more than a wrapper around
getsubopt(3).  Because if the way the current hackaround is implemented,
options which take arguments (like the old `rsize' and `wsize') are still
unavailable, and must be accessed the new, broken way.

(It's unimaginable how Berkeley managed to screw up one of the few things
about NFS that Sun actually got right to begin with!)
1994-11-01 23:51:53 +00:00
ache
30655c5010 Remove options, run adjkerntz as daemon now 1994-11-01 16:22:22 +00:00
phk
79436024c1 Public apology:
I have walked all over Paul Richards code again, and severely lobotomized
some of his stuff, in order to cut some corners for the 2.0-Alpha release.
I belive that we can now manipulate fdisk and disklabel-stuff sufficiently
for the release to actually be produced.
It's not that I don't like Paul and his code, I just need something I
can kick out of the door RSN.

Sysinstall is now under absolute code-freeze, only Jordan has my permission
to commit to this code (stage0 & 5).  I would appreciate if everybody
else would finds problems in sysinstall send patches to me, and I will
commit them. THANKYOU.

The fdisk/disklabel editors are made in pure ncurses, and follow a model
"a`la spreadsheet".

There are some important functions which are missing still, and I would
appreciate if somebody would look at them.
The FDISK part needs a "whole-disk" option, and it needs a "rewrite
MBR-boot code" option.
The DISKLABEL part needs to be able to "import DOS-partition".
Both need a "HELP" function, (display a file "/HELP" using dialog is OK).

It seems to me like the wd.c and sd.c should reread the physical record
when a DIOCGDINFO is made, so that they can pick up changes in the
MBR-data.  Otherwise there will be a couple of weird cases where we
cannot avoid replicating code from the kernel.

If you want to play with this, look at src/release/Makefile.  You may need
to step back to version 1.38 of sys/i386/isa/fd.c to make "rootable"
floppies, it is not clear at this time if that indeed is the problem I
have been having.

Sleep well, my friends, and expect the real Alpha in 24H, if the tree is
still solid.
1994-11-01 10:10:43 +00:00
ache
8dc5437565 Remove extra :%s from syslog formats 1994-11-01 08:34:32 +00:00
ache
d6c1596a63 Now:
adjkerntz -i writes kernel clock only, don't touch RTC clock
adjkerntz -a writes RTC clock only, don't touch kernel clock
1994-11-01 06:20:52 +00:00
jkh
7add8247a9 Latest changes from Uben.
Submitted by:	uben
1994-10-31 23:58:04 +00:00
ache
fa1378e14a Don't make too big windows, count actually text width/height 1994-10-31 04:49:15 +00:00
ache
e5495fccfc Change hardcoded 24x80 to LINES-1, COLS
Remove compiler warning
1994-10-31 04:07:43 +00:00
joerg
6ab192037c Fixed a type. 1994-10-30 18:23:22 +00:00
pst
ec318c32c3 add md5 1994-10-29 23:58:55 +00:00
pst
9ceb48c2d2 This commit was generated by cvs2svn to compensate for changes in r3995,
which included commits to RCS files with non-trunk default branches.
1994-10-29 23:58:02 +00:00
pst
51b49316ee Incorproate version of md5 placed into public domain by RSA. 1994-10-29 23:58:02 +00:00
phk
d347dec742 Fixed another bunch of problems. I belive we are in a working shape now. 1994-10-29 12:03:59 +00:00
phk
4a46b8f736 Fixed to make sysinstall work again. Notable changes:
Removed a dialog_clear() which somebody aimlessly had slammed into TellEm()
in absence of any understanding of the structure of this program. :-(

Skip through stage0 for now.

Make write_bootblocks write the disklabel using the kernel-call, and forget
about the boot-blocks for now.  This is wrong, but I havn't found the real
problem yet.  I will continue work on this problem.

Added a Debug-feature.  There is a printf' like Debug() now which sends its
output to ttyv1 (Alt-F2), and all "discarded output" from sub-processes end
up there too.  Made TellEm() put it's messages there also, so that we can
see where what happens.

Set the PATH for the shell we shouldn't start at the end :-)

set "npartitions" after the disklabel-editor returns, so that we actually
can edit all the 8 parts of the label.
1994-10-29 10:01:40 +00:00
jkh
fc695fb1c6 Add ipfw. 1994-10-29 08:22:13 +00:00
joerg
850e2e3067 Fixed an evil bug where rawname() could write across the boundaries of
an array. The bug became obvious in the old system where the array was only
32 characters long (now MAXPATHLEN). Dump honored its name then (:-)
and dumped its core when calling dump -w for a fstab that contained rather long
NFS file system names. Even though this is rather unlikely to happen now,
a bug is a bug:)
1994-10-28 17:26:27 +00:00
jkh
a0ede86cbf Totally refrobnicate stage0. Add an extern to sysinstall.h so we can
all share the same `selection' variable.
1994-10-28 15:19:57 +00:00
jkh
a90bff7c68 Fix up the man page a little more, delete the README that crept in
(but I'm actually just as happy to have in the attic, for reference).
1994-10-28 15:12:22 +00:00
jkh
e0b6ad752c This commit was generated by cvs2svn to compensate for changes in r3965,
which included commits to RCS files with non-trunk default branches.
1994-10-28 15:06:53 +00:00
jkh
cb82096387 Add the ipfw command, for IP firewall construction.
Submitted by:	danny ugen
1994-10-28 15:06:53 +00:00
jkh
8f38a9e26e Add the ipfw command, for IP firewall construction.
Submitted by:	danny ugen
1994-10-28 15:06:53 +00:00
phk
f9c842861b Added two #defines to make this compile, until Paul gets out of bed again :-) 1994-10-28 03:02:47 +00:00
jkh
28e9fdadc2 Correct a little spelling. 1994-10-26 10:33:36 +00:00
paul
3d2409e7dd Clean up the mess from the previous commit which used a out of sync
patch file.

Now, we should be able to configure disklabels using the editor.
1994-10-26 07:34:38 +00:00
paul
6b1d934bd9 Added some glue code so disklabel editor can be used to edit disklabel
and have changes propagated to later stages.
1994-10-26 07:14:51 +00:00
phk
09aa3e2129 So there. Now we live on the hard-disk! 1994-10-26 05:41:02 +00:00
paul
efce06b340 Completed disklabel configuration editor. The editor is working but the
glue code to pass the edited configuration onto the following stages
isn't done yet.
1994-10-26 04:09:19 +00:00
phk
924ebf6a0f New and Improved! crunch with gzip, newfs, fsck and cpio. gzip result.
fits on 1200 kb floppy with unstripped GENERIC kernel.
1994-10-26 02:53:15 +00:00
ache
22dfeb1b9b Sync with termcap.src 1994-10-26 02:20:47 +00:00
ache
213ab506bc Sync with termcap.src 1994-10-26 01:20:11 +00:00
ache
ecdb89b811 Remove unneeded dialog_update() because now in dialog_clear() 1994-10-25 22:23:18 +00:00
bde
c4b64391bf Don't write outside of partp[] if the user gives an invalid partition
number for the partition to be made active.  Do nothing instead.  This
allows clearing all the active flags by specifying an invalid partition.
1994-10-25 17:46:53 +00:00
ache
f7e78facbb Use configurable dialog attributes instead of hard-coded ones 1994-10-24 05:16:00 +00:00
ache
0cadb3ec80 label.c: add delwin(window)
mbr.c: use proper dims for newwin, add shadow
both: add ' ' and ESC as valid end-keys
1994-10-24 04:14:23 +00:00
ache
03c5dcf251 Use proper dims for newwin.
Remove double-clear.
Add shadow.
1994-10-24 04:07:22 +00:00
ache
cb02d55905 Clear screen on exit per Paul request 1994-10-24 03:55:25 +00:00
paul
218f10ceca Remove a couple of display_disklabel call used
for debuging.
Reviewed by:
Submitted by:
Obtained from:
1994-10-24 03:33:29 +00:00
paul
5b1ca0db77 Round partitions to the next whole cylinder.
Fill in devicename and mountpoint structures from default_disklabel()
so stage2 code knows what to do.
New file label.c for disklabel editing code.
1994-10-24 03:30:56 +00:00
sef
044b6a0e2c Reviewed by: jkh
Print out summary information on receipt of SIGINFO; also, stop the
kernel printing of information and restore it on exit.  Now, it needs
an option to be quiet. ;)
1994-10-22 17:30:35 +00:00
ache
60e2b6706c Fatal() fixed:
end_dialog() called too early here.
1994-10-22 02:37:24 +00:00
ache
064eef20b0 Cosmetique: just fix tabs after patch of diff -cb (previous) 1994-10-22 02:35:09 +00:00
ache
af943c1b9d ExitSysinstall() fixed:
use dialog functions properly.
don't clear screen with last message on exit(0), I want to see it still.
relay on dialog_active properly.
1994-10-22 02:32:16 +00:00
dg
4d06675bdc Restrict fs_maxfilesize to 2^40; this is part of a bug fix from Kirk
McKusick to work around problems in FFS related to the blkno of a 64bit
offset not fitting into an int.

Submitted by:	Marshall Kirk McKusick
1994-10-22 02:21:53 +00:00
paul
330240f03f Fixed a typo and moved a dialog_clear() line. 1994-10-21 18:26:25 +00:00
paul
dceb550f04 Fix all the bugs introduced by the source shuffle.
All the mbr code now seems to be working. We can build a basic
unix disklabel in any existing DOS partition while retaining the
existing mbr bootcode or we can install to the whole disk which
puts FreeBSD's boot code into the MBR and creates a clean MBR
partition table with FreeBSD in partition 0 taking up the whole disk.
1994-10-21 18:08:33 +00:00
phk
2cae2759f0 Now stage2 runs all the way.. 1994-10-21 05:36:43 +00:00
ache
cc6bf63427 Add hardcoded cons25-m entry for mono console, if termcap.small
not fit on installation floppy.
1994-10-21 04:48:51 +00:00
ache
d18ca621f2 Second time bugfix, please be carefully.
Use dialog functions in Fatal only if dialog_active, else
use fprintf(stderr, because it may be called before dialog
initialization
1994-10-21 04:43:07 +00:00
phk
d50bb0c33e Latest changes from me. Over to you Paul... 1994-10-21 02:14:54 +00:00
ache
bbd5ec8175 Remove ncurses.h, now included into dialog.h 1994-10-20 21:58:10 +00:00
ache
8400fa64f5 remove unneded includes
use dialog functions properly
move alloc_memory early to prevent core dump at stage 3
Change 25x80 to 24x80
Fix setenv diagnostic
Fix Fatal to call end_dialog()
1994-10-20 19:30:56 +00:00
phk
18ed6a9a03 Now stage 2 should do it's job I hope. Havn't tested yet. 1994-10-20 06:48:40 +00:00
phk
05562654b1 Just a safety measure for me and Paul. 1994-10-20 06:14:29 +00:00
phk
f252df1d03 Remake lost changes to sysinstall.h. Sorry Paul ! 1994-10-20 06:08:19 +00:00
phk
218c2e4b59 Integrate my code a lot more with Pauls. (I have left sysinstall.c
here, even though it isn't used in the Makefile for Paul not to have
an heart-attack when he wakes up. :-)

Way to go still...
1994-10-20 05:00:00 +00:00
phk
29f810393a The beginning of some structural changes, and the merge of my code into
Pauls.
1994-10-20 02:51:55 +00:00
phk
f57df841f7 Added a big comment about the general scheme of things during install... 1994-10-20 01:17:26 +00:00
paul
c5bd2be246 More code rearrangment, moved all mbr code into its own file
so it can be used by other programs.

Added all the necessary menus to take the user through the installation
of the bootblocks.
1994-10-19 23:58:03 +00:00
bde
f7b7df385e Don't change the active partition when the user says not to change it.
Convert absolute sector 0 to C/H/S 0/0/0, not 0/0/1.

Open in O_RDWR mode for the undocumented -a option, so that -a can be
used without -u.
1994-10-19 21:25:28 +00:00
ache
16fdd49720 Fix several dialog/terminal problems.
Add code to autodetect terminal entry, if TERM undefined
1994-10-18 18:45:49 +00:00
paul
df999def42 Lates snapshot:
Re-organised files, moved bootcode routines into their own files.
Check return types of everything and pass error messages to
windows so we get good diagnostics.

Made start on stage 2 installation. Implemented a status file that
keeeps track of where we are in the installation process and allows
installation from media sequences.
1994-10-18 07:56:34 +00:00
ache
a6d5d66fc2 Remove machdep.color_display 1994-10-18 03:41:16 +00:00