Bug 668574
| Summary: | guestfish -i is trying to mount all mounts from /etc/fstab and fails with an error when device doesn't exists | ||||||
|---|---|---|---|---|---|---|---|
| Product: | [Community] Virtualization Tools | Reporter: | Marek Goldmann <mgoldman> | ||||
| Component: | libguestfs | Assignee: | Richard W.M. Jones <rjones> | ||||
| Status: | CLOSED UPSTREAM | QA Contact: | |||||
| Severity: | medium | Docs Contact: | |||||
| Priority: | low | ||||||
| Version: | unspecified | CC: | mbooth, virt-maint | ||||
| Target Milestone: | --- | ||||||
| Target Release: | --- | ||||||
| Hardware: | Unspecified | ||||||
| OS: | Linux | ||||||
| Whiteboard: | |||||||
| Fixed In Version: | Doc Type: | Bug Fix | |||||
| Doc Text: | Story Points: | --- | |||||
| Clone Of: | |||||||
| : | 668611 (view as bug list) | Environment: | |||||
| Last Closed: | 2011-01-11 11:12:17 UTC | Type: | --- | ||||
| Regression: | --- | Mount Type: | --- | ||||
| Documentation: | --- | CRM: | |||||
| Verified Versions: | Category: | --- | |||||
| oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |||||
| Cloudforms Team: | --- | Target Upstream Version: | |||||
| Embargoed: | |||||||
| Bug Depends On: | |||||||
| Bug Blocks: | 668611 | ||||||
| Attachments: |
|
||||||
|
Description
Marek Goldmann
2011-01-10 20:06:56 UTC
This appears to be a bug between the inspection code and guestfish. The inspection code is returning the bogus mountpoints, and guestfish is trying to mount them and failing. Bug also exists in RHEL 6.1, so cloning. Created attachment 472777 [details] Disk image with bogus /etc/fstab for testing The attached disk image may be used to test this bug. First download and uncompress the image: bunzip2 bogus.img.bz2 Then run guestfish against the image: guestfish --ro -a bogus.img -i exit echo $? In the failure case you will get an error like this: libguestfs: error: mount_ro: mount_ro_stub: /dev/sdb3: No such file or directory and guestfish will exit with an error. When the bug is fixed, guestfish will ignore bogus entries in the fstab file, and output will instead look something like this: libguestfs: error: mount_ro: mount_ro_stub: /dev/sdb3: No such file or directory libguestfs: error: mount_ro: /dev/VG/LV1 on /nosuchfile: mount: mount point /sysroot/nosuchfile does not exist guestfish: some filesystems could not be mounted (ignored) Welcome to guestfish, the libguestfs filesystem interactive shell for editing virtual machine filesystems. Type: 'help' for help on commands 'man' to read the manual 'quit' to quit the shell Operating system: Fedora release 14 (Phony) /dev/VG/Root mounted on / /dev/vda1 mounted on /boot /dev/VG/LV1 mounted on /nosuchfile /dev/sdb3 mounted on /var ><fs> |