I got some more things to work.
To solve the issue of the netboot loop, here's what I did.  Let me know if
this solution is to "hacky"

Since the machine booting doesn't inherently know the cobbler server or even
its own name, I have it look at the kernel command line for the kickstart
file.  It then greps through the kickstart file for a line starting with
"wget" and containing "nopxe".  If it finds one, it executes it, triggering
cobbler to turn off netboot.

I've tried it out and it seems to work great.  A machine images itself,
reboots, and starts up in the new environment.

I'm really new to git, and had a bit of trouble figuring out how to work it,
but I finally got it to give me the changes I made.  It would only do it in
two patch files though, I guess since I made two commits.
-Andrew

On Wed, Oct 1, 2008 at 4:33 PM, Michael DeHaan <[EMAIL PROTECTED]> wrote:

> Andrew Brown wrote:
> >
> >
> > On Wed, Oct 1, 2008 at 3:52 PM, Michael DeHaan <[EMAIL PROTECTED]
> > <mailto:[EMAIL PROTECTED]>> wrote:
> >
> >
> >     When you make these changes, you can use "git-format-patch" to send a
> >     diff back of the changes you are making to base.cfg, that way we can
> >     keep the code all in one place and others who are interested can
> >     look at
> >     the changes.
> >
> >
> > I'll see if I can figure that out next time I need to.
> >
> >
> >
> >     Netboot enabled (now that I think about it) should work fine as
> >     long as
> >     you are using cobbler system records.   You might just be using
> >     profiles?
> >
> >
> > My setup is detailed in one of my recent emails.  The netboot is very
> > relevant, once I load an image on a machine, I need to boot into it.
> > That involves restarting the machine, but it would just netboot into
> > the cloner again.  I was thinking there needs to be a way to disable
> > netboot for a machine after it saves or loads an image.  Make sense.
>
> Use system records as described here then those URLs will work.
>
> https://fedorahosted.org/cobbler/wiki/PhysicalSystemCloneFeature
>
> with no system records in cobbler this would not.
> >
> > Oh, also, there's no makefile in contrib/cloner.  That would have been
> > easy for me to figure out if there was, but the only file I see in
> > there is the base.cfg.
>
> I'll add it to git, thanks.
>
> >
> > -Andrew
> >
> > ------------------------------------------------------------------------
> >
> > _______________________________________________
> > cobbler mailing list
> > [email protected]
> > https://fedorahosted.org/mailman/listinfo/cobbler
> >
>
> _______________________________________________
> cobbler mailing list
> [email protected]
> https://fedorahosted.org/mailman/listinfo/cobbler
>

Attachment: 0001-changed-save-and-load-actions-to-cloneraction-save-l.patch
Description: Binary data

Attachment: 0002-woops-didn-t-mean-to-hardcode-the-kickstart-URL.patch
Description: Binary data

_______________________________________________
cobbler mailing list
[email protected]
https://fedorahosted.org/mailman/listinfo/cobbler

Reply via email to