Skip to content

Commit 393fec4

Browse files
committed
Work around broken screen package install on XCP-ng 9 hosts
Signed-off-by: Gaëtan Lehmann <gaetan.lehmann@vates.tech>
1 parent a35b4dd commit 393fec4

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

lib/vm.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -784,6 +784,9 @@ def is_in_uefi_shell(self) -> bool:
784784
tmp_file = res_host.ssh('mktemp')
785785
session = f"detached-cat-{self.uuid}"
786786
ret = False
787+
# The screen package installation is broken on el10, see https://bugzilla.redhat.com/show_bug.cgi?id=2385964
788+
if res_host.xcp_version.major == 9 and not res_host.ssh('ls -ld /run/screen').startswith('drwxrwxrwx'):
789+
res_host.ssh('dnf reinstall -y screen')
787790
try:
788791
res_host.ssh(f'screen -dmS {session}')
789792
# run `cat` on the pty in a background screen session and redirect to a tmp file.

0 commit comments

Comments
 (0)