Timeshift doesn't umount drive as root when exit (GDBus.Error Device or resource busy) (original) (raw)

Describe the bug
When I launch Timeshift, it obviously mount my backup drive as root. Here is my mount output:
/dev/mapper/luks-1afc320c-xxxxx-xxx7-xxxx3-xxxxx600c on /run/timeshift/backup type ext4 (rw,relatime,stripe=8191)
The bug is when closing Timeshift, this drive is not unmounted.
And so, when you want to "eject" your drive as "standard user". You get this GDBus error:
GDBus.Error:org.freedesktop.UDisks2.Error.Failed:Error locking /dev/dm-3 (/-dev/sdb): Failed to deactivate device: Device or resource busy.

To Reproduce
Steps to reproduce the behavior:

  1. Launch Timeshift.
  2. Enter root password.
  3. Make sure you have an external drive to be mounted by timeshift as root.
  4. Exit Timeshift.

Expected behavior
Timeshift should unmount this drive because it mounted it itself.

System:

Hard drive used to backup:
Toshiba 500GB with LUKS Encryption (version 1)
(I unlock it before launching Timeshift.)

Workaround:
As root or sudo, enter:
# umount /run/timeshift/backup