clalancette / oz

Automated installation for guest images
GNU Lesser General Public License v2.1
311 stars 128 forks source link

Customization of Windows: arbitrary number of reboots. #179

Open luisfdez opened 9 years ago

luisfdez commented 9 years ago

Hi @clalancette,

As part of the work on implementing customization for Windows guests (https://github.com/clalancette/oz/pull/174), I was wondering how we could tackle the following scenario on Windows guests (and maybe in other cases):

Once we have the customization ready, it would be interesting to create Windows images updated with the latest patches, etc... In general, on Windows this means to reboot the machine several times depending on the patches being applied.

How could we integrate these "0..n reboots" during the customization phase? Sounds feasible?

Thanks & happy new year, Luis

clalancette commented 9 years ago

Hi Luis, Hm, good question. It almost seems like we could handle this with the section of the TDL. However, I'm not sure if this will work in the current code because a "reboot" might be interpreted as a shutdown and kill the whole the process. Have you tried that, and is that what happens. If that is the case, we could possibly add a "reboot" type attribute to the TDL to make it clear that this particular command wants to reboot, not kill the process. What do you think?

On the one hand, it kind of seems like it would be something that could be handled with the section of the TDL. On the other hand, it might not be that easy to figure out.