Commit Graph

57 Commits

Author SHA1 Message Date
Ken Smith
79a58dfb4c Back out v1.57, the underlying problem that caused a delay between
mdconfig and the device name appearing in /dev seems to be fixed.
2004-08-25 01:39:52 +00:00
Peter Grehan
8e38e74359 Allow MFS images to be built without a disklabel for releases
that don't require one i.e. PPC.

Reviewed by:	ru
Submitted by:	ssouhlal
2004-08-18 11:10:05 +00:00
Ken Smith
eeb78f797c I should have marked my previous commit with an XXX to indicate it's a
workaround to a problem that shouldn't exist.

Noticed by:	ru
2004-08-09 01:42:32 +00:00
Ken Smith
712ab5d8ff I've had 'make release' problems on a large/fast dual processor machine
with doFS.sh consistently dying here because the device didn't exist
in the namespace fast enough after doing the mdconfig.  But the device
did eventually show up.  There have been similar complaints on mailing
lists that might boil down to this being the problem too.

This is obviously a hack, if anyone knows what might cause a delay
between mdconfig running and when the name appears in the /dev namespace
(inside a chroot-ed environment if that matters) I'd be happy to back
this out.
2004-08-06 20:08:38 +00:00
Ruslan Ermilov
e99d38fece - Removed more bitrot (the "while" loops).
- Factored out common parts of dofs_vn() and dofs_md().
2004-01-28 22:44:17 +00:00
Ruslan Ermilov
2b2baba122 GC some old cruft. 2004-01-28 10:58:37 +00:00
Ruslan Ermilov
807b65481b Fix this script to produce working bootable floppies on 4.x. 2003-09-19 09:08:41 +00:00
Ruslan Ermilov
ebc9df0362 Add support for automatically computing the required file system
size and average inode size.

Reviewed by:	jhb
2003-08-08 18:23:00 +00:00
Ruslan Ermilov
5795760c45 disklabel(8) is spelled bsdlabel(8) or sunlabel(8) these days.
Also make sure bsdlabel(8) (along with the disklabel(8) compat
link) still appear on the fixit floppies of platforms that use
it natively (alpha, i386, and pc98).

Approved by:	re (scottl)
2003-05-17 19:16:28 +00:00
Ruslan Ermilov
f7d341e06d Revision 1.49 broke snapshot building on older systems.
Approved by:	re (scottl)
2003-05-16 13:59:12 +00:00
Scott Long
ce0d74671b Use UFS1 for the floppies instead of UFS2 2003-05-03 19:23:10 +00:00
Ruslan Ermilov
c9030dc84d Presumably fix sparc64 "make release". (The breakage was due to
sunlabel(8) no longer being linked to disklabel(8).)

Reviewed by:	phk
2003-04-23 09:01:35 +00:00
Ruslan Ermilov
2d1cc5928b Fixed dofs_vn(): previous revision ran ``rm -f /dev/*vnn*'' too early. 2003-04-15 09:14:14 +00:00
Ruslan Ermilov
51df6fdf37 Unmount the file system and detach an underlying memory disk even
if the script fails somewhere in the middle.

Prodded by:	phk
2003-03-31 12:29:31 +00:00
Ruslan Ermilov
e3940ce7c3 Pass the target machine architecture down to disklabel(8).
Do it so that systems without the -m option in disklabel(8),
e.g. 5.0-RELEASE, can still build current snapshots.

While here, drop the -s option from doFS.sh; we have not
been using the .size files for a long time.
2003-03-20 23:46:22 +00:00
Ruslan Ermilov
21650d4595 Stay consistent with dofs_md(). 2003-02-26 10:51:28 +00:00
Poul-Henning Kamp
d103a0422a This took longer to test than expected:
NODEVFS cleanup: don't bother with MAKEDEV.

Look for /boot/boot first, and arrange disklabel arguments accordingly.
2003-02-01 22:12:50 +00:00
Marcel Moolenaar
710d4ca371 Add the necessary tweaks for FreeBSD/ia64 releases. Note that this is
in no way final. A typical ia64 wart is that there are no boot blocks.
Instead, we need to create disks with EFI partitions if we want auto
boot to work. All this functionality is not present yet.
2002-11-04 00:50:01 +00:00
Ruslan Ermilov
581102328a boot2 does not exist on some platforms. 2002-04-30 11:31:25 +00:00
Ruslan Ermilov
6bde859f40 Milestone #1 in cross-arch make releases.
Do not install games and profiled libraries to the ${CHROOTDIR}
with the initial installworld.

Eliminate the need in the second installworld.  For that, make sure
_everything_ is built in the "world" environment, using the right
tool chain.

Added SUBDIR_OVERRIDE helper stuff to Makefile.inc1.  Split the
buildworld process into stages, and skip some stages when
SUBDIR_OVERRIDE is set (used to build crypto, krb4, and krb5
dists).

Added NO_MAKEDB_RUN knob to Makefile.inc1 to avoid running
makewhatis(1) at the end of installworld (used when making crypto,
krb4, and krb5 dists).

In release/scripts/doFS.sh, ensure that the correct boot blocks are
used.

Moved the creation of the "crypto" dist from release.5 to
release.2.

In release.3 and doMFSKERN, build kernels in the "world"
environment.  KERNELS now means "additional" kernels, GENERIC is
always built.

Ensure we build crunched binaries in the "world" environment.
Obfuscate release/Makefile some more (WMAKEENV) to achieve this.

Inline createBOOTMFS target.

Use already built GENERIC kernel modules to augment mfsfd's
/stand/modules.  GC doMODULES as such.

Assorted fixes:

Get rid of the "afterdistribute" target by moving the single use
of it from sys/Makefile to etc/Makefile's "distribute".

Makefile.inc1: apparently "etc" no longer needs to be last for
"distribute" to succeed.

gnu/usr.bin/perl/library/Makefile.inc: do not override the
"install" and "distribute" targets, do it the "canonical" way.

release/scripts/{man,cat}pages-make.sh: make sure Perl manpages and
catpages appear in the right dists.  Note that because Perl does
not respect the MANBUILDCAT (and NOMAN), this results in a loss of
/usr/share/perl/man/cat* empty directories.  This will be fixed
soon.

Turn MAKE_KERBEROS4 into a plain boolean variable (if it is set it
means "make KerberosIV"), as documented in the make.conf(5)
manpage.  Most of the userland makefiles did not test it for "YES"
anyway.

XXX Should specialized kerberized libpam versions be included into
the krb4 and krb5 dists?  (libpam.a would be incorrect anyway if
both krb4 and krb5 dists were choosen.)

Make sure "games" dist is made before "catpages", otherwise games
catpages settle in the wrong dist.

Fast build machine provided by: Igor Kucherenko <kivvy@sunbay.com>
2002-04-26 17:55:27 +00:00
John Baldwin
9318987eea Don't print out 0xaa55 at the end of a vnconfig disk and use the
"canonical" disk name when calling disklabel so that disklabel auto works.
2002-01-16 07:24:38 +00:00
John Baldwin
ef48c744aa - Remove the -T from the 4.x newfs as well.
- Don't write out 0xaa55 to the end of the filesystem as md(4) doesn't
  generate that warning and it breaks 'disklabel mdX auto'.
- Use the 'canonical' disk name mdX instead of /dev/mdX to disklabel so
  we can use disklabel auto for mfsroot filesizes that aren't a standard
  size in /etc/disktab.
2001-11-20 20:25:12 +00:00
John Baldwin
22c4079990 The -T argument to newfs is only needed if teh disk isn't already labeled.
Since we run disklabel before newfs, this doesn't apply in this case.
2001-11-20 20:06:21 +00:00
Yoshihiro Takahashi
c82db554a8 Use the md device not olny a version of the system is 5 but 5 and over.
Requested by:	matusita
MFC after:	1 day
2001-11-16 03:01:50 +00:00
Yoshihiro Takahashi
19ea5a3fbf Use the vn driver on a stable system. 2001-11-15 07:27:25 +00:00
David E. O'Brien
3bcda1f141 Add FreeBSD IDs to some files and make the others consistent in style. 2001-04-08 23:09:21 +00:00
David E. O'Brien
221bdf6158 Everyone that has commented seems to agree `-m 0' will cause no problems. 2001-03-10 17:10:48 +00:00
David E. O'Brien
1363575f81 Remove tunefs'ing that was OBE by rev 1.30.
Submitted by:	bde
2001-03-09 12:33:53 +00:00
David E. O'Brien
ca5bd0c65a newfs with `-m 1'
This is needed even with `-o space' as the kernel decides to be "helpful"
and not really do space optimization.  Looking at src/sys/ufs/ffs/ffs_alloc.c
we see why:		if (fs->fs_minfree <= 5 ||
		            fs->fs_cstotal.cs_nffree >
		            (off_t)fs->fs_dsize * fs->fs_minfree / (2 * 100))
			            break;
	            log(LOG_NOTICE, "%s: optimization changed from SPACE to TIME\n"

I have picked `1' vs. `0' just incase some code somewhere has the assumption
the %free can never be `0'.

Helped with understanding why -m 1 made a different:	imp
2001-03-09 01:03:15 +00:00
Poul-Henning Kamp
2caebfe61a Use mdconfig/md instead of vn. 2001-01-31 22:58:39 +00:00
David E. O'Brien
518bd5cfa7 Using `r'aw device name is out of vogue now. 2000-11-27 09:19:18 +00:00
Jordan K. Hubbard
c8d2a747a4 MFS: comment character and readability fixes. 2000-11-05 22:49:15 +00:00
Tatsumi Hosokawa
b98c5f70ff Moved driver modules for some PCI NICs and PCCARD-only NICs to mfsroot.flp.
http://people.freebsd.org/~hosokawa/driver-floppy/ for details.

Reviewed by:	current@FreeBSD.org
2000-10-31 07:39:07 +00:00
Poul-Henning Kamp
5de7f65fc9 We don't do blockdevices any more.
XXX: should use /dev/MAKEDEV
2000-07-08 07:46:01 +00:00
Jordan K. Hubbard
d0840ab627 don't mknod stuff without making sure it's not there first. 1999-12-16 00:51:38 +00:00
Poul-Henning Kamp
c628363b98 Make it possible to make release on archaic kernels. 1999-11-27 18:48:10 +00:00
Jordan K. Hubbard
ccfcf93e53 1. Adjust fs sizes to get floppies back under control.
2. Viciously slash all CD support out of boot.flp.  It's basically just
   a net boot floppy now.
1999-01-26 15:14:11 +00:00
Mike Smith
901b072607 Replace /mnt with ${MNT}
PR:		misc/7965
Submitted by:	Junji SAKAI sakai@jp.freebsd.org
1999-01-12 22:12:12 +00:00
Jordan K. Hubbard
92e86f9920 Hammer on the boot floppy generation bits some more. This is looking
a little better.
1999-01-05 03:44:08 +00:00
Jordan K. Hubbard
cb48829cff Update this to deal with new boot block placement.
Reported by:	"John W. DeBoskey" <jwd@unx.sas.com>
1999-01-02 23:15:20 +00:00
Jordan K. Hubbard
c42340bcb7 Put mfsroot.gz on yet another filesystem so that the boot blocks
can really read it.  Hmm.  I have no idea *how* this worked in our
earlier tests on the x86. :)
1998-12-06 04:06:39 +00:00
Jordan K. Hubbard
cb488ea5e9 Updates for Alpha. 1998-10-13 21:03:56 +00:00
Jordan K. Hubbard
1c61cf54dd Whoops, correct brain-o. 1998-10-03 14:16:06 +00:00
Jordan K. Hubbard
b9dd246109 Add a tweak for the alpha. 1998-10-03 14:10:28 +00:00
John Hay
4f0591349b Make the vn device that is being used to build the floppies configurable.
You can now do something like "make release VNDEVICE=vn1". This makes it
possible to do something else with vn0, for instance building another
release.
1998-03-22 18:39:42 +00:00
Jordan K. Hubbard
b386088ba6 1. Sync ABOUT.TXT changes.
2. Go back to using a filesystem on the boot floppy; the rawboot boot blocks
   were just too non-functional for other things.
1997-02-05 04:29:53 +00:00
Joerg Wunsch
661a46b5a1 Simplify the disklabel trickery, and thus avoid the dreaded
``Operation not supported by device''.

Requested by:	jkh
1996-12-01 17:19:29 +00:00
Poul-Henning Kamp
f8d8dfe86e Try to impreve DD mode.
Try to make 4Mb floppies work again.
1996-11-27 22:52:34 +00:00
Jordan K. Hubbard
891ccbd5b7 Purely cosmetic cleanup. 1996-11-09 09:24:30 +00:00
Jordan K. Hubbard
23c0fda959 Installation cleanup, round II. 1996-10-01 12:13:29 +00:00