Repository navigation
z2term 1.1.16
変更内容
1.1.16: 実行エンジン z2k の上のコンテナで、普通に使うと止まっていたところを直しました。z2-session attach で、繋ぐ前のログも読めるようにしました(1.1.15 の変更も含みます)。
- Debian・Ubuntu などで
apt-get updateが止まる: 「Unknown error executing apt-key」「is not signed」で止まっていたのを直しました。apt が署名を確かめるために起こすシェルの子が落ちていました。 - イメージが起動しない・取り込めない:
- Alpine・Ubuntu などのイメージが「resolv.conf: No such file or directory」「creating /etc/mtab symlink: permission denied」で起動しなかったのを直しました。
- openSUSE などのイメージが「lsetxattr …: operation not permitted」「permission denied」で取り込めなかったのを直しました。
- Go のイメージ(golang など)で
goが Segmentation fault で落ちていたのを直しました。 --read-onlyや--tmpfs /runを付けたコンテナが「statrun/lock: No such file or directory」で起動しなかったのを直しました。
- runc: runc でコンテナを起こすと「not a cgroup file」で止まっていたのを直しました。
- Alpine の Podman: Podman が Segmentation fault で落ちていたのを直しました(スレッドを終えるときの扱い)。
- SELinux の印: Android がファイルに付けている SELinux の印を、OS の中からは見えないようにしました(SELinux を使わない Linux と同じです)。xattr を写すプログラムがその印で止まらなくなります。
- ハードリンク: ハードリンクの代わりに作る写しの権限が、umask で変わっていたのを直しました。
z2-session attach: タブに繋いだとき、それまでのログ(さかのぼれる分)も手元の端末へ流すようにしました。今までは今の画面だけで、繋ぐ前のログをスクロールして読めませんでした(画面を使うソフトの間は今の画面だけです)。
既知の不具合
z2k の上のコンテナで、まだ次のものが動きません。
podman build: たくさんのパッケージを入れるRUNが、Go の「fatal error: entersyscall」で落ちることがあります(同じことをpodman runの中ですると通ります)。- Alpine の Podman: 既定の runc ではコンテナを起動できません。iptables の「MARK」拡張が無いと言われ、nftables にしても runc がコンテナを起こすところで止まります。コンテナは Arch の Podman(crun)で使ってください。
- runc 1.5(Arch の runc): z2k・z2root とも Segmentation fault で落ちます。Arch の Podman の既定の crun では起きません。
--read-only: 起動はしますが、書き込めてしまいます。- 名前引き: build の中と、コンテナ名での名前引き(同じネットワークのコンテナを名前で呼ぶ)ができません。
-pのポートの公開: スマホ側から届かないことがあります。- pod: pod の中で 127.0.0.1 へ繋いでも届きません。
podman top: コンテナの外のプロセスまで出ます(コンテナの中のpsは正しく出ます)。--privileged: Android がアプリに/devの一覧を読ませないので使えません。- Arch の
podman logsが空: Arch の Podman は既定でログを journald に送りますが、OS の中に journald がありません。--log-driver k8s-fileを付けると残ります。
Changes
1.1.16: Containers on the z2k execution engine no longer stop during ordinary use, and z2-session attach now brings the log from before you attached (includes the changes from 1.1.15).
apt-get updatestopping in Debian, Ubuntu and the like: it stopped with "Unknown error executing apt-key" and "is not signed". The shell's child that apt starts to check signatures was crashing.- Images that would not start or pull:
- Alpine, Ubuntu and other images failed with "resolv.conf: No such file or directory" or "creating /etc/mtab symlink: permission denied".
- openSUSE and similar images could not be pulled ("lsetxattr …: operation not permitted", "permission denied").
- In Go images (golang and the like),
gocrashed with a segmentation fault. - Containers with
--read-onlyor--tmpfs /runfailed with "statrun/lock: No such file or directory".
- runc: starting a container with runc stopped with "not a cgroup file".
- Podman on Alpine: Podman crashed with a segmentation fault (how threads are ended).
- SELinux labels: the SELinux labels Android puts on files are no longer visible from inside the OS (as on Linux without SELinux), so programs that copy xattrs no longer stop on them.
- Hard links: copies made in place of hard links no longer have their permissions changed by the umask.
z2-session attach: when you attach to a tab, the earlier log (the scrollback) is sent to your terminal too. Before, only the current screen came across and the log from before attaching could not be scrolled back to (while a full-screen program is running, only the current screen is sent).
Known issues
These still do not work in containers on z2k:
podman build: aRUNthat installs many packages can crash with Go's "fatal error: entersyscall" (the same commands pass insidepodman run).- Podman on Alpine: containers cannot start with the default runc. iptables reports that the "MARK" extension is missing, and with nftables runc stops while starting the container. Use Podman on Arch (crun) for containers.
- runc 1.5 (Arch's runc): crashes with a segmentation fault on both z2k and z2root. Arch's Podman uses crun by default, which is not affected.
--read-only: the container starts, but writing is still allowed.- Name lookup: names do not resolve inside builds, nor container names (calling another container on the same network by name).
- Publishing ports with
-p: they may not be reachable from the phone. - Pods: connecting to 127.0.0.1 inside a pod does not reach the other container.
podman top: lists processes outside the container too (psinside the container is correct).--privileged: not available, because Android does not let apps list/dev.- Empty
podman logson Arch: Arch's Podman sends logs to journald by default, and there is no journald inside the OS. Add--log-driver k8s-fileto keep them.
Full Changelog: v1.1.14...v1.1.16