diff options
author | Richard W.M. Jones <rjones@redhat.com> | 2012-11-03 10:10:12 +0000 |
---|---|---|
committer | Richard W.M. Jones <rjones@redhat.com> | 2012-11-03 10:16:01 +0000 |
commit | 6ac943fbef4fa8386da456048f856a387f941fc2 (patch) | |
tree | 5ed1218160e2d6cd85a1ec9774c41d1fe7b1386e /generator | |
parent | 4bd61ed32213e1f243d6df9ff17edd85dc5e5eb1 (diff) | |
download | libguestfs-6ac943fbef4fa8386da456048f856a387f941fc2.tar.gz libguestfs-6ac943fbef4fa8386da456048f856a387f941fc2.tar.xz libguestfs-6ac943fbef4fa8386da456048f856a387f941fc2.zip |
tests: wipefs: Don't try to wipe mounted filesystem.
Previously wipefs (the utility) allowed this, but it's obviously a bad
thing to do and the new wipefs gives an error if you try it:
wipefs: error: /dev/VG/LV: probing initialization failed: Device or resource busy
Diffstat (limited to 'generator')
-rw-r--r-- | generator/actions.ml | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/generator/actions.ml b/generator/actions.ml index 5c3de524..65d27852 100644 --- a/generator/actions.ml +++ b/generator/actions.ml @@ -8967,7 +8967,8 @@ is I<not> intended that you try to parse the output string." }; optional = Some "wipefs"; tests = [ InitBasicFSonLVM, Always, TestRun ( - [["wipefs"; "/dev/VG/LV"]]) + [["umount"; "/dev/VG/LV"; ""; ""]; + ["wipefs"; "/dev/VG/LV"]]) ]; shortdesc = "wipe a filesystem signature from a device"; longdesc = "\ |