[Libguestfs] [v2v PATCH 1/3] test-data: Replace deprecated luks_open with cryptsetup_open.

Laszlo Ersek lersek at redhat.com
Tue Jun 14 11:27:07 UTC 2022


From: "Richard W.M. Jones" <rjones at redhat.com>

The two calls are identical, so this simply avoids a deprecation
warning.

(Picked from guestfs-tools commit 9a27f19269f5 ("test-data: Replace
deprecated luks_open with cryptsetup_open.", 2022-02-28).)

Signed-off-by: Laszlo Ersek <lersek at redhat.com>
---
 test-data/phony-guests/make-fedora-img.pl | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/test-data/phony-guests/make-fedora-img.pl b/test-data/phony-guests/make-fedora-img.pl
index ad30960fa349..488a7d89963c 100755
--- a/test-data/phony-guests/make-fedora-img.pl
+++ b/test-data/phony-guests/make-fedora-img.pl
@@ -195,7 +195,7 @@ EOF
 
     # Put LUKS on the second partition.
     $g->luks_format ('/dev/sda2', 'FEDORA', 0);
-    $g->luks_open ('/dev/sda2', 'FEDORA', 'luks');
+    $g->cryptsetup_open ('/dev/sda2', 'FEDORA', 'luks');
 
     init_lvm_root ('/dev/mapper/luks');
 }
-- 
2.19.1.3.g30247aa5d201




More information about the Libguestfs mailing list