On Wed, Mar 14, 2012 at 7:22 AM, Doutreleau Eric <[email protected]> wrote: > Le 14/03/2012 13:08, James Cammarata a écrit : >> >> On Wed, Mar 14, 2012 at 6:28 AM, Doutreleau Eric >> <[email protected]> wrote: >> >>> >>> Hi >>> i m using cobbler 2.0.11 and i have the following problem. >>> >>> I would like to use pxechain for some of my computer in order to make >>> them >>> installed by WDS. >>> if in my /tftpboot/pxelinux.cfg/mac-adress file i put >>> >>> DEFAULT local >>> PROMPT 0 >>> TIMEOUT 0 >>> TOTALTIMEOUT 0 >>> ONTIMEOUT local >>> >>> LABEL local >>> KERNEL pxechain.com >>> APPEND 192.168.249.5 >>> >>> it works perfectly well. >>> The problems is that i don't see how to intergrate that in cobbler >>> >>> i have tried to use the image functionnality. >>> i ran >>> cobbler image edit --name=wds --file=/tftpboot/images/pxechain.com >>> --image-type=direct >>> and >>> cobbler system edit --name=i0012324 --image=wds --netboot-enabled=1 >>> >>> but i got in the file >>> default linux >>> prompt 0 >>> timeout 1 >>> label linux >>> kernel /images2/wds >>> ipappend 2 >>> append ksdevice=bootif lang= kssendmac text >>> It s almost good except the append part >>> >>> how can i manage the append part to put what i want in it. >>> >> >> You can edit the template for this: >> /etc/cobbler/pxe/pxesystem.template to remove the $append_line >> variable and insert something else. The main problem is that all >> variables may not be available for that template when it is being >> rendered, so doing something like this: >> >> append $ip >> >> May not work, assuming you've done something like --ksmeta="ip=x.x.x.x". >> _______________________________________________ >> cobbler mailing list >> [email protected] >> https://fedorahosted.org/mailman/listinfo/cobbler >> > > Thanks for the anwser > but if i modify the /etc/cobbler/pxe/pxesystem.template il will modify for > all my system and not only for machine which use the image. > I would like to modify the pxe entry only for machine who use my image to > boot.
In that case, the only option is to use the --kopts option and remove anything you don't actually need from the kernel_options setting in /etc/cobbler/settings. There is no direct access to edit what gets put in the $append_line variable. Looking at image edit though, it doesn't look like kopts is available for use, though it should be. Please open up an issue regarding this. _______________________________________________ cobbler mailing list [email protected] https://fedorahosted.org/mailman/listinfo/cobbler
