mention package groups as a parameter along with ks file?
linux brainstack
linux.brainstack at gmail.com
Tue Jul 8 10:15:35 UTC 2008
Hello Greg,
The corrected and working ks snip is below :
%packages --resolvedeps
@ Base
%include /tmp/packagelist
%pre
(
cat /proc/cmdline |awk -F "packages=" '{print $2}' |sed 's/,/\n/g' >
/tmp/packagelist
) 2>&1 | tee -a /tmp/ks-pre.log
Key Points :
Specify %include filename under %package section.
And under %pre you process and prepare the list that is to be passed under
%packages.
Hope this helps :)
On Wed, Jul 2, 2008 at 11:17 PM, Gregory Gerard <ggerard at ggerard.com> wrote:
> Hi, LB,
> Would you mind posting just the corrected version that fully works?
>
> thanks!
> greg
>
> On Jul 2, 2008, at 1:50 AM, linux brainstack wrote:
>
> Ah .. Got it.
> It now works. Thnx Pablo & Steve.
>
>
> On Wed, Jul 2, 2008 at 2:11 PM, Steve Robson <srobson at cadence.com> wrote:
>
>>
>> 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
>>>>
>>>
>> I think you have the "%include /tmp/packagelist" in the wrong place. It
>> wants to in the "%packages" section:
>>
>> ...
>> %packages --resolvedeps
>> @ Base
>> %include /tmp/packagelist
>>
>> %pre
>> (
>> awk -F "packages=" '{print $2}' /proc/cmdline |sed 's/,/\n/g' >
>> /tmp/packagelist
>> ) 2>&1 | tee -a /tmp/ks-pre.log
>> %post
>> ...
>>
>> Good luck!
>> --
>> Regards,
>> Steve
>>
>> IT Support - UNIX/Linux Cadence Design Systems
>> Bagshot Road
>> Bracknell BERKSHIRE
>> RG12 0PH UK
>>
>>
>> _______________________________________________
>> 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
>
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://listman.redhat.com/archives/kickstart-list/attachments/20080708/83db7ad5/attachment.htm>
More information about the Kickstart-list
mailing list