You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Currently, ssh key injection assumes /root is writable, which might not always be the case.
I've worked around this for ephemeral runs by injecting a systemd mount unit for mounting tmpfs to /root/.ssh via --systemd-units. This leaves /root read-only, which keeps it close to the original image:
Unfortunately bcvk to-disk doesn't support --systemd-units, so it just gets stuck at Reached target sshd-keygen.target.
Maybe it might be useful to inject this unit by default, keeping .ssh in tmpfs? The unit itself is really simple:
Activity
ephemeral: Add writable tmpfs overlay over /root/.ssh
ephemeral: Add writable tmpfs overlay over /root/.ssh
ephemeral: Add writable tmpfs overlay over /root/.ssh
ephemeral: Add writable tmpfs overlay over /root/.ssh
ephemeral: Add writable tmpfs overlay over /root/.ssh
ephemeral: Add writable tmpfs overlay over /root/.ssh
ephemeral: Add writable tmpfs overlay over /root/.ssh
ephemeral: Add writable tmpfs overlay over /root/.ssh