X-Git-Url: http://git.annexia.org/?a=blobdiff_plain;f=recipes%2Fclone.sh;h=85acf1f3062287410121fa8160f458b1bd7cd32f;hb=c3887285abbb3606822626ba396a51cb5df80d43;hp=e3fc11cf1a78672fd494e6486c20693659edc393;hpb=b86d7b975629ae099ad9a137ced6f23b17c1531a;p=libguestfs.git diff --git a/recipes/clone.sh b/recipes/clone.sh index e3fc11c..85acf1f 100755 --- a/recipes/clone.sh +++ b/recipes/clone.sh @@ -1,15 +1,14 @@ #!/bin/sh - -preimage="$1" -newimage="$2" -root="$3" -nameserver="$4" -hostname="$5" +preimage="$1" ;# original guest +newimage="$2" ;# new guest +root="$3" ;# root filesystem +nameserver="$4" ;# new nameserver +hostname="$5" ;# new hostname -dd if="$preimage" of="$newimage" +dd if="$preimage" of="$newimage" bs=1M guestfish -a "$newimage" -m "$root" <