Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 9 Apr 2007 10:38:30 +0200
From:      roudoudou <roudoud0u@free.fr>
To:        freebsd-questions@freebsd.org
Subject:   Re: Sysinstall does not install GENERIC kernel
Message-ID:  <20070409103830.2d7e5379@bulbizarre.pokemon.land>
In-Reply-To: <39EC34D18C53EA428BA9A05A01CB2E8C8F4BD8@qmail.merann.ru>
References:  <39EC34D18C53EA428BA9A05A01CB2E8C8F4BD8@qmail.merann.ru>

next in thread | previous in thread | raw e-mail | index | archive | help
Le Mon, 9 Apr 2007 09:23:38 +0400,
"Belov, Sergey" <sbelov@mera.ru> a =E9crit :

>=20
> > 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=3Dbase GENERIC catpages info manpages proflibs kernel
> > distSetCustom
>=20
> Thank you. I've also found interesting thread here:
> http://lists.freebsd.org/pipermail/freebsd-questions/2006-June/123640.ht
> ml
>=20
> It seems that automatic installation mechanism is far from perfect and
> there's nobody=20
> who interested in fixing the problems.
>=20
Well the BUGS section of the sysinstall manpages says it all :-( .
 this bug, i've also found the auto-partitionning feature
buggy.=20

> 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=20
> doesn't seems to be executed. It just stops with the error 'system -1
> command not found'=20
> or something like that.
>=20
> Even when the commands are pretty simple like this:=20
> command=3D"/sbin/shutdown -p now"
> system
>=20
> 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? :)
>=20
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.=20
This is what i've used here, and it worked just fine. Here a snipped
version of my "post" script:

=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
#!/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=3D"0x0300" # PCI CLASS for graphics cards=20
CG_VENDOR=3D
XORG_CONF=3D
PATH_XORGCONF=3D"/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=3D"$PATH_XORGCONF/xorg.conf.nvidia"
XORGCONF_INTELI810=3D"$PATH_XORGCONF/xorg.conf.i810"
XORGCONF_ATI=3D"$PATH_XORGCONF/xorg.conf.ati"
XORGCONF_VESA=3D"$PATH_XORGCONF/xorg.conf.vesa" # Generic driver=20

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

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

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

HTH.




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