MNAIO: Fix libguestfs appliance bug workaround task

Currently the contents of zz-dash-packages is as follows:

dash rm -rf /var/tmp/.guestfs

It should be:

dash

This fixes that.

Also, the guestfs location that needs removing has a
uuid appended, so we add a wildcard to the removal.

Change-Id: If53f55c901f5abf19bdfff0c0f17c2f9ed69d915
This commit is contained in:
Jesse Pretorius 2018-09-04 18:40:28 +01:00
parent d69c74740d
commit b48b97b115

View File

@ -91,9 +91,9 @@
# https://bugzilla.redhat.com/show_bug.cgi?id=1591617
# https://bugs.launchpad.net/ubuntu/+source/libguestfs/+bug/1615337
- name: Apply workaround for older versions to make guestfish work
shell: >-
shell: |
echo dash > /usr/lib/x86_64-linux-gnu/guestfs/supermin.d/zz-dash-packages
rm -rf /var/tmp/.guestfs
rm -rf /var/tmp/.guestfs*
when:
- "{{ (_libguestfs_version.stdout is version('1.38.1', '<')) or
((_libguestfs_version.stdout is version('1.39.0', '>=')) and