The following seems to be working nicely: $ ./test.sh libguestfs: trace: is_config libguestfs: trace: is_config = 1 libguestfs: trace: add_drive_opts "/tmp/test.img" "format:raw" libguestfs: trace: add_drive_opts = 0 libguestfs: trace: launch libguestfs: trace: launch = 0 libguestfs: trace: pvcreate "/dev/sda" libguestfs: trace: pvcreate = 0 libguestfs: trace: vgcreate "VG" "/dev/sda" libguestfs: trace: vgcreate = 0 libguestfs: trace: lvcreate "LV" "VG" 100 libguestfs: trace: lvcreate = 0 libguestfs: trace: mkfs "ntfs" "/dev/VG/LV" libguestfs: trace: mkfs = 0 libguestfs: trace: lvresize "/dev/VG/LV" 200 libguestfs: trace: lvresize = 0 libguestfs: trace: ntfsresize "/dev/VG/LV" libguestfs: trace: ntfsresize = 0 libguestfs: trace: close libguestfs: trace: internal_autosync libguestfs: trace: internal_autosync = 0 libguestfs: trace: kill_subprocess libguestfs: trace: kill_subprocess = 0
where: $ cat test.sh #!/bin/bash - guestfish -x <<EOF sparse /tmp/test.img 500M run pvcreate /dev/sda vgcreate VG /dev/sda lvcreate LV VG 100 mkfs ntfs /dev/VG/LV lvresize /dev/VG/LV 200 ntfsresize /dev/VG/LV EOF ref: https://www.redhat.com/archives/libguestfs/2011-November/msg00114.html -- To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org