[Libguestfs] missing mount cmd confuses guestfish

Olaf Hering olaf at aepfle.de
Sun Aug 18 12:24:06 UTC 2013


I think calling "sh" before "mount" should not confuse guestfish like
that:


# guestfish (1.20.4 on sles11sp3)

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

><fs> add-drive /dev/shm/olaf/vdisk-sles11sp2_full_fate310510-disk0
><fs> launch
 100% ⟦▒⟧ 00:00
><fs> sh "cd / ; chroot / ; /bin/pwd"
libguestfs: error: sh: do_command: you must call 'mount' first to mount the root filesystem
><fs> mount /dev/sda2 /
libguestfs: error: mount: call launch before using this function\n(in guestfish, don't forget to use the 'run' command)
><fs> launch
libguestfs: error: you must call guestfs_add_drive before guestfs_launch
><fs>


Olaf




More information about the Libguestfs mailing list