X-Git-Url: http://git.annexia.org/?a=blobdiff_plain;f=2012-dublin%2F0300-modify.html;fp=2012-dublin%2F0300-modify.html;h=c3aa1d0d39856b6eb6763f45c872b68465211463;hb=0cd762708e3d665bf982dc36ce8661eb982bf939;hp=0000000000000000000000000000000000000000;hpb=252dcb3c52fa6ff875a1eea2c3e6ffcb351b58a6;p=libguestfs-talks.git diff --git a/2012-dublin/0300-modify.html b/2012-dublin/0300-modify.html new file mode 100644 index 0000000..c3aa1d0 --- /dev/null +++ b/2012-dublin/0300-modify.html @@ -0,0 +1,23 @@ + + + + +
+

Using libguestfs from Python

+ +

+Create handle — +Inspect — +Modify — +Shutdown

+ +
+if type == "linux" and distro == "fedora":
+    g.mkdir_p ("/etc/profile.d")
+    g.write ("/etc/profile.d/proxy.sh",
+             "http_proxy=http://cache:3128/")
+else
+    # etc
+
+ +