✏️ 正在编辑: snapd-set-hostname.service
路径:
/snap/core/17284/lib/systemd/system/snapd-set-hostname.service
提示:
您可以编辑任何文件(包括二进制文件),但请注意不当修改可能导致文件损坏。
# Set the true hostname. # # systemd has already set the hostname when this unit executes (based on # the original /etc/hostname). # # However, since that file is on the read-only rootfs and the real # hostname is on the writable partition (/etc/writable bind-mount), it # is necessary to reset the hostname as soon as the true hostname file # is available. [Unit] Description=Set the hostname to the value stored on the writable partition After=etc-writable.mount DefaultDependencies=no [Service] Type=oneshot ExecStart=/bin/hostname -F /etc/hostname
💾 保存文件
← 返回文件管理器