ohadlevy/foreman — pull request #15 by GregSutcliffe (2011-11-21 00:07:15+00:00)
Title: Archlinux support

Hi Ohad,

I've done this as a pull request because I want your input - when you're happy with it, I'll happily send a rake-patch to the mailing list if you want.

This set of commits adds basic support for Archlinux to Foreman, but there are a number of unfinished areas:

1) Setting up a download link for a vmlinuz/initrd is pretty much impossible - there isn't one. You have to download the Install ISO.
2) PXE booting of an Arch install is possible, but you have to use NBD to create a network fileshare of the Arch Install ISO. There's a script for Arch which loop mounts the iso, copies the vmlinuz/initrd, sets up NBD, and thus it's all ready to go. We *could* use that as a starting point I guess...
3) Once you get 1 & 2 done, the rest is quite easy - I have PXELinux, provision, and finish scripts for Arch which seem to work. I'll commit those a bit later, when I've done more testing.

I'm not sure if new new tests actually work - I tried to run them, but "rake" by itself seems to fall over after running the functional/* tests. Not sure what I'm doing wrong.

Shall we merge this as it is (assuming the test work)? It's only basic support, but it's a start, and I can extend it more once I've had more time to work on the unattended bit. How difficult is it to call a custom script (for the nbd stuff) when a host wants to rebuild?

As always, feel free to comment here or grab me in IRC - I'm not 100% sure of these changes yet :)