On Thu, Dec 01, 2016 at 08:48:53AM -0500, Anton Aylward wrote:
On 11/30/2016 10:29 PM, Andrei Borzenkov wrote:
/etc/fstab is read once when systemd is started. Editing it after that has no effect unless you reload systemd (systemctl daemon-reload) and even then previous units may be carried over.
Hmmm. It occurs to me that what systemd actually does is run a converter that generated unit files for each mount .
I see they are in /run/systemd/generator/
Oh, and I see that the generator also produces dependencies in /run/systemd/generator/local-fs.target.requires
Take a look on your own system and see what you have :-)
So if you edit /etc/fstab you will need to get the generator re-run, as Andrei says, by restarting systemd.
HOWEVER I see no reason that the old mount files will be deleted.
Perhaps this constituents a bug? What do the systemd experts think?
Maybe systemctl list-units shows you all units even those which to not exist on disk nor ramdisk Werner -- "Having a smoking section in a restaurant is like having a peeing section in a swimming pool." -- Edward Burr