From 3cd5963b10ee1e2881f2745ca4365dada838af23 Mon Sep 17 00:00:00 2001 From: Adam Williamson Date: Thu, 18 May 2023 15:45:57 -0700 Subject: [PATCH] disks: also authenticate when unmounting Signed-off-by: Adam Williamson --- lib/disks.pm | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/lib/disks.pm b/lib/disks.pm index 127cb0c3..6ec69cad 100644 --- a/lib/disks.pm +++ b/lib/disks.pm @@ -196,7 +196,10 @@ sub mount_partition { # FIXME: handle partition being mounted at /run/udisk2/temp-mount-XXXXX: # https://github.com/storaged-project/udisks/issues/1102 # drop this when that bug is fixed - click_lastmatch if (check_screen("disks_temp_mounted", 5)); + if (check_screen("disks_temp_mounted", 5)) { + click_lastmatch; + authenticate; + } # Click on the Play symbout to mount the partition. assert_and_click("disks_button_mount"); # Authenticate if necessary.