The only reason we do this is to make systemd's unit test suite
pass. https://github.com/systemd/systemd/pull/30527 fixes systemd's
test suite to not fail when /sys is not mounted, so let's drop this
bit.
## v20
+- We don't mount `/sys` anymore in chroot environments.
- We don't use the user's SSH public/private keypair anymore for
`mkosi ssh` but instead use a separate key pair which can be
generated by `mkosi genkey`. Users using `mkosi ssh` will have to run
"--die-with-parent",
"--proc", "/proc",
"--dev", "/dev",
- "--ro-bind", "/sys", "/sys",
"--setenv", "SYSTEMD_OFFLINE", one_zero(network),
]
"--bind", os.getenv("TMPDIR", "/var/tmp"), root / "var/tmp",
"--proc", root / "proc",
"--dev", root / "dev",
- "--ro-bind", "/sys", root / "sys",
# APIVFS generally means chrooting is going to happen so unset TMPDIR just to be safe.
"--unsetenv", "TMPDIR",
]