[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Xen-devel] [PATCH 07/13] ts-*: make all target_cmd[_root] set -e (or +e)



Signed-off-by: Ian Jackson <ian.jackson@xxxxxxxxxxxxx>
---
 ts-redhat-install |    3 ++-
 ts-xen-install    |    1 +
 2 files changed, 3 insertions(+), 1 deletion(-)

diff --git a/ts-redhat-install b/ts-redhat-install
index 3aa8864..a945033 100755
--- a/ts-redhat-install
+++ b/ts-redhat-install
@@ -131,6 +131,7 @@ sub prep () {
                         -boot-info-table);
 
     target_cmd_root($ho, <<END, 60);
+            set -e
             mkdir -p $emptydir
             genisoimage -o $emptyiso @isogen_base $emptydir/.
 END
@@ -139,7 +140,7 @@ END
                           OnReboot => 'preserve',
                           PostImageHook => sub {
         target_cmd_root($ho, <<END, $isotimeout);
-            set -x
+            set -ex
             umount /mnt ||:
             rm -rf $newiso
             mount -o loop -r $gho->{Rimage} /mnt
diff --git a/ts-xen-install b/ts-xen-install
index 70b9e22..fc96516 100755
--- a/ts-xen-install
+++ b/ts-xen-install
@@ -256,6 +256,7 @@ END
 
 sub forbidden () {
     target_cmd_root($ho, <<'END');
+        set +e
        outcome=true
        for f in /usr/local/etc/* /usr/local/var/*; do
            if test -e "$f"; then
-- 
1.7.10.4


_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxx
http://lists.xen.org/xen-devel


 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.