Bug 1057510
Summary: | mount-local should give a clearer error if root is not mounted | ||
---|---|---|---|
Product: | Red Hat Enterprise Linux 6 | Reporter: | yuliu <yuliu> |
Component: | libguestfs | Assignee: | Pino Toscano <ptoscano> |
Status: | CLOSED ERRATA | QA Contact: | Virtualization Bugs <virt-bugs> |
Severity: | unspecified | Docs Contact: | |
Priority: | unspecified | ||
Version: | 6.5 | CC: | huzhan, leiwang, lkong, mbooth, ptoscano, rjones, wshi |
Target Milestone: | rc | ||
Target Release: | --- | ||
Hardware: | Unspecified | ||
OS: | Unspecified | ||
Whiteboard: | |||
Fixed In Version: | libguestfs-1.20.11-3.el6 | Doc Type: | Bug Fix |
Doc Text: | Story Points: | --- | |
Clone Of: | 1057492 | Environment: | |
Last Closed: | 2014-10-14 06:35:06 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: | |||
Bug Depends On: | 1057504 | ||
Bug Blocks: |
Description
yuliu
2014-01-24 09:18:02 UTC
Verified with libguestfs-1.20.11-3.el6 [root@amd-4450b-4-1 ~]# mkdir -p /tmp/mnt [root@amd-4450b-4-1 ~]# guestfish -x -N fs mount-local /tmp/mnt : mount-local-run libguestfs: trace: set_pgroup true libguestfs: trace: set_pgroup = 0 libguestfs: trace: add_drive "test1.img" "format:raw" libguestfs: trace: add_drive = 0 libguestfs: trace: is_config libguestfs: trace: is_config = 1 libguestfs: trace: launch libguestfs: trace: get_tmpdir libguestfs: trace: get_tmpdir = "/tmp" libguestfs: trace: get_cachedir libguestfs: trace: get_cachedir = "/var/tmp" libguestfs: trace: get_cachedir libguestfs: trace: get_cachedir = "/var/tmp" libguestfs: trace: launch = 0 libguestfs: trace: part_disk "/dev/sda" "mbr" libguestfs: trace: part_disk = 0 libguestfs: trace: mkfs "ext2" "/dev/sda1" libguestfs: trace: mkfs = 0 libguestfs: trace: mount_local "/tmp/mnt" libguestfs: trace: mount_local = 0 libguestfs: trace: mount_local_run libguestfs: trace: exists "/" libguestfs: trace: exists = -1 (error) libguestfs: error: you must call 'guestfs_mount' first to mount a filesystem on '/'. Note: '/tmp/mnt' is still mounted. Use 'fusermount -u /tmp/mnt' to clean up. libguestfs: trace: mount_local_run = -1 (error) libguestfs: trace: close libguestfs: trace: internal_autosync libguestfs: trace: internal_autosync = 0 Since the problem described in this bug report should be resolved in a recent advisory, it has been closed with a resolution of ERRATA. For information on the advisory, and where to find the updated files, follow the link below. If the solution does not work for you, open a new bug report. http://rhn.redhat.com/errata/RHBA-2014-1458.html |