mention package groups as a parameter along with ks file ?

linux brainstack linux.brainstack at gmail.com
Wed Jul 2 08:28:17 UTC 2008


Under ks-pre.log i get
%include: not found

Here is the kickstart file

install
text
network --bootproto dhcp
url --url http://satellite-fqdn/ty/GGLm3qyH
lang en_US
langsupport --default en_US en_US
keyboard us
mouse none
zerombr yes
clearpart --all
part /boot --fstype=ext3 --size=200
part pv.01 --size=1000 --grow
part swap --size=1000   --maxsize=2000
volgroup myvg pv.01
logvol / --vgname=myvg --name=rootvol --size=1000 --grow
bootloader --location mbr
timezone America/New_York
auth --enablemd5 --enableshadow
rootpw --iscrypted $1$lc7X.5EV$C9/ehiwEbQt6YnaV9Ie3F0
selinux --permissive
reboot
firewall --disabled
skipx

%packages --resolvedeps

@ Base


%pre
(
cat /proc/cmdline |awk -F "packages=" '{print $2}' |sed 's/,/\n/g'  >
/tmp/packagelist
%include  /tmp/packagelist
) 2>&1 | tee -a /tmp/ks-pre.log

%post --nochroot
mkdir /mnt/sysimage/tmp/ks-tree-copy
if [ -d /oldtmp/ks-tree-shadow ]; then
cp -fa /oldtmp/ks-tree-shadow/* /mnt/sysimage/tmp/ks-tree-copy
elif [ -d /tmp/ks-tree-shadow ]; then
cp -fa /tmp/ks-tree-shadow/* /mnt/sysimage/tmp/ks-tree-copy
fi
cp /etc/resolv.conf /mnt/sysimage/etc/resolv.conf

%post
( # Log %post errors

 # --Begin RHN command section--




On Wed, Jul 2, 2008 at 1:44 PM, Pablo Iranzo Gómez <Pablo.Iranzo at redhat.com>
wrote:

>        ¿Can you post your full kickstart to have a look on it?
>
>        Have you checked the availability of each command used on VT2 while
> kickstarting?
>
>        Try to wrap your %pre script with something like:
>
>        %pre
>        (
>
>        ) 2>&1 | tee -a /tmp/ks-pre.log
>
>        And have a look at ks-pre.log to check what's wrong.
>
>        Regards
>        Pablo
>
>
> El mié, 02-07-2008 a las 13:02 +0530, linux brainstack escribió:
> > under anaconda logs i see
> >
> > * Running kickstart %pre script(s)
> > * WARNING - Error code 32512 encountered running a kickstart %pre/%
> > post script
> > * All kickstart %pre script(s) have been run
> >
> > Any clues on where i am messing up ?
> >
> > Thanks !
> >
> > On Wed, Jul 2, 2008 at 12:46 PM, linux brainstack
> > <linux.brainstack at gmail.com> wrote:
> >         There is no such file :(
> >         Under /tmp i cant see such file.
> >
> >         Regarding one package per line - i had added sed to replace ,
> >         by \n so that should take care of it.
> >
> >         Any clues on why the file is not created ?
> >
> >         Thanks !
> >
> >
> >
> >         On Wed, Jul 2, 2008 at 12:42 PM, Pablo Iranzo Gómez
> >         <Pablo.Iranzo at redhat.com> wrote:
> >                        Check exact contents of /tmp/packagelist, and
> >                 be sure to specify
> >                 packages one per line ;)
> >
> >                        Regards
> >                        Pablo
> >
> >
> >                 El mié, 02-07-2008 a las 12:36 +0530, linux brainstack
> >                 escribió:
> >
> >                 > Hi,
> >                 > Thanks for your reply.
> >                 >
> >                 > I tried the below stuff with no success.. Am i doing
> >                 something wrong ?
> >                 > Under %pre i added -
> >                 > cat /proc/cmdline |awk -F "packages=" '{print $2}' |
> >                 sed 's/,/\n/g'  > /tmp/packagelist
> >                 >
> >                 > %include  /tmp/packagelist
> >                 >
> >                 > So this turns out like
> >                 > If i specify
> >                 > packages=@kde, at WEb Server"
> >                 > Then /tmp/packagelist would have
> >                 > @kde
> >                 > @Web Server
> >                 >
> >                 > But these groups are not installed.
> >                 >
> >                 > Anaconda.cfg has
> >                 > %packages --resolvedeps
> >                 > grub
> >                 > kernel-smp
> >                 > e2fsprogs
> >                 > lvm2
> >                 >
> >                 > %post
> >                 >
> >                 >
> >                 > Any clues ?
> >                 >
> >                 > Thanks !
> >                 >
> >                 > On Wed, Jul 2, 2008 at 11:56 AM, Pablo Iranzo Gómez
> >                 > <Pablo.Iranzo at redhat.com> wrote:
> >                 >                You can:
> >                 >
> >                 >                ask at %pre and do an %include of a
> >                 file with each
> >                 >         package requested
> >                 >                ask at %post and trigger a yum
> >                 install on each one
> >                 >                pass them as kernel parameters like
> >                 packages="package1
> >                 >         package2
> >                 >         package3 @group1" and then process at %pre
> >                 the /proc/cmdline
> >                 >         to write an
> >                 >         extra packages section to be %include
> >                 >
> >                 >                Regards
> >                 >                Pablo
> >                 >
> >                 >         El mié, 02-07-2008 a las 11:50 +0530, linux
> >                 brainstack
> >                 >         escribió:
> >                 >
> >                 >         > Hello,
> >                 >         > I have created a kickstart file which has
> >                 @ Base under
> >                 >         Software.
> >                 >         > But i want a way to mention additional
> >                 package groups at
> >                 >         runtime when
> >                 >         > the kickstart is triggered.
> >                 >         >
> >                 >         > Is there any way ?
> >                 >         > Either %post asking for package group name
> >                 >         > OR
> >                 >         > along with ks file path we add one more
> >                 parameter
> >                 >         packagegroup name ?
> >                 >         >
> >                 >         > Any Thoughts / Ideas ?
> >                 >         >
> >                 >         > Thanks.
> >                 >
> >                 >         >
> >                 _______________________________________________
> >                 >         > Kickstart-list mailing list
> >                 >         > Kickstart-list at redhat.com
> >                 >         >
> >                 https://www.redhat.com/mailman/listinfo/kickstart-list
> >                 >         --
> >                 >
> >                 >         Pablo Iranzo Gómez (Pablo.Iranzo at redhat.com)
> >                 >         RHCE/Global Profesional Services Consultant
> >                 Spain
> >                 >         Phone: +34 645 01 01 49 (CET/CEST)
> >                 >         GnuPG KeyID: 0xFAD3CF0D
> >                 >         ---
> >                 >         Dirección Comercial: C/Jose Bardasano Baos,
> >                 9, Edif. Gorbea 3,
> >                 >         planta 3ºD, 28016 Madrid, Spain
> >                 >         Dirección Registrada: Red Hat S.L., C/
> >                 Velazquez 63, Madrid
> >                 >         28001, Spain
> >                 >         Inscrita en el Reg. Mercantil de Madrid –
> >                 C.I.F. B82657941
> >                 >
> >                 >
> >                 _______________________________________________
> >                 >         Kickstart-list mailing list
> >                 >         Kickstart-list at redhat.com
> >                 >
> >                 https://www.redhat.com/mailman/listinfo/kickstart-list
> >                 >
> >                 > _______________________________________________
> >                 > Kickstart-list mailing list
> >                 > Kickstart-list at redhat.com
> >                 >
> >                 https://www.redhat.com/mailman/listinfo/kickstart-list
> >                 --
> >
> >                 Pablo Iranzo Gómez (Pablo.Iranzo at redhat.com)
> >                 RHCE/Global Profesional Services Consultant Spain
> >                 Phone: +34 645 01 01 49 (CET/CEST)
> >                 GnuPG KeyID: 0xFAD3CF0D
> >                 ---
> >                 Dirección Comercial: C/Jose Bardasano Baos, 9, Edif.
> >                 Gorbea 3, planta 3ºD, 28016 Madrid, Spain
> >                 Dirección Registrada: Red Hat S.L., C/ Velazquez 63,
> >                 Madrid 28001, Spain
> >                 Inscrita en el Reg. Mercantil de Madrid – C.I.F.
> >                 B82657941
> >
> >
> >                 _______________________________________________
> >                 Kickstart-list mailing list
> >                 Kickstart-list at redhat.com
> >                 https://www.redhat.com/mailman/listinfo/kickstart-list
> >
> >
> >
> > _______________________________________________
> > Kickstart-list mailing list
> > Kickstart-list at redhat.com
> > https://www.redhat.com/mailman/listinfo/kickstart-list
> --
>
> Pablo Iranzo Gómez (Pablo.Iranzo at redhat.com)
> RHCE/Global Profesional Services Consultant Spain
> Phone: +34 645 01 01 49 (CET/CEST)
> GnuPG KeyID: 0xFAD3CF0D
> ---
> Dirección Comercial: C/Jose Bardasano Baos, 9, Edif. Gorbea 3, planta 3ºD,
> 28016 Madrid, Spain
> Dirección Registrada: Red Hat S.L., C/ Velazquez 63, Madrid 28001, Spain
> Inscrita en el Reg. Mercantil de Madrid – C.I.F. B82657941
>
> _______________________________________________
> Kickstart-list mailing list
> Kickstart-list at redhat.com
> https://www.redhat.com/mailman/listinfo/kickstart-list
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://listman.redhat.com/archives/kickstart-list/attachments/20080702/79f7e04d/attachment.htm>


More information about the Kickstart-list mailing list