X-Git-Url: http://git.annexia.org/?p=libguestfs.git;a=blobdiff_plain;f=TODO;h=2833d461c658664f3cb4353e5aab8026c611abc4;hp=65d9fec78154f81e24728c23cce384e4a177f4ab;hb=5c4bf92bc298e078ceccdde603313282d038544c;hpb=005c82b8b89c50f9fb606ce3f5855a0c9b7b1c23 diff --git a/TODO b/TODO index 65d9fec..2833d46 100644 --- a/TODO +++ b/TODO @@ -214,7 +214,7 @@ Quick Perl scripts Currently we can't do Perl "one-liners". ie. The current syntax for any short Perl one-liner would be: - perl -MSys::Guestfs -e '$g = Sys::Guestfs->new(); $g->add_drive ("foo"); $g->launch; $g->wait_ready; $g->mount ("/dev/sda1", "/"); ....' + perl -MSys::Guestfs -e '$g = Sys::Guestfs->new(); $g->add_drive ("foo"); $g->launch; $g->mount ("/dev/sda1", "/"); ....' You can see we're well beyond a single line just getting to the point of adding drives and mounting. @@ -235,7 +235,6 @@ which is equivalent to the following sequence of calls: $h->set_autosync (1); $h->add_drive_ro ($filename); $h->launch (); - $h->wait_ready (); $h->mount_ro (\"/dev/sda1\", \"/\"); Command-line form would be: @@ -255,3 +254,29 @@ ntfsclone Useful imaging tool: http://man.linux-ntfs.org/ntfsclone.8.html + +Standard images +--------------- + +Equip guestfish with some standard images that it can load +quickly, eg: + + load ext2 + +Maybe it's better to create these on the fly? + +virt-rescue pty +--------------- + +See: +http://search.cpan.org/~rgiersig/IO-Tty-1.08/Pty.pm +http://www.perlmonks.org/index.pl?node_id=582185 + +Note that pty requires cooperation inside the C code too (there are +two sides to a pty, and one has to be handled after the fork). + +virt-rescue TERM +---------------- + +Pass TERM from the library, through the kernel command line, to the +init script.