You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
bubblewrap refuses to work with an unreachable automount #541
And place bwrap/flatpak application desktop file into xdg-autostart directory (~/.config/autostart), (← this is unnecessary. just an unreachable automount is enough to reproduce the issue) it'll stuck for a very long time then give up:
bwrap: Can't bind mount /oldroot/var on /newroot/var: Unable to remount recursively with correct flags: No such device
For instance, ALL my flatpak apps refuse to autostart just because an automount exists, the same error spams in journalctl. Disabling the automount fixes the issue.
> bwrap --version
bubblewrap 0.5.0
Activity
ghost changed the title [-]bubblewrap refuses to work with a unreachable automount[/-][+]bubblewrap refuses to work with an unreachable automount[/+]on Nov 16, 2022
I'm affected too. The automount is in /var/mnt. Often, I'm not able to open a file from Nautilus.
bwrap: Can't bind mount /oldroot/var on /newroot/var: Unable to apply mount flags: remount "/newroot/var/mnt/public": No such device
I discovered it was because I had a file from this unreachable mount on my "recent" files (nautilus) and so the mount was triggered very often by gvfsd-recent :
var-mnt-public.automount: Got automount request for /var/mnt/public, triggered by 18002 (gvfsd-recent)
Yeas I confirm that for the issue to happen it is not enough to have an unavailable automount, but that mount point should also be currently accessed while bubblewrap starts.
For instance, I reproduce the problem by running the following command in another shell before running bwrap:
while true; do ls /var/mnt; done
The changes in #751 provide a possible solution or this case, when you pass the new option --not-a-security-boundary.
Activity
[-]bubblewrap refuses to work with a unreachable automount[/-][+]bubblewrap refuses to work with an unreachable automount[/+]yungthorus commentedon Mar 22, 2026
Got affected by this issue. It was manifesting by crashing my file explorer when I didn't have my ssd drive plugged in.
woprandi commentedon Jun 4, 2026
I'm affected too. The automount is in
/var/mnt. Often, I'm not able to open a file from Nautilus.bwrap: Can't bind mount /oldroot/var on /newroot/var: Unable to apply mount flags: remount "/newroot/var/mnt/public": No such deviceI discovered it was because I had a file from this unreachable mount on my "recent" files (nautilus) and so the mount was triggered very often by
gvfsd-recent:var-mnt-public.automount: Got automount request for /var/mnt/public, triggered by 18002 (gvfsd-recent)Clearing the "recent files" history "fixes" it
ao2 commentedon Jun 15, 2026
Yeas I confirm that for the issue to happen it is not enough to have an unavailable automount, but that mount point should also be currently accessed while bubblewrap starts.
For instance, I reproduce the problem by running the following command in another shell before running
bwrap:The changes in #751 provide a possible solution or this case, when you pass the new option
--not-a-security-boundary.smcv commentedon Sep 22, 2026
On a sufficiently new kernel (5.2+) this should be resolved by #754 in bubblewrap 0.13.0 or later. On older kernels it likely isn't solvable.