我正在运行系统241系统debian。我为我的rootfs有一个nand闪存ubifs分区,它被分成两个卷( rootfs的/dev/ubi0 0_1和var的/dev/ubi0 0_2):
ubi0:rootfs on / type ubifs (ro,relatime,assert=read-only,ubi=0,vol=1)
/dev/ubi0_2 on /var type ubifs (rw,relatime,assert=read-only,ubi=0,vol=2)systemd-timesyncd在引导时给出了以下错误:
[FAILED] Failed to start Network Time Synchronization.
See 'systemctl status systemd-timesyncd.service' for details.journalctl提供以下内容:
Mar 13 22:46:45 nelson systemd[1]: Stopped Network Time Synchronization.
Mar 13 22:46:45 nelson systemd[1]: systemd-timesyncd.service: Failed to run 'start' task: Read-only file system
Mar 13 22:46:45 nelson systemd[1]: systemd-timesyncd.service: Failed with result 'resources'.如果我将rootfs切换到rw,那么错误就会消失。
下面是ls /var/lib/systemd/timesync/ -l的输出:
-rw-r--r-- 1 systemd-timesync systemd-timesync 0 Mar 13 21:09 /var/lib/systemd/timesync/clock我也看到了一个类似的问题与systemd解决。
发布于 2019-03-25 22:16:27
结果发现,在我的构建(Debian )中,/tmp不是自动设置为tmpfs的。因此,我打开了systemd中的tmp挂载,如下所示:
cp /usr/share/systemd/tmp.mount /etc/systemd/system/
systemctl enable tmp.mount日志记录和解析都需要对/tmp的写访问。
https://unix.stackexchange.com/questions/506184
复制相似问题