Re: sysinstall: Avoiding version checking of CD-ROM (patch included)

2000-09-29 Thread Jordan Hubbard

 Speaking about sysinstall, would you please check my PR (bin/21423, 
 URL:http://www.freebsd.org/cgi/query-pr.cgi?pr=21423) ?

Done and fixed, thanks!  It should be in the next (2930) -current
snapshot in ftp://current.freebsd.org/pub/FreeBSD/snapshots/i386/

- Jordan


To Unsubscribe: send mail to [EMAIL PROTECTED]
with "unsubscribe freebsd-current" in the body of the message



Re: sysinstall: Avoiding version checking of CD-ROM (patch included)

2000-09-29 Thread Jordan Hubbard

 % ls boot/kernel/kernel*
 zsh: no matches found: boot/kernel/kernel*

That's a different problem - there should be a boot/kernel/kernel.ko
file and I'm not sure why there isn't.  I'll talk to David O'Brien
about fixing it.

- Jordan


To Unsubscribe: send mail to [EMAIL PROTECTED]
with "unsubscribe freebsd-current" in the body of the message



sysinstall: Avoiding version checking of CD-ROM (patch included)

2000-09-22 Thread Makoto MATSUSHITA


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-2913-JPSNAP 5.0-2913-JPSNAP
4.1-2919-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 [EMAIL PROTECTED]
with "unsubscribe freebsd-current" in the body of the message



Re: sysinstall: Avoiding version checking of CD-ROM (patch included)

2000-09-22 Thread Jordan Hubbard

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

Thanks for reminding me to go look at that code - you're right, the
check is incorrectly done and insufficiently general.  Fixed in
-current and -stable!

- Jordan


To Unsubscribe: send mail to [EMAIL PROTECTED]
with "unsubscribe freebsd-current" in the body of the message