exit 1
fi
- kill_guestfish ()
+ cleanup_guestfish ()
{
- kill $GUESTFISH_PID >/dev/null 2>&1 ||:
+ guestfish --remote -- exit >/dev/null 2>&1 ||:
}
- trap kill_guestfish EXIT
+ trap cleanup_guestfish EXIT ERR
- guestfish --remote run
- # etc.
+ guestfish --remote -- run
+
+ # ...
=head2 REMOTE CONTROL RUN COMMAND HANGING
L<virt-rescue(1)>,
L<virt-resize(1)>,
L<virt-sparsify(1)>,
+L<virt-sysprep(1)>,
L<virt-tar(1)>,
L<virt-tar-in(1)>,
L<virt-tar-out(1)>,
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.
+Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.