You are rigth ! I was missing the $yum_repo_stanza and therefore the repo line in the resulting kickstart! Thanks a lot!
Le 26/07/2010 21:44, Brian Wong a écrit : > What does the evaluated kickstart file say? Follow the example belowto list > the output of the kickstart file. > cobbler system getks --name=system-name > Look for 'repo' statements in the output. This will give you an ideaof what > is being used during installation. If there are no statements,check your > kickstart template and make sure $yum_repo_stanza is beinginterpolated. > On Mon, Jul 26, 2010 at 5:58 AM, seb<[email protected]> > wrote:> Hello,>> I am unable to have a custom repository neither during > the installation of> CentOS 5.5 nor during postinstall. I > haveyum_post_install_mirror at 1.> When I add a package that is in my > custom repository in my kickstart> %packages section. I get an error > message during the install saying that it> is nowhere to be found. Adding > this package in port-install using "yum> install" does not work either. Do > I really have to edit the yum config files> during the postinstall and do > ayum install here ? Do you have the same> problem ?> Except from that, > the installation works fine.> Here is my cobbler report result :>> > distros:> ==========> Name : > DistroViverisCentOS5.5-x86_64> Architecture : x86_64> > Breed : redhat> Comment :> > Initrd : /root/custom_distro/initrd.img> Kernel > : /root/custom_distro/vmlinuz> Kernel Options > : {}> Kernel Options (Post Install) : {}> KickstartMetadata > : {'tree':> > 'http://@@http_server@@/cobbler/repo_mirror/ViverisCentOS5.5/'}> Management > Classes : []> OS Version : generic26> > Owners : ['admin']> Red Hat Management Key > :<<inherit>>> Red Hat Management Server :<<inherit>>> Template Files > : {}>>> profiles:> ==========> Name > :VBox_virtual_test> Comment :> DHCP Tag > : default> Distribution : > DistroViverisCentOS5.5-x86_64> Enable PXE Menu? : 1> Kernel > Options : {}> Kernel Options (Post Install) : {}> > Kickstart :> > /var/lib/cobbler/kickstarts/VBoxPXE_virtual_test.ks> Kickstart Metadata > : {}> Management Classes : []> Name Servers > : []> Name Servers Search Path : []> Owners > : ['admin']> Parent Profile :> Red Hat Management > Key :<<inherit>>> Red Hat Management Server :<<inherit>>> > Repos : ['RepoViveris_custom']> Server Override > :<<inherit>>> Template Files : {}> Virt Auto > Boot : 1> Virt Bridge : xenbr0> Virt > CPUs : 1> Virt File Size(GB) : 5> Virt > Path :> Virt RAM (MB) : 512> Virt > Type : xenpv>> systems:> ==========>> repos:> > ==========> Name : RepoViveris_custom> Arch > : x86_64> Breed :rsync> > Comment :> Createrepo Flags > :<<inherit>>> Environment Variables : {}> Keep Updated > : True> Mirror : /root/custom_repo/> > Mirror locally : True> Owners : > ['admin']> Priority : 99> RPM List > : []> Yum Options : {}>> Name > : ViverisCentOS5.5> Arch : x86_64> Breed > : yum> Comment :> Createrepo > Flags :<<inherit>>> Environment Variables : {}> > Keep Updated : True> Mirror :> > http://mirror.centos.org/centos/5.5/os/x86_64/> Mirror locally > : True> Owners : ['admin']> Priority > : 99> RPM List : ['setup', 'filesystem', > 'basesystem',> 'tzdata', 'glibc-common', 'cracklib-dicts', 'nash', > 'centos-release-notes',> 'termcap', 'libgcc', 'gnu-efi', 'rootfiles', > 'glibc', 'zlib', 'chkconfig',> 'glib2', 'mktemp', 'popt', 'audit-libs', > 'expat', 'libtermcap', 'bash',> 'info', 'libsepol', 'ncurses', 'nspr', > 'nss', 'readline', 'sqlite',> 'freetype', 'elfutils-libelf', > 'libgpg-error', 'bzip2-libs', 'libstdc++',> 'libgcrypt', 'sed', 'libpng', > 'libattr', 'libacl', 'keyutils', 'libcap',> 'libjpeg', 'libtiff', 'db4', > 'gawk', 'iptables', 'atk', 'slang', 'libsysfs',> 'libXau', 'iptables-ipv6', > 'iproute', 'keyutils', 'gnutls', 'pcre', 'grep',> 'libusb', 'hmaccalc', > 'procps', 'less', 'gzip', 'cpio', 'diffutils',> 'binutils', 'iputils', > 'libxml2', 'wireless-tools', 'tcp_wrappers',> 'ethtool','mingetty', 'gdbm', > 'libvolume_id', 'dmidecode',> 'cyrus-sasl-lib', 'sgpio', 'libXdmcp', > 'sysfsutils', 'udftools', 'dialog',> 'ed', 'file', 'hdparm', 'setserial', > 'centos-release', 'redhat-logos',> 'crontabs', 'bitstream-vera-fonts', > 'xorg-x11-filesystem', 'libX11',> 'libXrender', 'libXext', 'libXfixes', > 'libXcursor', 'libXrandr', 'libXi',> 'libXinerama', 'grub', 'libselinux', > 'device-mapper', 'yum-fastestmirror',> 'e2fsprogs-libs', 'shadow-utils', > 'e2fsprogs', 'findutils', 'coreutils',> 'krb5-libs', 'openssl', 'python', > 'fontconfig', 'cairo', 'kpartx', 'newt',> 'cryptsetup-luks', 'libXft', > 'pango', 'python-elementtree', 'python-sqlite',> 'yum-metadata-parser', > 'cracklib', 'pam', 'SysVinit', 'm2crypto',> 'openldap', 'libuser', > 'passwd', 'usermode', 'cups-libs', 'MAKEDEV', 'udev',> 'util-linux', > 'device-mapper-multipath', 'device-mapper-event', 'lvm2',> > 'libselinux-utils', 'logrotate', 'tar', 'psmisc', 'net-tools',> > 'initscripts', 'kbd', 'mcstrans', 'sysklogd', 'dhclient', 'dhcpv6-client',> > 'system-config-securitylevel-tui', 'prelink', 'authconfig', 'libhugetlbfs',> > 'rhpl', 'vim-minimal', 'python-urlgrabber', 'python-iniparse',> > 'hicolor-icon-theme', 'gtk2', 'trousers', 'ecryptfs-utils', 'fipscheck-lib',> > 'dbus-libs', 'rpm', 'openssh', 'dbus', 'dmraid', 'mkinitrd',> > 'module-init-tools', 'rpm-libs', 'rpm-python', 'dbus-glib', 'dmraid-events',> > 'fipscheck', 'openssh-server', 'openssh-clients', 'hwdata', 'yum', > 'kernel',> 'pciutils', 'hal', 'kudzu', 'pm-utils', 'wget']> Yum Options > : {}>>> images:> ==========>>> Best regards,>> > Sébastien BONNART>> _______________________________________________> > cobbler mailing list> [email protected]> > https://fedorahosted.org/mailman/listinfo/cobbler>> > _______________________________________________ cobbler mailing list [email protected] https://fedorahosted.org/mailman/listinfo/cobbler
