I would like to have a separate partition for /var and have configured this in /etc/config/fstab
. It mounts perfectly but none of the services are running. For example:
root@OpenWrt:~# service network status
Failed to connect to ubus
Failed to parse json data: unexpected end of data
inactive
If I kill ubusd ( kill -9 $(pidof ubusd)
) the warnings above go away. When I remove my /var mount all services start normally.
It seems to me the /var mounting happens too late in the boot process, breaking services. Has anyone else attempted this? Where should /var be mounted (preinit?)
Thanks!