Great to hear!
1: NOTHING IS MOUNTED - IS THERE A LOG?
I have been fiddling around with this, trying to achieve a mount. The system builds, but the mount is never actually done. Below is what I have written (info from the manual on What = and Where =). Is there a log somewhere to see some output from systemd trying to do the mount? I did look in /etc/systemd/system
to see if I could find traces of a .mount file (as described here). I assume that no .mount file for my mount was found due to the mount failing.
systemd.user.mounts = {
syncDir = {
Unit = {
Description = "Example description";
};
Mount = {
What = "/home/dob/nextcloud/syncDir";
Where = "/home/dob/syncDir";
};
};
};
Note, I also saw in the issue in home-manager for supporting mount units that Type = "fuse.bindfs";
was used. Not sure if that is the reason for my mount not working. However, I would love to check some log files, to see what is written there.
NOTE:
I tried looking for errors using journalctl -u syncDir
and journalctl --since "1 hour ago"
, with no luck. I can not see any entries for a failed mount.
2: REQUIRESMOUNTSFOR - SEEMS NIFTY!
I am new to mounting, but I found some info on RequiresMountsFor:
Takes a space-separated list of absolute paths. Automatically adds dependencies of type
Requires=
andAfter=
for all mount units required to access the specified path.
And, I found a page on mounting the file system in a certain order. So, I guess that means that if I have multiple mounts, I can add RequiresMountsFor = "/home/dob/syncDir";
in the Unit section, for the mounts to depend on this one. Seems nifty.