summaryrefslogtreecommitdiff
path: root/release/scripts/doFS.sh
AgeCommit message (Collapse)Author
2011-10-03Farewall, sysinstall! You served us well for many years, but 10.0 is oneNathan Whitehorn
digit beyond your time. Various sysinstall dependencies (e.g. libftpio, libdisk, libodialog, etc.) will be cleaned up in coming days. Some will take longer than others due to a few other consumers (tzsetup and sade). Notes: svn path=/head/; revision=225937
2009-02-14Specify 4096 block-size and 512 fragment-size.Yoshihiro Takahashi
This fixes no space error. Notes: svn path=/head/; revision=188606
2009-02-10Due to some recent-ish work on GEOM/G_PART the c partition (by traditionKen Smith
the whole disk) isn't available any more since it was redundant. Just use /dev/md0 instead of /dev/md0c to build the filesystem on. Consulted-with: marcel Notes: svn path=/head/; revision=188438
2004-08-25Back out v1.57, the underlying problem that caused a delay betweenKen Smith
mdconfig and the device name appearing in /dev seems to be fixed. Notes: svn path=/head/; revision=134282
2004-08-18Allow MFS images to be built without a disklabel for releasesPeter Grehan
that don't require one i.e. PPC. Reviewed by: ru Submitted by: ssouhlal Notes: svn path=/head/; revision=133951
2004-08-09I should have marked my previous commit with an XXX to indicate it's aKen Smith
workaround to a problem that shouldn't exist. Noticed by: ru Notes: svn path=/head/; revision=133351
2004-08-06I've had 'make release' problems on a large/fast dual processor machineKen Smith
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. Notes: svn path=/head/; revision=133225
2004-01-28- Removed more bitrot (the "while" loops).Ruslan Ermilov
- Factored out common parts of dofs_vn() and dofs_md(). Notes: svn path=/head/; revision=125168
2004-01-28GC some old cruft.Ruslan Ermilov
Notes: svn path=/head/; revision=125143
2003-09-19Fix this script to produce working bootable floppies on 4.x.Ruslan Ermilov
Notes: svn path=/head/; revision=120226
2003-08-08Add support for automatically computing the required file systemRuslan Ermilov
size and average inode size. Reviewed by: jhb Notes: svn path=/head/; revision=118667
2003-05-17disklabel(8) is spelled bsdlabel(8) or sunlabel(8) these days.Ruslan Ermilov
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) Notes: svn path=/head/; revision=115106
2003-05-16Revision 1.49 broke snapshot building on older systems.Ruslan Ermilov
Approved by: re (scottl) Notes: svn path=/head/; revision=115069
2003-05-03Use UFS1 for the floppies instead of UFS2Scott Long
Notes: svn path=/head/; revision=114593
2003-04-23Presumably fix sparc64 "make release". (The breakage was due toRuslan Ermilov
sunlabel(8) no longer being linked to disklabel(8).) Reviewed by: phk Notes: svn path=/head/; revision=113899
2003-04-15Fixed dofs_vn(): previous revision ran ``rm -f /dev/*vnn*'' too early.Ruslan Ermilov
Notes: svn path=/head/; revision=113510
2003-03-31Unmount the file system and detach an underlying memory disk evenRuslan Ermilov
if the script fails somewhere in the middle. Prodded by: phk Notes: svn path=/head/; revision=112864
2003-03-20Pass the target machine architecture down to disklabel(8).Ruslan Ermilov
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. Notes: svn path=/head/; revision=112453
2003-02-26Stay consistent with dofs_md().Ruslan Ermilov
Notes: svn path=/head/; revision=111544
2003-02-01This took longer to test than expected:Poul-Henning Kamp
NODEVFS cleanup: don't bother with MAKEDEV. Look for /boot/boot first, and arrange disklabel arguments accordingly. Notes: svn path=/head/; revision=110208
2002-11-04Add the necessary tweaks for FreeBSD/ia64 releases. Note that this isMarcel Moolenaar
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. Notes: svn path=/head/; revision=106391
2002-04-30boot2 does not exist on some platforms.Ruslan Ermilov
Notes: svn path=/head/; revision=95791
2002-04-26Milestone #1 in cross-arch make releases.Ruslan Ermilov
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> Notes: svn path=/head/; revision=95509
2002-01-16Don't print out 0xaa55 at the end of a vnconfig disk and use theJohn Baldwin
"canonical" disk name when calling disklabel so that disklabel auto works. Notes: svn path=/head/; revision=89415
2001-11-20- Remove the -T from the 4.x newfs as well.John Baldwin
- 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. Notes: svn path=/head/; revision=86701
2001-11-20The -T argument to newfs is only needed if teh disk isn't already labeled.John Baldwin
Since we run disklabel before newfs, this doesn't apply in this case. Notes: svn path=/head/; revision=86700
2001-11-16Use the md device not olny a version of the system is 5 but 5 and over.Yoshihiro Takahashi
Requested by: matusita MFC after: 1 day Notes: svn path=/head/; revision=86448
2001-11-15Use the vn driver on a stable system.Yoshihiro Takahashi
Notes: svn path=/head/; revision=86390
2001-04-08Add FreeBSD IDs to some files and make the others consistent in style.David E. O'Brien
Notes: svn path=/head/; revision=75328
2001-03-10Everyone that has commented seems to agree `-m 0' will cause no problems.David E. O'Brien
Notes: svn path=/head/; revision=74079
2001-03-09Remove tunefs'ing that was OBE by rev 1.30.David E. O'Brien
Submitted by: bde Notes: svn path=/head/; revision=74026
2001-03-09newfs with `-m 1'David E. O'Brien
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 Notes: svn path=/head/; revision=74005
2001-01-31Use mdconfig/md instead of vn.Poul-Henning Kamp
Notes: svn path=/head/; revision=71887
2000-11-27Using `r'aw device name is out of vogue now.David E. O'Brien
Notes: svn path=/head/; revision=69264
2000-11-05MFS: comment character and readability fixes.Jordan K. Hubbard
Notes: svn path=/head/; revision=68373
2000-10-31Moved driver modules for some PCI NICs and PCCARD-only NICs to mfsroot.flp.Tatsumi Hosokawa
http://people.freebsd.org/~hosokawa/driver-floppy/ for details. Reviewed by: current@FreeBSD.org Notes: svn path=/head/; revision=68048
2000-07-08We don't do blockdevices any more.Poul-Henning Kamp
XXX: should use /dev/MAKEDEV Notes: svn path=/head/; revision=62810
1999-12-16don't mknod stuff without making sure it's not there first.Jordan K. Hubbard
Notes: svn path=/head/; revision=54659
1999-11-27Make it possible to make release on archaic kernels.Poul-Henning Kamp
Notes: svn path=/head/; revision=53779
1999-01-261. Adjust fs sizes to get floppies back under control.Jordan K. Hubbard
2. Viciously slash all CD support out of boot.flp. It's basically just a net boot floppy now. Notes: svn path=/head/; revision=43234
1999-01-12Replace /mnt with ${MNT}Mike Smith
PR: misc/7965 Submitted by: Junji SAKAI sakai@jp.freebsd.org Notes: svn path=/head/; revision=42603
1999-01-05Hammer on the boot floppy generation bits some more. This is lookingJordan K. Hubbard
a little better. Notes: svn path=/head/; revision=42300
1999-01-02Update this to deal with new boot block placement.Jordan K. Hubbard
Reported by: "John W. DeBoskey" <jwd@unx.sas.com> Notes: svn path=/head/; revision=42254
1998-12-06Put mfsroot.gz on yet another filesystem so that the boot blocksJordan K. Hubbard
can really read it. Hmm. I have no idea *how* this worked in our earlier tests on the x86. :) Notes: svn path=/head/; revision=41552
1998-10-13Updates for Alpha.Jordan K. Hubbard
Notes: svn path=/head/; revision=40311
1998-10-03Whoops, correct brain-o.Jordan K. Hubbard
Notes: svn path=/head/; revision=39920
1998-10-03Add a tweak for the alpha.Jordan K. Hubbard
Notes: svn path=/head/; revision=39918
1998-03-22Make the vn device that is being used to build the floppies configurable.John Hay
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. Notes: svn path=/head/; revision=34782
1997-02-051. Sync ABOUT.TXT changes.Jordan K. Hubbard
2. Go back to using a filesystem on the boot floppy; the rawboot boot blocks were just too non-functional for other things. Notes: svn path=/head/; revision=22268
1996-12-01Simplify the disklabel trickery, and thus avoid the dreadedJoerg Wunsch
``Operation not supported by device''. Requested by: jkh Notes: svn path=/head/; revision=20071