X-Git-Url: http://git.annexia.org/?p=libguestfs.git;a=blobdiff_plain;f=recipes%2Fclone.example;h=70be57d2c7ab8b8fb80ffe79378e03ab587eab5b;hp=8e8a1c1a8ed8f163dfe4ce69f3864e19a3b3bffc;hb=5067f8fc779837385c6ce4a41e60420ffa52bbe9;hpb=b86d7b975629ae099ad9a137ced6f23b17c1531a diff --git a/recipes/clone.example b/recipes/clone.example index 8e8a1c1..70be57d 100644 --- a/recipes/clone.example +++ b/recipes/clone.example @@ -2,19 +2,17 @@ $ clone.sh /tmp/test.img /tmp/new.img /dev/sda1 192.168.1.1 newmachine 204800+0 records in 204800+0 records out 104857600 bytes (105 MB) copied, 2.02821 s, 51.7 MB/s -write-file /etc/resolv.conf "nameserver 192.168.1.1" 0 -write-file /etc/HOSTNAME "newmachine" 0 -sync $ guestfish -a /tmp/new.img -m /dev/sda1 Welcome to guestfish, the libguestfs filesystem interactive shell for editing virtual machine filesystems. -Type: 'help' for help with commands +Type: 'help' for a list of commands + 'man' to read the manual 'quit' to quit the shell -> cat /etc/resolv.conf +> cat /etc/resolv.conf nameserver 192.168.1.1 > cat /etc/HOSTNAME newmachine