nix-community / impermanence

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

Error in home-manager generation activation: Couldn't perform regular umount of [], Attempting lazy unmount #68

Closed c4dr01d closed 1 year ago

c4dr01d commented 2 years ago

Hi, I'm setting up home-manager with impermanence and in configuring I got some issue, the problem is same with #17, different with exist issue, I got the error for fusermount: entry for [] not found in /etc/mtab Here is the executing activate script result:

Starting Home Manager activation
Activating checkFilesChanged
Activating checkLinkTargets
Activating unmountPersistentStoragePaths
Activating createAndMountPersistentStoragePaths
Activating createTargetFileDirectories
Activating writeBoundary
Activating installPackages
replacing old 'home-manager-path'
installing 'home-manager-path'
Activating linkGeneration
Cleaning up orphan links from /home/c4droid
No change so reusing latest profile generation 5
Creating home file links in /home/c4droid
Activating onFilesChange
Activating runUnmountPersistentStoragePaths
Activating reloadSystemd
No files found for bindMount--persistent-home-c4droid-Projects-.service.
No files found for bindMount--persistent-home-c4droid-config-.service.
No files found for bindMount--persistent-home-c4droid-flake-.service.
No files found for bindMount--persistent-home-c4droid-ssh-.service.
Starting: bindMount--persistent-home-c4droid-Projects-.service bindMount--persistent-home-c4droid-config-.service bindMount--persistent-home-c4droid-flake-.service bindMount--persistent-home-c4droid-ssh-.service
Failed to start bindMount--persistent-home-c4droid-Projects-.service: Unit bindMount--persistent-home-c4droid-Projects-.service not found.
Failed to start bindMount--persistent-home-c4droid-config-.service: Unit bindMount--persistent-home-c4droid-config-.service not found.
Failed to start bindMount--persistent-home-c4droid-flake-.service: Unit bindMount--persistent-home-c4droid-flake-.service not found.
Failed to start bindMount--persistent-home-c4droid-ssh-.service: Unit bindMount--persistent-home-c4droid-ssh-.service not found.
fusermount: entry for /home/c4droid/Projects not found in /etc/mtab
fusermount: entry for /home/c4droid/Projects not found in /etc/mtab
fusermount: entry for /home/c4droid/Projects not found in /etc/mtab
Couldn't perform regular unmount of '/home/c4droid/Projects'. Attempting lazy unmount.
fusermount: entry for /home/c4droid/Projects not found in /etc/mtab
fusermount: entry for /home/c4droid/flake not found in /etc/mtab
fusermount: entry for /home/c4droid/flake not found in /etc/mtab
fusermount: entry for /home/c4droid/flake not found in /etc/mtab
Couldn't perform regular unmount of '/home/c4droid/flake'. Attempting lazy unmount.
fusermount: entry for /home/c4droid/flake not found in /etc/mtab
fusermount: entry for /home/c4droid/.ssh not found in /etc/mtab
fusermount: entry for /home/c4droid/.ssh not found in /etc/mtab
fusermount: entry for /home/c4droid/.ssh not found in /etc/mtab
Couldn't perform regular unmount of '/home/c4droid/.ssh'. Attempting lazy unmount.
fusermount: entry for /home/c4droid/.ssh not found in /etc/mtab
fusermount: entry for /home/c4droid/.config not found in /etc/mtab
fusermount: entry for /home/c4droid/.config not found in /etc/mtab
fusermount: entry for /home/c4droid/.config not found in /etc/mtab
Couldn't perform regular unmount of '/home/c4droid/.config'. Attempting lazy unmount.
fusermount: entry for /home/c4droid/.config not found in /etc/mtab
talyz commented 2 years ago

I think the issue might be that you're persisting .config. That's probably not a good idea, since it contains data generated by home-manager, such as the systemd services that fail here. If you want to persist your entire .config, look into using the new users option of the NixOS module instead.