Re: Sysinstall does not install GENERIC kernel

2007-04-09 Thread Kris Kennaway
On Mon, Apr 09, 2007 at 09:23:38AM +0400, Belov, Sergey wrote:
 
  hit the same bug too with FreeBSD-6.1. To workaround this, i've just
  added the distribution set GENERIC to dists (this value wasn't
  mentionned on the sysinstall manpage by the way :-( )
  So try with this:
  dists=base GENERIC catpages info manpages proflibs kernel
  distSetCustom
 
 Thank you. I've also found interesting thread here:
 http://lists.freebsd.org/pipermail/freebsd-questions/2006-June/123640.ht
 ml
 
 It seems that automatic installation mechanism is far from perfect and
 there's nobody 
 who interested in fixing the problems.

Are you sure it was not fixed in 6.2?

Kris


pgpbiveTKgXab.pgp
Description: PGP signature


Re: Sysinstall does not install GENERIC kernel

2007-04-09 Thread roudoudou
Le Mon, 9 Apr 2007 09:23:38 +0400,
Belov, Sergey [EMAIL PROTECTED] a écrit :

 
  hit the same bug too with FreeBSD-6.1. To workaround this, i've just
  added the distribution set GENERIC to dists (this value wasn't
  mentionned on the sysinstall manpage by the way :-( )
  So try with this:
  dists=base GENERIC catpages info manpages proflibs kernel
  distSetCustom
 
 Thank you. I've also found interesting thread here:
 http://lists.freebsd.org/pipermail/freebsd-questions/2006-June/123640.ht
 ml
 
 It seems that automatic installation mechanism is far from perfect and
 there's nobody 
 who interested in fixing the problems.
 
Well the BUGS section of the sysinstall manpages says it all :-( .
 this bug, i've also found the auto-partitionning feature
buggy. 

 BTW, I've just selected distSetMinimum and in this case kernel was
 istalled.
 But except of this a problem I found a new trouble: system commands
 which I've put in install.cfg 
 doesn't seems to be executed. It just stops with the error 'system -1
 command not found' 
 or something like that.
 
 Even when the commands are pretty simple like this: 
 command=/sbin/shutdown -p now
 system
 
 It doesn't work and stops with the error.
 How about your commands? Can you show some examples of your
 install.cfg here if it works properly? :)
 
Sorry, i didn't use the system directive on my install.cfg. I
think that the best way to customize your jumpstart installation is
to make and install (with a package directive within your install.cfg) a
custom post-installation package (see
http://people.freebsd.org/~alfred/pxe/en_US.ISO8859-1/articles/pxe/article.html)
 .
You could then put all your command in the post shell script of this
package. 
This is what i've used here, and it worked just fine. Here a snipped
version of my post script:


#!/bin/sh

# $Wintelcom: src/freebsd/pxe/doc/post,v 1.1 2000/07/14 12:42:05 bright
Exp $
# $FreeBSD: doc/en_US.ISO8859-1/articles/pxe/post,v 1.2 2003/11/05
10:59:34 ceri Exp $

echo post-install shell script of mycustompackage.tbz
#(...)

###
# Auto-configuration of Xorg. The following cards are supported by this
script
#+ Ati (driver ati)
#+ Nvidia (driver nv)
#+ Intel (driver i810)
#+ Inconnu (driver vesa)

CG_CLASS=0x0300 # PCI CLASS for graphics cards 
CG_VENDOR=
XORG_CONF=
PATH_XORGCONF=/etc/X11
# The following xorg configuration files are installed
#+ bye the custom post-installation package (see
http://people.freebsd.org/~alfred/pxe/en_US.ISO8859-1/articles/pxe/article.html)

XORGCONF_NVIDIA=$PATH_XORGCONF/xorg.conf.nvidia
XORGCONF_INTELI810=$PATH_XORGCONF/xorg.conf.i810
XORGCONF_ATI=$PATH_XORGCONF/xorg.conf.ati
XORGCONF_VESA=$PATH_XORGCONF/xorg.conf.vesa # Generic driver 

# Get the unique card identification code
CG=`pciconf -l |grep -i class=$CG_CLASS |head -n 1`

if [ -z $CG ]  # no Cards detected by pciconf, then use
xorg.conf.vesa 
then
XORG_CONF=$XORGCONF_VESA else
# Extract the vendor id. Ex: if chip=0x00b81012 then
vendor_id=1012=nvidia 
CG_VENDOR=`echo -n $CG|cut -d  -f4|cut -d= -f2` 
# NVIDIA  ['$vendor == 0x10de || vendor == 0x12d2', #   'nv'], 
# Intel  ['$vendor == 0x8086', #   'i810'],
# # ATI ['$vendor == 0x1002',#   'ati'],

case $CG_VENDOR in
10de | 12d2 )
XORG_CONF=$XORGCONF_NVIDIA
;;
8086 )
XORG_CONF=$XORGCONF_INTELI810
;;
1002 )
XORG_CONF=$XORGCONF_ATI
;;
*)
XORG_CONF=$XORGCONF_VESA
;;
esac
fi
# Create the xorg.conf symbolic link pointing to the right xorg.conf.*
file 
[ -e $PATH_XORGCONF/xorg.conf ]  rm -f $PATH_XORGCONF/xorg.conf
ln -s $XORG_CONF $PATH_XORGCONF/xorg.conf 


HTH.

___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: Sysinstall does not install GENERIC kernel

2007-04-09 Thread Josh Paetzel
Kris Kennaway wrote:
 On Mon, Apr 09, 2007 at 09:23:38AM +0400, Belov, Sergey wrote:
  
   hit the same bug too with FreeBSD-6.1. To workaround this, i've just
   added the distribution set GENERIC to dists (this value wasn't
   mentionned on the sysinstall manpage by the way :-( )
   So try with this:
   dists=base GENERIC catpages info manpages proflibs kernel
   distSetCustom
  
  Thank you. I've also found interesting thread here:
  http://lists.freebsd.org/pipermail/freebsd-questions/2006-June/123640.ht
  ml
  
  It seems that automatic installation mechanism is far from perfect and
  there's nobody 
  who interested in fixing the problems.
 
 Are you sure it was not fixed in 6.2?
 
 Kris

distSetCustom has been broken ever since the goo was added to make 
sysinstall smart enough to install either GENERIC or SMP depending on 
how many processors are in the machine.  After that change was made 
the kernels target to distSetCustom stopped working.  My workaround 
has been to hack the distSetMinimal target in sysinstall to put in 
what I want.  I guess I should've submitted a PR at some point...

-- 
Thanks,

Josh Paetzel
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: Sysinstall does not install GENERIC kernel

2007-04-09 Thread Kris Kennaway
On Mon, Apr 09, 2007 at 04:39:08AM -0500, Josh Paetzel wrote:
 Kris Kennaway wrote:
  On Mon, Apr 09, 2007 at 09:23:38AM +0400, Belov, Sergey wrote:
   
hit the same bug too with FreeBSD-6.1. To workaround this, i've just
added the distribution set GENERIC to dists (this value wasn't
mentionned on the sysinstall manpage by the way :-( )
So try with this:
dists=base GENERIC catpages info manpages proflibs kernel
distSetCustom
   
   Thank you. I've also found interesting thread here:
   http://lists.freebsd.org/pipermail/freebsd-questions/2006-June/123640.ht
   ml
   
   It seems that automatic installation mechanism is far from perfect and
   there's nobody 
   who interested in fixing the problems.
  
  Are you sure it was not fixed in 6.2?
  
  Kris
 
 distSetCustom has been broken ever since the goo was added to make 
 sysinstall smart enough to install either GENERIC or SMP depending on 
 how many processors are in the machine.  After that change was made 
 the kernels target to distSetCustom stopped working.  My workaround 
 has been to hack the distSetMinimal target in sysinstall to put in 
 what I want.  I guess I should've submitted a PR at some point...

Yes.

Kris


pgpzPJVStD1lY.pgp
Description: PGP signature


RE: Sysinstall does not install GENERIC kernel

2007-04-09 Thread Belov, Sergey
Yes, 'kernels'  still doesn't work. I have January2007 ISO images, maybe
later it was fixed. I don't know.

And one more thing. Is there anyone who can explain why these commands
are failed?
http://beautynn.cololo.com/lj/tupoy/system.gif



-Original Message-
From: Kris Kennaway [mailto:[EMAIL PROTECTED] 
Sent: Monday, April 09, 2007 7:51 PM
To: Kris Kennaway; Belov, Sergey; freebsd-questions@freebsd.org;
[EMAIL PROTECTED]
Subject: Re: Sysinstall does not install GENERIC kernel

On Mon, Apr 09, 2007 at 04:39:08AM -0500, Josh Paetzel wrote:
 Kris Kennaway wrote:
  On Mon, Apr 09, 2007 at 09:23:38AM +0400, Belov, Sergey wrote:
   
hit the same bug too with FreeBSD-6.1. To workaround this, i've 
just added the distribution set GENERIC to dists (this value 
wasn't mentionned on the sysinstall manpage by the way :-( ) So 
try with this:
dists=base GENERIC catpages info manpages proflibs kernel 
distSetCustom
   
   Thank you. I've also found interesting thread here:
   http://lists.freebsd.org/pipermail/freebsd-questions/2006-June/123
   640.ht
   ml
   
   It seems that automatic installation mechanism is far from perfect

   and there's nobody who interested in fixing the problems.
  
  Are you sure it was not fixed in 6.2?
  
  Kris
 
 distSetCustom has been broken ever since the goo was added to make 
 sysinstall smart enough to install either GENERIC or SMP depending on 
 how many processors are in the machine.  After that change was made 
 the kernels target to distSetCustom stopped working.  My workaround 
 has been to hack the distSetMinimal target in sysinstall to put in 
 what I want.  I guess I should've submitted a PR at some point...

Yes.

Kris

___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: Sysinstall does not install GENERIC kernel

2007-04-09 Thread Kris Kennaway
On Mon, Apr 09, 2007 at 11:25:37PM +0400, Belov, Sergey wrote:
 Yes, 'kernels'  still doesn't work. I have January2007 ISO images, maybe
 later it was fixed. I don't know.
 
 And one more thing. Is there anyone who can explain why these commands
 are failed?
 http://beautynn.cololo.com/lj/tupoy/system.gif

OK, maybe try Sam Leffler [EMAIL PROTECTED] who was involved in the
change to install the SMP-dependent kernel.

Kris


pgpznxOJ3Uq3K.pgp
Description: PGP signature


Re: Sysinstall does not install GENERIC kernel

2007-04-08 Thread roudoudou
Le Fri, 6 Apr 2007 15:28:40 +0400,
Belov, Sergey [EMAIL PROTECTED] a écrit :

 I found a strange problem while making automatic install disk from
 official iso 6.2-RELEASE.
 
 I've made a custom install.cfg:
 
 ##
 # This is the installation configuration file
 
 # Turn on extra debugging.
 debug=yes
 nonInteractive=yes
 
 # My host specific data
 hostname=testmachine
 domainname=test.com
 nameserver=192.168.50.10
 
 # Which installation device to use
 mediaSetCDROM
 
 # Select which distributions we want.
 #dists=base bin catpages info manpages ports prof
 dists=base catpages info manpages proflibs kernel
 distSetCustom
(...)
hi,
hit the same bug too with FreeBSD-6.1. To workaround this, i've just
added the distribution set GENERIC to dists (this value wasn't
mentionned on the sysinstall manpage by the way :-( )
So try with this:
dists=base GENERIC catpages info manpages proflibs kernel
distSetCustom


HTH
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Sysinstall does not install GENERIC kernel

2007-04-08 Thread Belov, Sergey

 hit the same bug too with FreeBSD-6.1. To workaround this, i've just
 added the distribution set GENERIC to dists (this value wasn't
 mentionned on the sysinstall manpage by the way :-( )
 So try with this:
 dists=base GENERIC catpages info manpages proflibs kernel
 distSetCustom

Thank you. I've also found interesting thread here:
http://lists.freebsd.org/pipermail/freebsd-questions/2006-June/123640.ht
ml

It seems that automatic installation mechanism is far from perfect and
there's nobody 
who interested in fixing the problems.

BTW, I've just selected distSetMinimum and in this case kernel was
istalled.
But except of this a problem I found a new trouble: system commands
which I've put in install.cfg 
doesn't seems to be executed. It just stops with the error 'system -1
command not found' 
or something like that.

Even when the commands are pretty simple like this: 
command=/sbin/shutdown -p now
system

It doesn't work and stops with the error.
How about your commands? Can you show some examples of your install.cfg
here if it works properly? :)

___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Sysinstall does not install GENERIC kernel

2007-04-06 Thread Belov, Sergey
I found a strange problem while making automatic install disk from
official iso 6.2-RELEASE.

I've made a custom install.cfg:

##
# This is the installation configuration file

# Turn on extra debugging.
debug=yes
nonInteractive=yes

# My host specific data
hostname=testmachine
domainname=test.com
nameserver=192.168.50.10

# Which installation device to use
mediaSetCDROM

# Select which distributions we want.
#dists=base bin catpages info manpages ports prof
dists=base catpages info manpages proflibs kernel
distSetCustom

disk=ad0
partition=all
bootManager=standard
diskPartitionEditor

# All sizes are expressed in 512 byte blocks!
ad0s1-1=ufs 614400 /
ad0s1-2=swap 1048576 none
ad0s1-3=ufs 2048 /usr 1
ad0s1-4=ufs 0 /var 1

diskLabelEditor
diskLabelCommit

# OK, everything is set.  Do it!
installCommit
3

Then I placed it to prepared iso:
gunzip mfsroot.gz
mdconfig -a -t vnode -f mfsroot
mount /dev/md0 /mnt/floppy
cp ~/install.cfg /mnt/floppy
umount /mnt/floppy
mdconfig -d -u 0
gzip mfsroot

Then I created a new bootable iso-image and burnt it to CD-RW.

But after installing it on the test machine and after rebooting of that
machine the system was unable to boot. Because the /boot/kernel/
directory was empty, no modules, no kernels been in there. 
Why the sysintsall didn't copy GENERIC kernel to my hard disk??
All distribution was copied but only the kernel and modules weren't. 
Is it a bug or a feature? And how to fix it?

___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]