Bug 812970

Summary: virt-rescue cannot set ><rescue> prompt, on Ubuntu 12.04
Product: [Community] Virtualization Tools Reporter: Richard W.M. Jones <rjones>
Component: libguestfsAssignee: Richard W.M. Jones <rjones>
Status: CLOSED UPSTREAM QA Contact:
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: unspecifiedCC: acathrow, mbooth, ptoscano, virt-maint
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2014-06-10 21:01:12 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Richard W.M. Jones 2012-04-16 17:04:41 UTC
Description of problem:

Welcome to virt-rescue, the libguestfs rescue shell.                            
                                                                                
Note: The contents of / are the rescue appliance.                               
You have to mount the guest's partitions under /sysroot                         
before you can examine them.                                                    
                                                                                
bash: cannot set terminal process group (-1): Inappropriate ioctl for device    
bash: no job control in this shell                                              
groups: cannot find name for group ID 0                                         
I have no name!@(none):/#

^^^ note the prompt should be "><rescue>"                               

Version-Release number of selected component (if applicable):

virt-rescue 1.14.8
(rather old version in Ubuntu)

Comment 1 Pino Toscano 2014-06-02 09:32:22 UTC
I can reproduce this also on Debian systems, both on Wheezy and on a current testing.

Comment 2 Pino Toscano 2014-06-10 21:01:12 UTC
Fixed with
https://github.com/libguestfs/libguestfs/commit/e6a858907fd7851148440dcfc7cbabc5cee75a71
which is in libguestfs >= 1.27.15.