centos kickstart

cd /root/iso/centos
mkisofs -o CentOS_6_x86_64_Kickstart.iso -b isolinux/isolinux.bin -c isolinux/boot.cat -no-emul-boot -boot-load-size 4 -boot-info-table -R -J -v -T .
-------------------------------------------------------------------
Kickstart option to avoid "Storage Device Warning"
When I added zerombr to my kickstarts that issue went away.
I think that should do it b/c the devices will then have a structure that anaconda won't flake out on.
-------------------------------------------------------------------
PyCURL couldn't resolve "cdrom:sr0" during CentOS 6.2 kickstart installation
I have solved this issue myself, the solution is changing the repo line from
repo --name="CentOS"  --baseurl=cdrom:sr0 --cost=100
to
repo --name="CentOS"  --baseurl=file:///mnt/source --cost=100
-------------------------------------------------------------------
# Kickstart file automatically generated by anaconda.
#version=DEVEL
install
cdrom
lang en_US.UTF-8
keyboard fr
network --onboot yes --device eth0 --bootproto static --noipv6
rootpw  --iscrypted $6$NJrmWL64ZRdd1QFJ$I2hxrufs.2FI9.CVGB35R0fSQAFtJp4lakIKCoTvvmjVIBmDN/tOaBOwzptldn8HBXUMv8NmytpM6WeeonwSU.
firewall --service=ssh
authconfig --enableshadow --passalgo=sha512
selinux --enforcing
timezone --utc Europe/Paris
bootloader --location=mbr --driveorder=sda --append="crashkernel=auto rhgb quiet"
# The following is the partition information you requested
# Note that any partitions you deleted are not expressed
# here so unless you clear all partitions first, this is
# not guaranteed to work
zerombr
clearpart --all --drives=sda
part /boot --fstype=ext4 --size=500
part pv.008002 --grow --size=1
volgroup VolGroup --pesize=4096 pv.008002
logvol / --fstype=ext4 --name=lv_root --vgname=VolGroup --size=97896
logvol swap --name=lv_swap --vgname=VolGroup --size=4000
repo --name="CentOS"  --baseurl=file:///mnt/source --cost=100
reboot --eject
%post --nochroot
cp /mnt/source/6netconfig.sh /mnt/sysimage/root >> /tmp/ins.log 2>&1
chmod +x /mnt/sysimage/root/6netconfig.sh
%packages --nobase
@core
%end
-----------------------------------------------------------------
Last modified onMonday, 22 July 2013 22:59

( ! ) Warning: count(): Parameter must be an array or an object that implements Countable in /var/www/vhosts/shan.info/httpdocs/templates/gk_publisher/html/com_k2/templates/default/item.php on line 169
Call Stack
#TimeMemoryFunctionLocation
10.0004412224{main}( ).../index.php:0
20.08704262096Joomla\CMS\Application\SiteApplication->execute( ).../index.php:49
30.08704262096Joomla\CMS\Application\SiteApplication->doExecute( ).../CMSApplication.php:196
40.313211453048Joomla\CMS\Application\SiteApplication->dispatch( ).../SiteApplication.php:233
50.313811477312Joomla\CMS\Component\ComponentHelper::renderComponent( ).../SiteApplication.php:194
60.314711532640Joomla\CMS\Component\ComponentHelper::executeComponent( ).../ComponentHelper.php:377
70.315011560040require_once( '/var/www/vhosts/shan.info/httpdocs/components/com_k2/k2.php' ).../ComponentHelper.php:402
80.323611959672K2ControllerItem->execute( ).../k2.php:64
90.323611959672K2ControllerItem->display( ).../BaseController.php:710
100.332112610376K2ControllerItem->display( ).../item.php:78
110.332112610376K2ControllerItem->display( ).../controller.php:19
120.336512981416Joomla\CMS\Cache\Controller\ViewController->get( ).../BaseController.php:663
130.337813001784K2ViewItem->display( ).../ViewController.php:102
140.395615835344K2ViewItem->display( ).../view.html.php:742
150.395615835344K2ViewItem->loadTemplate( ).../HtmlView.php:230
160.397016008280include( '/var/www/vhosts/shan.info/httpdocs/templates/gk_publisher/html/com_k2/templates/default/item.php' ).../HtmlView.php:701

( ! ) Notice: Only variables should be assigned by reference in /var/www/vhosts/shan.info/httpdocs/templates/gk_publisher/html/com_k2/templates/default/item.php on line 478
Call Stack
#TimeMemoryFunctionLocation
10.0004412224{main}( ).../index.php:0
20.08704262096Joomla\CMS\Application\SiteApplication->execute( ).../index.php:49
30.08704262096Joomla\CMS\Application\SiteApplication->doExecute( ).../CMSApplication.php:196
40.313211453048Joomla\CMS\Application\SiteApplication->dispatch( ).../SiteApplication.php:233
50.313811477312Joomla\CMS\Component\ComponentHelper::renderComponent( ).../SiteApplication.php:194
60.314711532640Joomla\CMS\Component\ComponentHelper::executeComponent( ).../ComponentHelper.php:377
70.315011560040require_once( '/var/www/vhosts/shan.info/httpdocs/components/com_k2/k2.php' ).../ComponentHelper.php:402
80.323611959672K2ControllerItem->execute( ).../k2.php:64
90.323611959672K2ControllerItem->display( ).../BaseController.php:710
100.332112610376K2ControllerItem->display( ).../item.php:78
110.332112610376K2ControllerItem->display( ).../controller.php:19
120.336512981416Joomla\CMS\Cache\Controller\ViewController->get( ).../BaseController.php:663
130.337813001784K2ViewItem->display( ).../ViewController.php:102
140.395615835344K2ViewItem->display( ).../view.html.php:742
150.395615835344K2ViewItem->loadTemplate( ).../HtmlView.php:230
160.397016008280include( '/var/www/vhosts/shan.info/httpdocs/templates/gk_publisher/html/com_k2/templates/default/item.php' ).../HtmlView.php:701
back to top