Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 22 Sep 2000 16:00:18 +0900
From:      Makoto MATSUSHITA <matusita@jp.FreeBSD.org>
To:        current@freebsd.org, stable@freebsd.org
Cc:        jkh@freebsd.org
Subject:   sysinstall: Avoiding version checking of CD-ROM (patch included)
Message-ID:  <20000922160018G.matusita@jp.FreeBSD.org>

next in thread | raw e-mail | index | archive | help

I'm an administrator of current.jp.FreeBSD.org, yet another snapshots
services in Japan. Now I'm going to make a bootable FreeBSD
installation CD which contains FreeBSD 3-stable, 4-stable and -current
(namely, 'triplex CD-ROM').  Maybe it's useful for installation events
at BUGs (BSD Users Groups), or any people who wanna try both
bleeding-edge/solid-state version of FreeBSD.

If you have interested in triplex CD-ROM, try (approx. 600MB):
<URL:ftp://current.jp.FreeBSD.org/pub/FreeBSD/snapshots/i386/ISO-IMAGES/triplex.iso>;
The directory layout of CD-ROM is quite simple just like this.

	% ls
	3.5-20000913-JPSNAP     5.0-20000913-JPSNAP
	4.1-20000919-JPSNAP     boot.img

Note that 'boot.img' contains all three versions of kernel images. You
can choice which sysinstall to kick (thanks you loader(8).)


Most procedures works well, except one warnings. When CD-ROM is
initialized to use (after all installation option was selected),
sysinstall complains as follows:

	Warning: The CD currently in the drive is either not a FreeBSD
	CD or it is an older (pre 2.1.5) FreeBSD CD which does not
	have a version number on it.  Do you wish to use this CD anyway?

You can say "yes" to proceed, but it's not welcome. Yeah, It's easy
to fix; create 'cdrom.inf' file at root directory of CD-ROM. But the
contents of cdrom.inf is the problem.

cdrom.inf has it's version name included in CD-ROM, and sysinstall
checks its string. Maybe it's OK when CD-ROM has *one* version of
FreeBSD, but triplex CD-ROM has *three* versions of FreeBSD. So
sysinstall should complains as follow:

	Warning: The version of the FreeBSD CD currently in the drive
        (XXX) does not match the version of the boot floppy
        (YYY).

	If this is intentional, to avoid this message in the future
	please visit the Options editor to set the boot floppy version
	string to match that of the CD before selecting it as your
	installation media.

where 'XXX' is version string in cdrom.inf and 'YYY' is version string
in sysinstall. You can also say "yes" to next dialog to proceed
installation, however, it's also not welcome.

I do not want to make a *custom* sysinstall; it's quite hard to do
within a shell script (triplex CD-ROM is built by shell script which
is kicked by crom).

To avoid this situation, make an escape from version checking. Maybe
"CD_VERSION = any" in cdrom.inf is reasonable solution.

Index: cdrom.c
===================================================================
RCS file: /usr/site/FreeBSD/ncvs/src/release/sysinstall/cdrom.c,v
retrieving revision 1.47
diff -c -r1.47 cdrom.c
*** cdrom.c	1999/08/28 01:34:08	1.47
--- cdrom.c	2000/09/22 06:12:44
***************
*** 122,128 ****
  		       "try again.", mountpoint);
  	}
  	else {
! 	    if (variable_cmp(VAR_RELNAME, cp)
  		&& variable_cmp(VAR_RELNAME, "none")
  		&& variable_cmp(VAR_RELNAME, "any") && !bogusCDOK) {
  		msgConfirm("Warning: The version of the FreeBSD CD currently in the drive\n"
--- 122,129 ----
  		       "try again.", mountpoint);
  	}
  	else {
! 	    if (strcmp(cp, "any")
! 		&& variable_cmp(VAR_RELNAME, cp)
  		&& variable_cmp(VAR_RELNAME, "none")
  		&& variable_cmp(VAR_RELNAME, "any") && !bogusCDOK) {
  		msgConfirm("Warning: The version of the FreeBSD CD currently in the drive\n"

Is there any chance to apply this patch to sysinstall of -current,
4-stable, and 3-stable?

-- -
Makoto `MAR' MATSUSHITA


To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-stable" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20000922160018G.matusita>