Sysinstall does not install GENERIC kernel
roudoudou
roudoud0u at free.fr
Mon Apr 9 08:37:53 UTC 2007
Le Mon, 9 Apr 2007 09:23:38 +0400,
"Belov, Sergey" <sbelov at mera.ru> 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.
More information about the freebsd-questions
mailing list