Skip to content

bubblewrap refuses to work with an unreachable automount #541

Closed

Description

If you setup a systemd automount similar to this:

# var-home-user-mount.automount
[Unit]
Description=auto mount
StartLimitIntervalSec=0
Requires=network.target

[Automount]
Where=/var/home/user/mount
TimeoutIdleSec=10min


[Install]
WantedBy=remote-fs.target
# var-home-user-mount.mount
[Unit]
Description=mount
Requires=network.target
StartLimitIntervalSec=0

[Mount]
What=//10.0.0.1/c
Where=/var/home/user/mount
Options=uid=1000,gid=1000,nofail,mfsymlinks
Type=cifs

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

  1. ghost changed the title [-]bubblewrap refuses to work with a unreachable automount[/-] [+]bubblewrap refuses to work with an unreachable automount[/+] on Nov 16, 2022
  2. yungthorus commented on Mar 22, 2026

    @yungthorus

    Got affected by this issue. It was manifesting by crashing my file explorer when I didn't have my ssd drive plugged in.

  3. woprandi commented on Jun 4, 2026

    @woprandi

    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)

    Clearing the "recent files" history "fixes" it

    bwrap --version 
    bubblewrap 0.11.0
    
  4. ao2 commented on Jun 15, 2026

    @ao2
    Contributor

    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.

  5. smcv commented on Sep 22, 2026

    @smcv
    Collaborator

    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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions