History log of /freebsd-current/release/i386/mkisoimages.sh
Revision Date Author Comments
# d0b2dbfa 16-Aug-2023 Warner Losh <imp@FreeBSD.org>

Remove $FreeBSD$: one-line sh pattern

Remove /^\s*#[#!]?\s*\$FreeBSD\$.*$\n/


# 1a9b1c36 28-Feb-2022 Jessica Clarke <jrtc27@FreeBSD.org>

release: Add support for building on non-FreeBSD

This requires two sets of changes. Firstly, for non-FreeBSD, we do not
know where tools are in PATH (and it is likely that some are not in
system directories and have been built as bootstrap tools during the
build), so we should leave PATH alone and trust the user. Secondly,
makefs needs a master.passwd for building images from a METALOG file, so
pass the directory in the image tree to makefs's -N option in order to
pick up a valid FreeBSD master.passwd; this is unnecessary on FreeBSD
(except in the edge case of building an image that refers to users or
groups not present in the host's database, which is unlikely but
technically possible) but harmless so can be done unconditionally.

Reviewed by: brooks, emaste, gjb
Differential Revision: https://reviews.freebsd.org/D34001


# 13cb0041 28-Feb-2022 Jessica Clarke <jrtc27@FreeBSD.org>

release: Support -DNO_ROOT image building

This requires a bunch of METALOG mangling to include the files we inject
into the tree. The mkisoimages.sh and make-memstick.sh scripts are now
called with the current directory inside the tree so that the relative
paths in the METALOG match up with the current directory. The scripts do
not require this when not using a METALOG, but for simplicity we always
do so. The Makefile mangles the real METALOG created from the install,
as those files are shared across all uses of the tree, but the shell
scripts create a temporary copy of the METALOG that they mangle as their
tree modifications are specific to that image. We also need to pass -D
to makefs to turn any duplicate METALOG entry errors into warnings, as
we have many (harmless) instances of those.

Whilst dvd1.iso should work, the !NOPKG code will need more work to
support this.

All media will also lack mergemaster and etcupdate trees, since more
work is needed to add -DNO_ROOT modes to them. Users of install media
built this way will have to manually bootstrap them.

Reviewed by: brooks, gjb
Differential Revision: https://reviews.freebsd.org/D33999


# a7d9306a 22-Oct-2018 Ed Maste <emaste@FreeBSD.org>

release: set -e to exit on error in iso image scripts

Reviewed by: gjb
Differential Revision: https://reviews.freebsd.org/D17651


# a2aef24a 29-Oct-2017 Eitan Adler <eadler@FreeBSD.org>

Update several more URLs

- Primarily http -> https
- Primarily FreeBSD project URLs


# 93cf995a 04-Sep-2017 Ed Maste <emaste@FreeBSD.org>

mkisoimages.sh: remove obsolete x$var convention

Ancient shells had trouble with empty variables but this has not been
relevant for FreeBSD for a very long time (decades?).


# 88343186 05-Jan-2016 Glen Barber <gjb@FreeBSD.org>

Merge ^/projects/release-install-debug:

- Rework MANIFEST generation and parsing via bsdinstall(8).
- Allow selecting debugging distribution sets during install.
- Rework bsdinstall(8) to fetch remote debug distribution sets
when they are not available on the local install medium.
- Allow selecting additional non-GENERIC kernels during install.
At present, GENERIC is still required, and installed by default.

Tested with: head@r293203
Sponsored by: The FreeBSD Foundation


# 27065039 10-Sep-2015 Devin Teske <dteske@FreeBSD.org>

Fix argument quoting and remove unnecessary braces

MFC after: 3 weeks
X-MFC-to: stable/10


# de17cbcc 03-Feb-2013 Hiroki Sato <hrs@FreeBSD.org>

- Add CHECKSUM.* support in Makefile[1].
- Use ln -fs to create a symlink.
- Remove pkgadd for docports.
- Use WITHOUT_JADETEX=yes instead of WITH_JADETEX=no.
- Add {WORLD,KERNEL}_FLAGS to [BTWK]MAKE.
- Use makefs(8) and gpart(8) for sparc64 ISO image[2].
- Add publisher option to makefs(8)[2].

Based on work by: gjb[1]
Discussed with: marius, nwhitehorn[2]


# 0e4b6f5e 08-Jan-2013 Hiroki Sato <hrs@FreeBSD.org>

ISO 9660 specification allows only "d-characters" and "a-characters" in the
Volume Descriptor (section 7.4). In short, upper-case alphanumeric + some
symbols only. While the makefs utility automatically converts the characters,
$LABEL should be consistent in the scripts.


# eadacd13 05-May-2011 Nathan Whitehorn <nwhitehorn@FreeBSD.org>

Garbage collect some unused variables and stray debug code.

Submitted by: marius


# cf6ba592 04-May-2011 Nathan Whitehorn <nwhitehorn@FreeBSD.org>

Repair release CD generation on PC98 and sun4v after release building
changes, and backport the new logic (ISO images are TARGET dependant, not
TARGET_CPUARCH dependant) to Makefile.sysinstall. While modifying ISO
image scripts, change several archs to use makefs (from base) instead of
mkisofs (from ports) which makes release CD generation both faster and
self-hosting.


# 0877c11e 21-Mar-2011 Nathan Whitehorn <nwhitehorn@FreeBSD.org>

Use labels to find release media instead of hard-coded device paths. This
makes booting more reliable (and working at all on USB sticks). While here,
move responsibility for setting up fstab into the various platform mk-*.sh
scripts.

Suggested by: many


# a7d5f7eb 19-Oct-2010 Jamie Gritton <jamie@FreeBSD.org>

A new jail(8) with a configuration file, to replace the work currently done
by /etc/rc.d/jail.


# fe0506d7 09-Mar-2010 Marcel Moolenaar <marcel@FreeBSD.org>

Create the altix project branch. The altix project will add support
for the SGI Altix 350 to FreeBSD/ia64. The hardware used for porting
is a two-module system, consisting of a base compute module and a
CPU expansion module. SGI's NUMAFlex architecture can be an excellent
platform to test CPU affinity and NUMA-aware features in FreeBSD.


# d7f03759 19-Oct-2008 Ulf Lilleengen <lulf@FreeBSD.org>

- Import the HEAD csup code which is the basis for the cvsmode work.


# ef6cf7f1 16-May-2006 Yoshihiro Takahashi <nyan@FreeBSD.org>

Make a bootable CD on pc98.


# 92536187 30-Jan-2005 Ken Smith <kensmith@FreeBSD.org>

The current version of mkisofs is warning us that the -P option will
be changing with the next version, and we should be using -publisher
instead.

Also warned by: trhodes
MFC after: 1 week


# 8dd9e9d0 01-Dec-2004 John Baldwin <jhb@FreeBSD.org>

Don't allow ISO images to be made that try to use boot.flp to boot as the
boot.flp in 5.3 and later is not self-contained and thus not suitable for
CD booting. /boot/cdboot is now the only way to boot the install CDs.

MFC after: 2 weeks


# f0096481 15-Jul-2004 Murray Stokely <murray@FreeBSD.org>

Add a publisher variable with the URL for the FreeBSD Project, and put
this into the ISO headers by specifying the -P option to mkisofs.

Obtained from: share/examples/worm/makecdfs.sh


# 57a3bc41 12-Jul-2004 Kris Kennaway <kris@FreeBSD.org>

Set BATCH=yes to avoid bumping into interactivity in the port builds.

XXX /usr/ports is still hardcoded, should be ${PORTSDIR}


# 156b04cc 02-Jun-2004 Marius Strobl <marius@FreeBSD.org>

mkisofs(8) is now installed by sysutils/cdrtools.

This will be instantly MFC'ed.


# 6ebe9601 23-Jul-2003 Ruslan Ermilov <ru@FreeBSD.org>

Added the (undocumented) EMUL_BOOT variable (for TARGET=i386 only)
that causes the bootable ISO images to be created using the floppy
emulation (the old method) as opposed to the new "cdboot" method.

Only copy boot.flp to the 2nd CD-ROM if this variable is defined.

Reviewed by: murray


# 64973963 11-Apr-2002 John Baldwin <jhb@FreeBSD.org>

Switch to using cdboot for booting i386 CD's by default.

Approved by: murray


# e4e61f78 24-Jan-2002 Murray Stokely <murray@FreeBSD.org>

Providing long filename support on the Macintosh requires over 30
megabytes of additional space on the install CD. Given our premium
for space, I don't think this is a wise use of 30MB. HFS support was
not provided on the FreeBSD 4.4 CDs and I received a grand total of 0
complaints.


# 074aec36 03-Sep-2001 David E. O'Brien <obrien@FreeBSD.org>

Try to build `mkisofs' first, and only `pkg_add -r' if you cannot.


# d0f44c4d 03-Sep-2001 David E. O'Brien <obrien@FreeBSD.org>

Fix my backwards logic.

Submitted by: dirk


# 9c2ee316 20-Aug-2001 David E. O'Brien <obrien@FreeBSD.org>

+ do not hard code where a port may be installed to
+ uses `mkisofs' rather than `mkhybrid' as the new mkisofs is the merger
of the two
+ checks for `setcdboot's existsance and tries to pkg_add it if needed
+ removes English contraction

Approved by: jkh


# 2ef74d22 23-Jul-2001 Jordan K. Hubbard <jkh@FreeBSD.org>

Add scripts and Makefile support for building ISO images automatically
as part of the release if MAKE_ISOS is set. Will also build the
first CD with packages (in addition to the "minimal" CD) if CD_EXTRA_BITS
points to them. This probably need a bit more work to get fully useful,
but it at least covers the basics for now.