nix-community / impermanence

Modules to help you handle persistent state on systems with ephemeral root storage [maintainer=@talyz]
MIT License
1.01k stars 76 forks source link

Issues with bindfs: no entry in /etc/mtab #160

Closed diegofariasm closed 5 months ago

diegofariasm commented 5 months ago

I am not trying to do that and i still get the same issue. Somehow, sometimes the bind seems to work fine.

Relevant piece of code:

 home = {
      persistence = {
        "/persist/home/${user}" = {
          directories = [
            {
              directory = "projects";
              method = "symlink";
            }
            {
              directory = ".test";
              method = "symlink";
            }
           "test"
          ];
        };
      };
    };

Output:

Jan 16 18:25:15 tokyo hm-activate-enmei[188296]: Starting Home Manager activation
░░ 
░░ A start job for unit home-manager-enmei.service has begun execution.
░░ 
░░ The job identifier is 4518.
Jan 16 18:25:12 tokyo hm-activate-enmei[188024]: Starting Home Manager activation
Jan 16 18:25:12 tokyo hm-activate-enmei[188024]: Activating checkFilesChanged
Jan 16 18:25:12 tokyo hm-activate-enmei[188024]: Activating cleanEmptyLinkTargets
Jan 16 18:25:12 tokyo hm-activate-enmei[188024]: Activating checkLinkTargets
Jan 16 18:25:12 tokyo hm-activate-enmei[188024]: Activating unmountPersistentStoragePaths
Jan 16 18:25:12 tokyo hm-activate-enmei[188024]: Activating createAndMountPersistentStoragePaths
Jan 16 18:25:12 tokyo hm-activate-enmei[188024]: Activating createTargetFileDirectories
Jan 16 18:25:12 tokyo hm-activate-enmei[188024]: Activating writeBoundary
Jan 16 18:25:12 tokyo hm-activate-enmei[188024]: Activating installPackages
Jan 16 18:25:12 tokyo hm-activate-enmei[188077]: replacing old 'home-manager-path'
Jan 16 18:25:12 tokyo hm-activate-enmei[188077]: installing 'home-manager-path'
Jan 16 18:25:13 tokyo hm-activate-enmei[188077]: building '/nix/store/afs20hr2ml8p2lwrsdpv7yckrg7sn2nz-user-environment.drv'...
Jan 16 18:25:13 tokyo hm-activate-enmei[188024]: Activating linkGeneration
Jan 16 18:25:13 tokyo hm-activate-enmei[188024]: Cleaning up orphan links from /home/enmei
Jan 16 18:25:13 tokyo hm-activate-enmei[188024]: Creating profile generation 4
Jan 16 18:25:13 tokyo hm-activate-enmei[188024]: Creating home file links in /home/enmei
Jan 16 18:25:13 tokyo hm-activate-enmei[188024]: Activating onFilesChange
Jan 16 18:25:13 tokyo hm-activate-enmei[188024]: Activating runUnmountPersistentStoragePaths
Jan 16 18:25:13 tokyo hm-activate-enmei[188169]: fusermount: entry for /home/enmei/test not found in /etc/mtab
Jan 16 18:25:14 tokyo hm-activate-enmei[188275]: fusermount: entry for /home/enmei/test not found in /etc/mtab
Jan 16 18:25:15 tokyo hm-activate-enmei[188290]: fusermount: entry for /home/enmei/test not found in /etc/mtab
Jan 16 18:25:15 tokyo hm-activate-enmei[188024]: Couldn't perform regular unmount of '/home/enmei/test'. Attempting lazy unmount.
Jan 16 18:25:15 tokyo hm-activate-enmei[188291]: fusermount: entry for /home/enmei/test not found in /etc/mtab
Jan 16 18:25:15 tokyo systemd[1]: home-manager-enmei.service: Main process exited, code=exited, status=1/FAILURE

And there, as you can see: all of the symlink ones work. Althoug there seems to be no 'critical' error when i rebuild, the 'test' folder is empty when i look at it.

looking at the folders:

persistent/home/enmei/test ├── test └── test_folder └── test

Then, in the file created by the home-manager impermanence module: /home/enmei/test 0 directories, 0 files

relevant issue

diegofariasm commented 5 months ago

The issue solved itself. Nothing changed, but it just began working.