|
这个问题大概只有像我瞎折腾debian/armbian中的lxc才会遇见吧(打扰了)
在这里做下记录,省得忘了。
问题是lxc-start -n openwrt -F的时候提示:
- lxc-start: op: conf.c: lxc_setup_ttydir_console: 1739 Read-only file system - Failed to set mode "0110" to "/dev/pts/3"
- lxc-start: op: conf.c: lxc_setup: 3398 Failed to setup console
- lxc-start: op: start.c: do_start: 1218 Failed to setup container "op"
- lxc-start: op: sync.c: __sync_wait: 36 An error occurred in another process (expected sequence number 5)
- lxc-start: op: start.c: __lxc_start: 1999 Failed to spawn container "op"
- lxc-start: op: tools/lxc_start.c: main: 308 The container failed to start
- lxc-start: op: tools/lxc_start.c: main: 313 Additional information can be obtained by setting the --logfile and --logpriority options
复制代码 google(垃圾百度)了下才找到问题所在:(https://forum.turris.cz/t/devpts-readonly-after-lxc-stop/14151)
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 恩,就是op关机时执行了/bin/umount -a -d -r 。-r意思是无法卸载时挂载为只读(ro),对应了[Read-only file system - Failed to set mode "0110" to "/dev/pts/3"]
删除-r就行了。
|
|