Remove guestfish recipes.
authorRichard W.M. Jones <rjones@redhat.com>
Wed, 18 May 2011 14:27:20 +0000 (15:27 +0100)
committerRichard W.M. Jones <rjones@redhat.com>
Wed, 18 May 2011 16:02:53 +0000 (17:02 +0100)
These were out of date.  We will replace them with more up to date
information.

47 files changed:
.gitignore
Makefile.am
html/recipes.css [deleted file]
make-recipes.sh [deleted file]
recipes/LICENSE [deleted file]
recipes/README [deleted file]
recipes/clone.example [deleted file]
recipes/clone.html [deleted file]
recipes/clone.sh [deleted file]
recipes/clone.title [deleted file]
recipes/editgrub.html [deleted file]
recipes/editgrub.sh [deleted file]
recipes/editgrub.title [deleted file]
recipes/export2tar.example [deleted file]
recipes/export2tar.html [deleted file]
recipes/export2tar.sh [deleted file]
recipes/export2tar.title [deleted file]
recipes/iso2tar.example [deleted file]
recipes/iso2tar.html [deleted file]
recipes/iso2tar.sh [deleted file]
recipes/iso2tar.title [deleted file]
recipes/list-apps.example [deleted file]
recipes/list-apps.html [deleted file]
recipes/list-apps.sh [deleted file]
recipes/list-apps.title [deleted file]
recipes/list-files.html [deleted file]
recipes/list-files.sh [deleted file]
recipes/list-files.title [deleted file]
recipes/product-name.example [deleted file]
recipes/product-name.html [deleted file]
recipes/product-name.sh [deleted file]
recipes/product-name.title [deleted file]
recipes/show-devices.example [deleted file]
recipes/show-devices.html [deleted file]
recipes/show-devices.sh [deleted file]
recipes/show-devices.title [deleted file]
recipes/squashfs.example [deleted file]
recipes/squashfs.html [deleted file]
recipes/squashfs.sh [deleted file]
recipes/squashfs.title [deleted file]
recipes/tar2vm.example [deleted file]
recipes/tar2vm.html [deleted file]
recipes/tar2vm.sh [deleted file]
recipes/tar2vm.title [deleted file]
recipes/user-quota.html [deleted file]
recipes/user-quota.sh [deleted file]
recipes/user-quota.title [deleted file]

index 969aa08..80f3f18 100644 (file)
@@ -120,7 +120,6 @@ html/guestfs-perl.3.html
 html/guestfs-python.3.html
 html/guestfs-ruby.3.html
 html/guestmount.1.html
-html/recipes.html
 html/virt-cat.1.html
 html/virt-copy-in.1.html
 html/virt-copy-out.1.html
index 3756409..523cd7b 100644 (file)
@@ -119,27 +119,13 @@ EXTRA_DIST = \
        debian/shlibs.local \
        debian/watch \
        html/pod.css \
-       html/recipes.css \
        libguestfs.pc libguestfs.pc.in \
        libtool-kill-dependency_libs.sh \
        logo/fish.svg logo/fish.png \
-       make-recipes.sh \
        m4/.gitignore \
-       recipes/LICENSE \
-       recipes/README \
-       recipes/*.html \
-       recipes/*.sh \
-       recipes/*.example \
        run \
        update-bugs.sh
 
-# Recipes web page.
-html/recipes.html: $(wildcard recipes/*.sh) $(wildcard recipes/*.html) $(wildcard recipes/*.example) Makefile make-recipes.sh
-       mkdir -p html
-       rm -f $@ $@-t
-       sh make-recipes.sh recipes/*.sh > $@-t
-       mv $@-t $@
-
 HTMLFILES = \
        html/guestfs.3.html \
        html/guestfs-examples.3.html \
@@ -165,9 +151,7 @@ HTMLFILES = \
        html/virt-tar.1.html \
        html/virt-tar-in.1.html \
        html/virt-tar-out.1.html \
-       html/virt-win-reg.1.html \
-       html/recipes.html \
-       html/pod.css html/recipes.css
+       html/virt-win-reg.1.html
 
 TEXTFILES = BUGS README RELEASE-NOTES ROADMAP TODO
 
diff --git a/html/recipes.css b/html/recipes.css
deleted file mode 100644 (file)
index c207355..0000000
+++ /dev/null
@@ -1,8 +0,0 @@
-/* CSS to make pod2html files look a little bit better. */
-@import url("http://people.redhat.com/~rjones/css/standard.css");
-
-div.example pre {
-    /*font-weight: bold;*/
-    width: 40em;
-    border: 1px solid #c00;
-}
\ No newline at end of file
diff --git a/make-recipes.sh b/make-recipes.sh
deleted file mode 100755 (executable)
index 7bd8114..0000000
+++ /dev/null
@@ -1,80 +0,0 @@
-#!/bin/sh -
-# libguestfs
-# Copyright (C) 2009 Red Hat Inc.
-#
-# This program is free software; you can redistribute it and/or modify
-# it under the terms of the GNU General Public License as published by
-# the Free Software Foundation; either version 2 of the License, or
-# (at your option) any later version.
-#
-# This program is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
-# GNU General Public License for more details.
-#
-# You should have received a copy of the GNU General Public License
-# along with this program; if not, write to the Free Software
-# Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
-
-cat <<EOF
-<html>
-  <head>
-    <title>guestfish recipes</title>
-    <link rel="stylesheet" href="recipes.css" type="text/css" title="Standard"/>
-  </head>
-  <body>
-    <h1>guestfish recipes</h1>
-    <p>You can also find these in the
-    <a href="http://git.annexia.org/?p=libguestfs.git;a=tree;f=recipes;hb=HEAD"><code>recipes/</code>
-    subdirectory</a> of the source.</p>
-
-    <p>
-    <a href="http://libguestfs.org/download/">Download
-    libguestfs and guestfish here</a> or
-    <a href="http://libguestfs.org/">go to the
-    libguestfs home page</a>.
-    </p>
-
-    <h2>Table of recipes</h2>
-    <ul>
-EOF
-
-for f in recipes/*.sh; do
-    b=`basename $f .sh`
-    echo -n '    <li> <a href="#'$b'">'$b.sh
-    if [ -r recipes/$b.title ]; then
-        echo -n ': '
-        cat recipes/$b.title
-    fi
-    echo '</a> </li>'
-done
-echo '    </ul>'
-echo
-echo
-
-for f in recipes/*.sh; do
-    b=`basename $f .sh`
-    echo -n '<a name="'$b'"></a>'
-    echo -n '<h2>'$b'.sh'
-    if [ -r recipes/$b.title ]; then
-        echo -n ': '
-        cat recipes/$b.title
-    fi
-    echo -n '<small style="font-size: 8pt; margin-left: 2em;"><a href="#'$b'">permalink</a></small>'
-    echo '</h2>'
-    if [ -r recipes/$b.html ]; then
-        cat recipes/$b.html
-    fi
-    echo '<h3>'$b'.sh</h3>'
-    echo '<div class="example">'
-    source-highlight --output=STDOUT --src-lang=sh --input=$f
-    echo '</div>'
-    if [ -r recipes/$b.example ]; then
-        echo '<h3>Example output</h3>'
-        echo '<pre>'
-        sed -e 's,&,\&amp;,g' -e 's,<,\&lt;,g' -e 's,>,\&gt;,g' < recipes/$b.example
-        echo '</pre>'
-    fi
-done
-
-echo '</body></html>'
diff --git a/recipes/LICENSE b/recipes/LICENSE
deleted file mode 100644 (file)
index d15411e..0000000
+++ /dev/null
@@ -1,2 +0,0 @@
-All the scripts in the recipes/ subdirectory may be freely
-copied without any restrictions.
diff --git a/recipes/README b/recipes/README
deleted file mode 100644 (file)
index 4361327..0000000
+++ /dev/null
@@ -1,26 +0,0 @@
-This directory contains guestfish-based shell which give some useful
-recipes to follow.
-
-These also get copied to the website here:
-http://libguestfs.org/recipes.html
-
-The format for each recipe is:
-
-  foo.sh           Shell script, using guestfish.
-  foo.title        The title of the recipe.
-  foo.html         HTML snippet describing the recipe.
-  foo.example      Plain text snippet showing example output.
-
-Everything in the recipes/ directory may be used and distributed
-without restrictions.
-
-To run a script before libguestfs has been installed, you can do
-something like this:
-
-  LIBGUESTFS_PATH=../appliance PATH=../fish:$PATH ./show-devices.sh disk.img
-
-You can apply these recipes in your own programs by translating the
-guestfish commands into API calls in the language of your choice.  The
-translation is a simple 1-1 mapping.
-
-Got a useful tip or recipe?  Please contribute ...
diff --git a/recipes/clone.example b/recipes/clone.example
deleted file mode 100644 (file)
index 70be57d..0000000
+++ /dev/null
@@ -1,18 +0,0 @@
-$ 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
-
-$ guestfish -a /tmp/new.img -m /dev/sda1
-
-Welcome to guestfish, the libguestfs filesystem interactive shell for
-editing virtual machine filesystems.
-
-Type: 'help' for a list of commands
-      'man' to read the manual
-      'quit' to quit the shell
-
-><fs> cat /etc/resolv.conf
-nameserver 192.168.1.1
-><fs> cat /etc/HOSTNAME
-newmachine
diff --git a/recipes/clone.html b/recipes/clone.html
deleted file mode 100644 (file)
index 7079f3f..0000000
+++ /dev/null
@@ -1,22 +0,0 @@
-<p>
-This script shows how you might have a library of premade
-virtual machines ready for cloning, but as a final step you
-use libguestfs or guestfish to customize some configuration
-files inside the VM before it's ready to go.
-</p>
-
-<p>
-In this simple recipe, we overwrite the <code>/etc/resolv.conf</code> file
-with a new nameserver entry, and change <code>/etc/HOSTNAME</code>.
-</p>
-
-<p>
-There are lots of possible improvements to this script, such as
-using qcow2 snapshots so that cloned VMs share storage with their
-"parent" preimages.
-</p>
-
-<p>
-For more information about cloning images using libvirt and libguestfs
-see <a href="https://rwmj.wordpress.com/2010/09/24/tip-my-procedure-for-cloning-a-fedora-vm/#content">Richard Jones's procedure for cloning a Fedora VM</a>.
-</p>
diff --git a/recipes/clone.sh b/recipes/clone.sh
deleted file mode 100755 (executable)
index 85acf1f..0000000
+++ /dev/null
@@ -1,14 +0,0 @@
-#!/bin/sh -
-
-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" bs=1M
-
-guestfish -a "$newimage" -m "$root" <<EOF
-  write /etc/resolv.conf "nameserver $nameserver"
-  write /etc/HOSTNAME "$hostname"
-EOF
diff --git a/recipes/clone.title b/recipes/clone.title
deleted file mode 100644 (file)
index 68ea79c..0000000
+++ /dev/null
@@ -1 +0,0 @@
-Clone and edit a virtual machine
\ No newline at end of file
diff --git a/recipes/editgrub.html b/recipes/editgrub.html
deleted file mode 100644 (file)
index 119bb93..0000000
+++ /dev/null
@@ -1,13 +0,0 @@
-<p>
-If you messed up your VM and made it unbootable, it's
-often useful to be able to go in and edit <code>/boot/grub/grub.conf</code>.
-This guestfish script shows how to do that.
-</p>
-
-<pre>
-editgrub.sh broken-guest.img
-</pre>
-
-<p>
-See also <a href="http://libguestfs.org/virt-edit.1.html">virt-edit</a>.
-</p>
diff --git a/recipes/editgrub.sh b/recipes/editgrub.sh
deleted file mode 100755 (executable)
index 14a7861..0000000
+++ /dev/null
@@ -1,3 +0,0 @@
-#!/bin/sh -
-
-guestfish -a "$1" -i edit /boot/grub/grub.conf
diff --git a/recipes/editgrub.title b/recipes/editgrub.title
deleted file mode 100644 (file)
index 2c93a0f..0000000
+++ /dev/null
@@ -1 +0,0 @@
-Fix an unbootable VM by editing /boot/grub/grub.conf
\ No newline at end of file
diff --git a/recipes/export2tar.example b/recipes/export2tar.example
deleted file mode 100644 (file)
index 7f222f3..0000000
+++ /dev/null
@@ -1,14 +0,0 @@
-$ ./export2tar.sh /dev/mapper/Guests-RHEL53PV32 /dev/VolGroup00/LogVol00 \
-    /home /tmp/home.tar.gz
-$ ll /tmp/home.tar.gz
--rw-rw-r--. 1 rjones rjones 824 2009-04-25 12:33 /tmp/home.tar.gz
-$ tar ztf /tmp/home.tar.gz
-./
-./rjones/
-./rjones/.bash_profile
-./rjones/.mozilla/
-./rjones/.mozilla/extensions/
-./rjones/.mozilla/plugins/
-./rjones/.bash_logout
-./rjones/.bashrc
-./rjones/.emacs
diff --git a/recipes/export2tar.html b/recipes/export2tar.html
deleted file mode 100644 (file)
index 9d9f2d4..0000000
+++ /dev/null
@@ -1,20 +0,0 @@
-<p>
-This script lets you export any directory you like from a virtual
-machine as a tarball.  For example, to export <code>/home</code>
-from a standard Fedora or RHEL virtual machine you would do:
-</p>
-
-<pre>
-export2tar.sh guest.img /dev/VolGroup00/LogVol00 /home home.tar.gz
-</pre>
-
-<p>
-<code>/dev/VolGroup00/LogVol00</code> is the partition or LV <i>inside</i>
-the VM which contains the directory you want.
-</p>
-
-<p>
-See also <a href="http://libguestfs.org/virt-tar.1.html">virt-tar</a>
-and <a href="https://rwmj.wordpress.com/2010/12/02/tip-uploading-and-downloading/#content">Richard
-Jones's complete list of ways to upload and download files</a>.
-</p>
diff --git a/recipes/export2tar.sh b/recipes/export2tar.sh
deleted file mode 100755 (executable)
index fa79b3e..0000000
+++ /dev/null
@@ -1,3 +0,0 @@
-#!/bin/sh -
-
-guestfish --ro -a "$1" -m "$2" tgz-out "$3" "$4"
diff --git a/recipes/export2tar.title b/recipes/export2tar.title
deleted file mode 100644 (file)
index 98a9e91..0000000
+++ /dev/null
@@ -1 +0,0 @@
-Export the /home directory from a virtual machine into a tarball
\ No newline at end of file
diff --git a/recipes/iso2tar.example b/recipes/iso2tar.example
deleted file mode 100644 (file)
index 5c796e1..0000000
+++ /dev/null
@@ -1,16 +0,0 @@
-$ ll -h /tmp/Fedora-11-Beta-i386-netinst.iso
--r--r--r--. 1 rjones rjones 168M 2009-04-25 22:38 /tmp/Fedora-11-Beta-i386-netinst.iso
-$ ./iso2tar.sh /tmp/Fedora-11-Beta-i386-netinst.iso /tmp/cd.tar.gz
-$ ls -lh /tmp/cd.tar.gz
--rw-rw-r--. 1 rjones rjones 177M 2009-04-25 22:50 /tmp/cd.tar.gz
-$ tar ztf /tmp/cd.tar.gz
-./
-./EFI/
-./EFI/BOOT/
-./EFI/BOOT/BOOT.conf
-./EFI/BOOT/BOOTIA32.conf
-./EFI/BOOT/splash.xpm.gz
-./EFI/BOOT/TRANS.TBL
-./images/
-./images/efiboot.img
-[etc]
diff --git a/recipes/iso2tar.html b/recipes/iso2tar.html
deleted file mode 100644 (file)
index b1fe0aa..0000000
+++ /dev/null
@@ -1,17 +0,0 @@
-<p>
-Convert a CD-ROM or DVD ISO to a tarball.
-</p>
-
-<p>
-Usage is very simple:
-</p>
-
-<pre>
-iso2tar.sh cd.iso output.tar.gz
-</pre>
-
-<p>
-See also <a href="http://libguestfs.org/virt-tar.1.html">virt-tar</a>
-and <a href="https://rwmj.wordpress.com/2010/12/02/tip-uploading-and-downloading/#content">Richard
-Jones's complete list of ways to upload and download files</a>.
-</p>
diff --git a/recipes/iso2tar.sh b/recipes/iso2tar.sh
deleted file mode 100755 (executable)
index b3de8db..0000000
+++ /dev/null
@@ -1,3 +0,0 @@
-#!/bin/sh -
-
-guestfish -a "$1" --ro -m /dev/sda tgz-out / "$2"
diff --git a/recipes/iso2tar.title b/recipes/iso2tar.title
deleted file mode 100644 (file)
index b8e95ac..0000000
+++ /dev/null
@@ -1 +0,0 @@
-Convert a CD-ROM or DVD ISO to a tarball
\ No newline at end of file
diff --git a/recipes/list-apps.example b/recipes/list-apps.example
deleted file mode 100644 (file)
index c37063c..0000000
+++ /dev/null
@@ -1,29 +0,0 @@
-$ list-apps.sh win7.img
-[0] = {
-  app_name: Mozilla Firefox (3.6.12)
-  app_display_name: Mozilla Firefox (3.6.12)
-  app_epoch: 0
-  app_version: 3.6.12 (en-GB)
-  app_release: 
-  app_install_path: C:\Program Files\Mozilla Firefox
-  app_trans_path: 
-  app_publisher: Mozilla
-  app_url: http://www.mozilla.com/en-GB/
-  app_source_package: 
-  app_summary: 
-  app_description: Mozilla Firefox
-}
-[1] = {
-  app_name: VLC media player
-  app_display_name: VLC media player 1.1.5
-  app_epoch: 0
-  app_version: 1.1.5
-  app_release: 
-  app_install_path: C:\Program Files\VideoLAN\VLC
-  app_trans_path: 
-  app_publisher: VideoLAN
-  app_url: http://www.videolan.org/
-  app_source_package: 
-  app_summary: 
-  app_description: 
-}
diff --git a/recipes/list-apps.html b/recipes/list-apps.html
deleted file mode 100644 (file)
index 0a1c4b0..0000000
+++ /dev/null
@@ -1,9 +0,0 @@
-<p>
-The command lists the applications (eg. RPMs, debs, Windows programs)
-installed inside a virtual machine.  It does this using the
-<a href="http://libguestfs.org/guestfs.3.html#inspection">inspection API</a>.
-</p>
-
-<p>
-See also <a href="http://libguestfs.org/virt-inspector.1.html">virt-inspector</a>.
-</p>
diff --git a/recipes/list-apps.sh b/recipes/list-apps.sh
deleted file mode 100755 (executable)
index f781a7d..0000000
+++ /dev/null
@@ -1,6 +0,0 @@
-#!/bin/sh -
-
-eval "$(guestfish --ro -a "$1" --i --listen)"
-root="$(guestfish --remote inspect-get-roots)"
-guestfish --remote inspect-list-applications "$root"
-guestfish --remote exit
diff --git a/recipes/list-apps.title b/recipes/list-apps.title
deleted file mode 100644 (file)
index 104ffe8..0000000
+++ /dev/null
@@ -1 +0,0 @@
-List the apps (eg. RPMs) installed inside a virtual machine
\ No newline at end of file
diff --git a/recipes/list-files.html b/recipes/list-files.html
deleted file mode 100644 (file)
index c8f8c88..0000000
+++ /dev/null
@@ -1,3 +0,0 @@
-<p>
-List the files in a virtual machine.
-</p>
diff --git a/recipes/list-files.sh b/recipes/list-files.sh
deleted file mode 100755 (executable)
index 2f91f28..0000000
+++ /dev/null
@@ -1,5 +0,0 @@
-#!/bin/sh -
-
-guestfish --ro -a "$1" -i find0 / - |
-  tr '\000' '\n' |
-  sort
diff --git a/recipes/list-files.title b/recipes/list-files.title
deleted file mode 100644 (file)
index 0e8c0d0..0000000
+++ /dev/null
@@ -1 +0,0 @@
-List the files and directories in a virtual machine
diff --git a/recipes/product-name.example b/recipes/product-name.example
deleted file mode 100644 (file)
index 55b77fe..0000000
+++ /dev/null
@@ -1,2 +0,0 @@
-$ product-name.sh win.img
-Windows 7 Enterprise
diff --git a/recipes/product-name.html b/recipes/product-name.html
deleted file mode 100644 (file)
index 509ada1..0000000
+++ /dev/null
@@ -1,9 +0,0 @@
-<p>
-Get the string which describes the operating system installed in a
-virtual machine.  This uses the
-<a href="http://libguestfs.org/guestfs.3.html#inspection">inspection API</a>.
-</p>
-
-<p>
-See also <a href="http://libguestfs.org/virt-inspector.1.html">virt-inspector</a>.
-</p>
diff --git a/recipes/product-name.sh b/recipes/product-name.sh
deleted file mode 100755 (executable)
index 7dcc7da..0000000
+++ /dev/null
@@ -1,6 +0,0 @@
-#!/bin/sh -
-
-eval "$(guestfish --ro -a "$1" --i --listen)"
-root="$(guestfish --remote inspect-get-roots)"
-guestfish --remote inspect-get-product-name "$root"
-guestfish --remote exit
diff --git a/recipes/product-name.title b/recipes/product-name.title
deleted file mode 100644 (file)
index ed64090..0000000
+++ /dev/null
@@ -1 +0,0 @@
-Get the operating system "Product Name" string
\ No newline at end of file
diff --git a/recipes/show-devices.example b/recipes/show-devices.example
deleted file mode 100644 (file)
index d93857e..0000000
+++ /dev/null
@@ -1,8 +0,0 @@
-$ show-devices.sh /dev/mapper/Guests-RHEL53PV32
-/dev/sda
-/dev/sda1
-/dev/sda2
-/dev/sda2
-VolGroup00
-/dev/VolGroup00/LogVol00
-/dev/VolGroup00/LogVol01
diff --git a/recipes/show-devices.html b/recipes/show-devices.html
deleted file mode 100644 (file)
index e27443f..0000000
+++ /dev/null
@@ -1,10 +0,0 @@
-<p>
-This very simple script shows how you can display an overview
-of what devices, partitions and LVM data are found in a
-guest image.
-</p>
-
-<p>
-See
-also <a href="http://libguestfs.org/virt-filesystems.1.html">virt-filesystems</a>.
-</p>
diff --git a/recipes/show-devices.sh b/recipes/show-devices.sh
deleted file mode 100755 (executable)
index 6fd2b75..0000000
+++ /dev/null
@@ -1,10 +0,0 @@
-#!/bin/sh -
-
-guestfish -a "$1" <<EOF
-run
-list-devices
-list-partitions
-pvs
-vgs
-lvs
-EOF
diff --git a/recipes/show-devices.title b/recipes/show-devices.title
deleted file mode 100644 (file)
index cadb8ba..0000000
+++ /dev/null
@@ -1 +0,0 @@
-Display the devices, partitions, LVs, VGs and PVs in a guest image
\ No newline at end of file
diff --git a/recipes/squashfs.example b/recipes/squashfs.example
deleted file mode 100644 (file)
index 1e816f3..0000000
+++ /dev/null
@@ -1,16 +0,0 @@
-$ squashfs.sh
-Parallel mksquashfs: Using 4 processors
-Creating 4.0 filesystem on test.sqsh, block size 131072.
-[===============================================================|] 752/752 100%
-
-[...]
-
-Filesystem            Size  Used Avail Use% Mounted on
-/dev/vda1              97M  3.5M   89M   4% /sysroot/output
-
-$ guestfish -a test1.img -m /dev/sda1 ll /
-total 38
-drwxr-xr-x   4 root root  1024 Dec 21 16:52 .
-drwxr-xr-x  23  500  500  4096 Dec 21 16:52 ..
-drwx------   2 root root 12288 Dec 21 16:52 lost+found
-drwxr-xr-x.  2 root root 19456 Dec 18 07:20 man8
diff --git a/recipes/squashfs.html b/recipes/squashfs.html
deleted file mode 100644 (file)
index 53774d5..0000000
+++ /dev/null
@@ -1,22 +0,0 @@
-<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>
-
-<p>
-See also <a href="http://libguestfs.org/virt-tar.1.html">virt-tar</a>
-and <a href="https://rwmj.wordpress.com/2010/12/02/tip-uploading-and-downloading/#content">Richard
-Jones's complete list of ways to upload and download files</a>.
-</p>
diff --git a/recipes/squashfs.sh b/recipes/squashfs.sh
deleted file mode 100755 (executable)
index ac5bfca..0000000
+++ /dev/null
@@ -1,18 +0,0 @@
-#!/bin/sh -
-
-datadir=/usr/share/man/man8
-rm -f test.sqsh
-/sbin/mksquashfs $datadir test.sqsh
-
-guestfish -N fs -a test.sqsh <<'EOF'
-  mkmountpoint /output
-  mkmountpoint /squash
-  mount-options "" /dev/sda1 /output
-  mount-options "" /dev/sdb /squash
-  cp-a /squash /output/man8
-  umount /squash
-  df-h
-  umount /output
-EOF
-
-rm test.sqsh
diff --git a/recipes/squashfs.title b/recipes/squashfs.title
deleted file mode 100644 (file)
index b2701c6..0000000
+++ /dev/null
@@ -1 +0,0 @@
-Mount data in a guest using squashfs
\ No newline at end of file
diff --git a/recipes/tar2vm.example b/recipes/tar2vm.example
deleted file mode 100644 (file)
index 1ca0379..0000000
+++ /dev/null
@@ -1 +0,0 @@
-$ ./tar2vm.sh ../libguestfs-1.0.10.tar.gz /tmp/test.img 10M
diff --git a/recipes/tar2vm.html b/recipes/tar2vm.html
deleted file mode 100644 (file)
index ecb5c55..0000000
+++ /dev/null
@@ -1,25 +0,0 @@
-<p>
-This script shows how you might generate a whole virtual
-machine, or a disk image for a virtual machine, starting
-with a tarball that contains the content for the machine.
-</p>
-
-<p>
-The usage is:
-</p>
-
-<pre>
-tar2vm.sh input.tar.gz output.img 100M
-</pre>
-
-<p>
-where (for example) <code>100M</code> is the size of the output
-disk image.  You have to specify a size that is large enough to contain all
-the contents of the tarball, but not too large that there is too much
-wasted space (unless you want to give the VM extra working space of
-course).
-</p>
-
-<p>
-See also <a href="http://libguestfs.org/virt-make-fs.1.html">virt-make-fs</a>.
-</p>
diff --git a/recipes/tar2vm.sh b/recipes/tar2vm.sh
deleted file mode 100755 (executable)
index 12d8c7a..0000000
+++ /dev/null
@@ -1,11 +0,0 @@
-#!/bin/sh -
-
-guestfish <<EOF
-  alloc $2 $3
-  run
-  part-disk /dev/sda mbr
-  mkfs ext3 /dev/sda1
-  mount /dev/sda1 /
-  tgz-in $1 /
-  umount-all
-EOF
diff --git a/recipes/tar2vm.title b/recipes/tar2vm.title
deleted file mode 100644 (file)
index 051f601..0000000
+++ /dev/null
@@ -1 +0,0 @@
-Make a virtual machine out of a tarball
\ No newline at end of file
diff --git a/recipes/user-quota.html b/recipes/user-quota.html
deleted file mode 100644 (file)
index f58d568..0000000
+++ /dev/null
@@ -1,6 +0,0 @@
-<p>
-A simple way to see which home directory is using most
-space.  Note this just counts the contents of directories
-in /home and doesn't include other files that a user may
-have.
-</p>
diff --git a/recipes/user-quota.sh b/recipes/user-quota.sh
deleted file mode 100755 (executable)
index 1913bbe..0000000
+++ /dev/null
@@ -1,13 +0,0 @@
-#!/bin/sh -
-
-vmfile="$1"
-dir=/home
-
-eval $(guestfish --ro -a "$vmfile" -i --listen)
-
-for d in $(guestfish --remote ls "$dir"); do
-    echo -n "$dir/$d"
-    echo -ne '\t'
-    guestfish --remote du "$dir/$d";
-done | sort -nr -k 2
-guestfish --remote exit
diff --git a/recipes/user-quota.title b/recipes/user-quota.title
deleted file mode 100644 (file)
index 774c166..0000000
+++ /dev/null
@@ -1 +0,0 @@
-See which user is using most space
\ No newline at end of file