Yes, you can run your own script before and after Clonezilla job is run.
The boot parameters you can use are ocs_prerun* and ocs_postrun*:
http://clonezilla.org/fine-print-live-doc.php?path=clonezilla-live/doc/99_Misc/00_live-boot-parameters.doc
Just place your script in the appropriate path and use that parameters 
to run it. You should be able to make it.

Steven.

On 1/29/2015 AM 12:32, Les Mikesell wrote:
> We will need to upgrade a large number of windows 2003 servers to 2008
> or 2012 in the near future.  Most of these are headless and have
> multiple network connections. I know I can build a usb disk/key that
> will install a standard image with clonezilla, but is there a way to
> also:
>   a) run a script on the machine before rebooting that gathers the
> hostname and NIC/IP settings - and maybe a few other things and write
> to the USB device.
> and
>    b) after the newly cloned image comes up, have it run a matching
> script to recreate the original settings?
>
> Has anyone done something like this already?   Alternatively, we might
> pre-build a database of all the MAC addresses and IP's and include
> that in the installed image so a script could get it back on the
> network to do the rest of the work.
>

-- 
Steven Shiau <steven _at_ stevenshiau org>
Public Key Server PGP Key ID: 4096R/47CF935C
Fingerprint: 0240 1FEB 695D 7112 62F0  8796 11C1 12DA 47CF 935C

------------------------------------------------------------------------------
Dive into the World of Parallel Programming. The Go Parallel Website,
sponsored by Intel and developed in partnership with Slashdot Media, is your
hub for all things parallel software development, from weekly thought
leadership blogs to news, videos, case studies, tutorials and more. Take a
look and join the conversation now. http://goparallel.sourceforge.net/
_______________________________________________
Clonezilla-live mailing list
Clonezilla-live@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/clonezilla-live

Reply via email to