Commit Graph

10 Commits

Author SHA1 Message Date
Alberto Faria a0c4f425c1 exec: Tolerate "pseudo-terminal will not be allocated" errors
Errors like the following sometimes occur when ssh'ing during boot:

    "Pseudo-terminal will not be allocated because stdin is not a terminal"

Signed-off-by: Alberto Faria <afaria@redhat.com>
2024-05-08 21:15:39 +01:00
Alberto Faria 167a5c955d exec: Tolerate "system is booting up" errors
When attempting first ssh, tolerate errors like the following:

    "System is booting up. Unprivileged users are not permitted to log
    in yet. Please come back later. For technical details, see
    pam_nologin(8)."

Signed-off-by: Alberto Faria <afaria@redhat.com>
2024-04-28 04:26:10 +01:00
Alberto Faria 0afc66b56d create: Remove lock files left around when container is killed
Signed-off-by: Alberto Faria <afaria@redhat.com>
2024-04-28 04:26:10 +01:00
Alberto Faria 53ef61e843 create: Avoid undefining domain on restart
Signed-off-by: Alberto Faria <afaria@redhat.com>
2024-04-28 04:26:09 +01:00
Alberto Faria 530fc22d44 create: Remove /crun-vm/ssh-successful prior to starting entrypoint
Make sure a quick podman-exec after a container restart doesn't see the
file before it is deleted.

Signed-off-by: Alberto Faria <afaria@redhat.com>
2024-04-28 00:46:20 +01:00
Alberto Faria f17c1fe88b exec: Avoid "remote host identification has changed" warning
Signed-off-by: Alberto Faria <afaria@redhat.com>
2024-04-13 23:08:17 +01:00
Alberto Faria 4115843e8f exec: Fix ssh readiness check after reboot
Signed-off-by: Alberto Faria <afaria@redhat.com>
2024-04-13 23:08:17 +01:00
Alberto Faria adb8e2c302 exec: Allow customizing timeout
Signed-off-by: Alberto Faria <afaria@redhat.com>
2024-04-13 23:08:17 +01:00
Alberto Faria caa191342a scripts/exec.sh: Avoid asking for passphrase more than once
Signed-off-by: Alberto Faria <afaria@redhat.com>
2024-03-18 17:07:11 +00:00
Alberto Faria 22c69da74f Move container scripts into a scripts/ directory
Signed-off-by: Alberto Faria <afaria@redhat.com>
2024-02-16 18:41:14 +00:00