Bug 1183493

Summary: RFE: virt-rescue: add a flag to autorun the suggested mount commands and chroot, suggested with --suggest
Product: [Community] Virtualization Tools Reporter: Steffen Vinther Sørensen <svinther>
Component: libguestfsAssignee: Richard W.M. Jones <rjones>
Status: CLOSED UPSTREAM QA Contact:
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: unspecifiedCC: mbooth, mzatko, ptoscano, rbalakri, svinther
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: 2017-03-23 19:15:45 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 Steffen Vinther Sørensen 2015-01-19 08:30:03 UTC
Current procedure:
==================

1. run virt-rescue --suggest
2. copy mount commands to clipboard
3. run virt-rescue
4. paste mount commands
5. chroot to /sysroot


Preferred procedure:
====================

1. run virt-rescue --suggest --autosysroot

Comment 1 Richard W.M. Jones 2015-01-19 14:13:07 UTC
Yup.  Tricky to implement ...

Comment 2 Richard W.M. Jones 2017-03-23 19:15:45 UTC
This has now been implemented, actually much more simply:

$ virt-rescue -a disk.img -i

https://github.com/libguestfs/libguestfs/commit/33d2ae796119ae5dd38e2afcbf1ba4216bd99846

Fixed in libguestfs >= 1.37.1.