Description of problem: running 'guestfish --remote run' in a shell command substitution, i.e., `` or $() would cause the command to hang. Version-Release number of selected component (if applicable): guestfish 1.3.13 How reproducible: Always Steps to Reproduce: 1. $ eval `guestfish -a test.img --listen` 2. a=`guestfish --remote run` Actual results: we get hang with step 2 Expected results: the command should return on completion. Additional info:
Easy to reproduce. Something about guestfs_launch interferes with stdout in a way which is incompatible with the remote protocol. Note this *doesn't* happen with any other command. For example: $ a=`guestfish --remote list-devices` $ echo $a /dev/vda $ a=`guestfish --remote ping-daemon` $ echo $a
Created attachment 414520 [details] strace Output from: strace -o strace.log -f -s 1024 sh -c 'a=`guestfish --remote run`'
Can this one get at least a documentation fix?
Sure. The bug wasn't cloned for 6.2, which is why it had disappeared off the RHEL radar. Cloned as bug 730248.
Documented upstream in commit 6cabc1cd02e181063596b48df55c3f6db51a6bb9. We're not going to fix the bug itself.