Skip to content

Commit e487535

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

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
@@ -738,6 +738,9 @@ def is_in_uefi_shell(self) -> bool:
738738
tmp_file = res_host.ssh('mktemp')
739739
session = f"detached-cat-{self.uuid}"
740740
ret = False
741+
# screen install is broken on RHEL, see https://bugzilla.redhat.com/show_bug.cgi?id=2385964
742+
if res_host.pm == 'dnf' and not res_host.ssh('ls -ld /run/screen').startswith('drwxrwxrwx'):
743+
res_host.ssh('dnf reinstall -y screen')
741744
try:
742745
res_host.ssh(f'screen -dmS {session}')
743746
# run `cat` on the pty in a background screen session and redirect to a tmp file.

0 commit comments

Comments
 (0)