Devpts readonly after lxc-stop

I need some help fixing my lxc conf after 3to5 migration.
After issuing lxc-stop -n mylxc I’m unable to start it back:

root@turris:~# lxc-start -F -n mylxc
lxc-start: mylxc: conf.c: lxc_setup_ttydir_console: 1831 Read-only file system - Failed to set mode "0110" to "/dev/pts/3"
                                                                                                                         lxc-start: mylxc: conf.c: lxc_setup: 3625 Failed to setup console

The fix is to issue a
mount -o remount,rw /dev/pts then lxc-start works as expected.

My lxc.conf and default.conf are using the default values:

root@turris:~# cat /etc/lxc/lxc.conf
lxc.lxcpath = /srv/lxc
root@turris:~# cat /etc/lxc/default.conf = veth = br-lan = up = eth0
# Some workarounds
lxc.include = /usr/share/lxc/config/common.conf
lxc.hook.start-host = /usr/share/lxc/hooks/systemd-workaround
# Template to generate fixed MAC address = x2:xx:xx:xx:xx:xx

I’m experiencing the same issue - but with TurrisOS containers only. It starts but when I stop it I’m not able to start any container. I can stop / start Alpine & Ubuntu containers fine.

TOS as well as the container are 5.1.5 - any suggestion on why the TurrisOS container behaves differently?

Just find umount command in rc.d scripts.
For example: in openwrt container
edit /etc/rc.d/K90umount
and remove -r key in
/bin/umount -a -d -r → /bin/umount -a -d

I’ve tried this but my lxc still didn’t start without mount -o remount,rw /dev/pts

Try to find other scripts with “umount” command and “-r” option in “/etc/rc.d”
It helped me.

If there is a systemd in your container, try searching there.