Squashfs recipe.
[libguestfs.git] / recipes / squashfs.html
diff --git a/recipes/squashfs.html b/recipes/squashfs.html
new file mode 100644 (file)
index 0000000..6b989a0
--- /dev/null
@@ -0,0 +1,16 @@
+<p>
+You can use squashfs to import large amounts of data
+into a guest.  First you prepare the squashfs image:
+</p>
+
+<pre>
+/sbin/mksquashfs data <i>[...]</i> data.sqsh
+</pre>
+
+<p>
+and then you can add it to the guest as an extra data
+drive.  In the example below, we show how to make a
+squashfs from the contents of some local directory
+(<code>/usr/share/man/man8</code> in this example)
+and then make that appear in the guest.
+</p>