X-Git-Url: http://git.annexia.org/?a=blobdiff_plain;f=src%2Fgenerator.ml;h=da18ccff19a079560a3daa8a2aafa81b83a5c9c1;hb=662617ae725c5e41c24128a037060419fbe4b026;hp=2dfc8cb33deeaedf4f1a2a9c72ff2d341fe33caa;hpb=4dff42aa13dd726fb6b02843d0f4db4b4b330fe3;p=libguestfs.git diff --git a/src/generator.ml b/src/generator.ml index 2dfc8cb..da18ccf 100755 --- a/src/generator.ml +++ b/src/generator.ml @@ -2615,6 +2615,38 @@ Old Linux kernels (2.4 and earlier) used a compressed ext2 filesystem as initrd. We I support the newer initramfs format (compressed cpio files)."); + ("mount_loop", (RErr, [String "file"; String "mountpoint"]), 129, [], + [], + "mount a file using the loop device", + "\ +This command lets you mount C (a filesystem image +in a file) on a mount point. It is entirely equivalent to +the command C."); + + ("mkswap", (RErr, [String "device"]), 130, [], + [InitEmpty, Always, TestRun ( + [["sfdisk"; "/dev/sda"; "0"; "0"; "0"; ","]; + ["mkswap"; "/dev/sda1"]])], + "create a swap partition", + "\ +Create a swap partition on C."); + + ("mkswap_L", (RErr, [String "label"; String "device"]), 131, [], + [InitEmpty, Always, TestRun ( + [["sfdisk"; "/dev/sda"; "0"; "0"; "0"; ","]; + ["mkswap_L"; "hello"; "/dev/sda1"]])], + "create a swap partition with a label", + "\ +Create a swap partition on C with label C