[CentOS] Install from cdrom and Update repo

Fri Mar 14 21:32:04 UTC 2014
EljiUdia <eljiudia at yahoo.com>

Kickstart file is 


#Generate Kickstart file for newMachine-6717 on  Friday 14th of March 2014 10:16:58 PM 
install 
graphical 
cdrom 
repo --name="Updates" --baseurl="http://mirrors.centos.org/centos/6.5/updates/x86_64/" --cost=98 
skipx 
lang en_US.UTF-8 
keyboard us 
timezone UTC 
rootpw --iscrypted $6$S2YsdEAqRycwTEg0$/Nblabla
firewall --enabled --port=22:tcp
authconfig --enableshadow --passalgo=sha512 
selinux --enforcing 
network --device=00:15:5d:01:54:05 --bootproto=dhcp  --hostname=newMachine-6717 
bootloader --location=mbr --driveorder=sda,sdb,sdc  --append="crashkernel=auto" --iscrypted --password=$1$vzAJV1$s882/Oblabla
firstboot --disabled 
zerombr 
clearpart --drives=sda --all 
autopart 
%packages --nobase
%end
reboot --eject 
%post --log=/root/postinstall.log
/sbin/restorecon -R -v / 
%end



On Friday, March 14, 2014 11:25 PM, Eero Volotinen <eero.volotinen at iki.fi> wrote:
 
Please provide complete kickstart, not just a snippet of it.

14.3.2014 22.47 kirjoitti "EljiUdia" <eljiudia at yahoo.com>:

> Hi,
>
> I have make a kickstart file to automate the installation from cdrom and
> another repo.
> The kickstart snippet looks like
>
> install
> graphical
> cdrom
> repo --name="Updates" --baseurl="
> http://mirror.centos.org/centos/6.5/updates/x86_64/" --cost=98
> selinux --enforcing
>
> After installation, system boots but kernel crash with the message
>
> Kernel Panic - not syncing: Attempted to kill init!
> Pid: 1 comm: init Not tainted 2.6.32-358.6.2.e16.x86_64 #1
> Call Trace:
> [] ? panic+0xs7/0x16f
> [] ? do_exit+0x862/0x870
> [] ? fput+0x25/0x30
> [] ? do_group_exit+0x58/0xd0
> [] ? sys_exit_group+0x17/0x20
> [] ? system_call_fastpath+0x16/0x1b
>
> I found a solution on the web, but nobody tell why it happens. If selinux
> is disabled, it works. The append of this lines in kickstart has no
> positive effects.
>
> %post --log=/root/postinstall.log
> /sbin/restorecon -R -v /
> %end
>
> Some ideas?
> _______________________________________________
> CentOS mailing list
> CentOS at centos.org
> http://lists.centos.org/mailman/listinfo/centos
>
_______________________________________________
CentOS mailing list
CentOS at centos.org
http://lists.centos.org/mailman/listinfo/centos