[Libguestfs] guestfish and luks-format

Olaf Hering olaf at aepfle.de
Mon Jan 20 18:34:01 UTC 2014


On Mon, Jan 20, Richard W.M. Jones wrote:

> For example:
> 
> $ echo 123456 | guestfish -x --keys-from-stdin -N part luks-format /dev/sda1 0

thanks, I changed my code like this:

(
echo "123456"
echo "123456"
) | \
guestfish \
        -x \
        --keys-from-stdin \
        \
luks-format $part 0 : \
luks-open   $part crypt_part

Olaf




More information about the Libguestfs mailing list