How can I disable a unit generated by systemd-fstab-generator
or systemd.generator
?
Here's my attempt:
$ systemctl is-enabled media-backup.automount
generated
$ echo $?
0
$ sudo systemctl disable media-backup.automount
$ echo $?
0
$ systemctl is-enabled media-backup.automount
generated
$ echo $?
0
As you can see from the exit status 0
the .automount
unit is still enabled.
systemd
will still managenoauto
entries under circumstances which are poorly defined, and which thesystemd
maintainers refuse to fix. https://github.com/systemd/systemd/issues/1741 – Julie in Austin May 29 '20 at 15:23