summaryrefslogtreecommitdiffstats
path: root/recipes
diff options
context:
space:
mode:
authorRichard Jones <rjones@redhat.com>2009-04-26 07:05:12 +0100
committerRichard Jones <rjones@redhat.com>2009-04-26 07:05:12 +0100
commite65e1d5d0053431702bc99e5d59725324adf1af5 (patch)
tree149db39ed9f54bc4946b7668e4c7e7db1ecb7b5f /recipes
parent0583c8c2c3500715fe5757d2e2fcb0fdc019c2ae (diff)
downloadlibguestfs-e65e1d5d0053431702bc99e5d59725324adf1af5.tar.gz
libguestfs-e65e1d5d0053431702bc99e5d59725324adf1af5.tar.xz
libguestfs-e65e1d5d0053431702bc99e5d59725324adf1af5.zip
Don't echo output in scripts.
Diffstat (limited to 'recipes')
-rw-r--r--recipes/clone.example3
-rw-r--r--recipes/rpmqa.example10
-rw-r--r--recipes/show-devices.example6
-rw-r--r--recipes/tar2vm.example9
4 files changed, 6 insertions, 22 deletions
diff --git a/recipes/clone.example b/recipes/clone.example
index 8e8a1c1a..40b4df1b 100644
--- a/recipes/clone.example
+++ b/recipes/clone.example
@@ -2,9 +2,6 @@ $ 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
diff --git a/recipes/rpmqa.example b/recipes/rpmqa.example
index 44eb6492..837186a5 100644
--- a/recipes/rpmqa.example
+++ b/recipes/rpmqa.example
@@ -1,14 +1,14 @@
$ ./rpmqa.sh RHEL53PV32.img /dev/VolGroup00/LogVol00 > /tmp/rpms
$ ls -l /tmp/rpms
--rw-rw-r--. 1 rjones rjones 17324 2009-04-26 06:47 /tmp/rpms
+-rw-rw-r--. 1 rjones rjones 17228 2009-04-26 07:02 /tmp/rpms
$ head /tmp/rpms
-add "RHEL53PV32.img"
-run
-mount-ro "/dev/VolGroup00/LogVol00" /
-command "rpm -qa"
tzdata-2008i-1.el5
nash-5.1.19.6-44
gnome-mime-data-2.4.2-3.1
dump-0.4b41-2.fc6
emacs-leim-21.4-20.el5
rootfiles-8.1-1.1.1
+glibc-2.5-34
+popt-1.10.2.3-9.el5
+libart_lgpl-2.3.17-4
+audit-libs-1.7.7-6.el5
diff --git a/recipes/show-devices.example b/recipes/show-devices.example
index ccab9ef4..d93857e5 100644
--- a/recipes/show-devices.example
+++ b/recipes/show-devices.example
@@ -1,14 +1,8 @@
$ show-devices.sh /dev/mapper/Guests-RHEL53PV32
-run
-list-devices
/dev/sda
-list-partitions
/dev/sda1
/dev/sda2
-pvs
/dev/sda2
-vgs
VolGroup00
-lvs
/dev/VolGroup00/LogVol00
/dev/VolGroup00/LogVol01
diff --git a/recipes/tar2vm.example b/recipes/tar2vm.example
index 97a054f4..1ca03795 100644
--- a/recipes/tar2vm.example
+++ b/recipes/tar2vm.example
@@ -1,8 +1 @@
-tar2vm.sh ../libguestfs-1.0.10.tar.gz /tmp/test.img 10M
-alloc /tmp/test.img 10M
-run
-sfdisk /dev/sda 0 0 0 ,
-mkfs ext3 /dev/sda1
-mount /dev/sda1 /
-tgz-in ../libguestfs-1.0.10.tar.gz /
-umount-all
+$ ./tar2vm.sh ../libguestfs-1.0.10.tar.gz /tmp/test.img 10M