我想在/tmp没有 fstab 条目的情况下使用tmp.mount
但是在 Ubuntu 20.04 LTS 上,它似乎不起作用。
user@user-x1:~$ systemctl status tmp.mount
Unit tmp.mount could not be found.
user@user-x1:~$ sudo systemctl enable tmp.mount
Failed to enable unit: Unit file tmp.mount does not exist.
user@user-x1:~$ sudo systemctl cat tmp.mount
No files found for tmp.mount.
user@user-x1:~$ cat /usr/share/systemd/tmp.mount
# SPDX-License-Identifier: LGPL-2.1+
#
# This file is part of systemd.
#
# systemd is free software; you can redistribute it and/or modify it
# under the terms of the GNU …Run Code Online (Sandbox Code Playgroud)