I remember looking into this problem. The actual root of the problem lies with udisks timing out (does it hit the cache in the HTTP filesystem? Can't remember). Anyway, that error isn't being cleaned up, so on your second try you have multiple duplicate mounts happening (take a look at the output of mount
after getting the error).
Once I reached the end of my timebox for it, I just opened up PKGBUILD and did this:
% git diff
diff --git a/PKGBUILD b/PKGBUILD
index 3608c4e..04bc7c1 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -407,6 +407,7 @@ prepare() {
udisksctl loop-delete -b "$_testLoopDev" --no-user-interaction
rm test.mount
+ _unprivilegedMountAllowed=false
if [ $_unprivilegedMountAllowed ]; then
echo "allowed"
echo "- Downloading fonts directly"
Adding the _unprivilegedMountAllowed=false
line dbypasses the bug, but the install will take longer (details here explained in PKGBUILD.
Oh yeah, now I see that the root of the problem is that _loopDev=$(udisksctl loop-setup -r ...
line. I found some other folks complaining about it a similar issue, but I'm not sure it's related, since the complaints were old. Here's one: https://github.com/storaged-project/udisks/issues/828
EDIT: Made the diff output less annoying to read.
Pinned Comments
kode54 commented on 2024-02-04 10:43 (UTC) (edited on 2024-02-04 10:45 (UTC) by kode54)
You apparently need to be a member of the
disk
group to mount a filesystem as an otherwise unprivileged user.And log out and back in again.