summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorRichard Jones <rjones@redhat.com>2009-04-30 23:10:15 +0100
committerRichard Jones <rjones@redhat.com>2009-04-30 23:10:15 +0100
commitb55bf8158f0b7f6b1760b7b3b5f7c1274a149127 (patch)
tree3b5cb91c87033885fac66ecbf9afe64d492a5297 /src
parent0fea1c76712c3c9a8e4309aa0b325e48a0a935b8 (diff)
downloadlibguestfs-b55bf8158f0b7f6b1760b7b3b5f7c1274a149127.tar.gz
libguestfs-b55bf8158f0b7f6b1760b7b3b5f7c1274a149127.tar.xz
libguestfs-b55bf8158f0b7f6b1760b7b3b5f7c1274a149127.zip
Add grub-install command.
Diffstat (limited to 'src')
-rwxr-xr-xsrc/generator.ml9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/generator.ml b/src/generator.ml
index 04445ee6..ba97debe 100755
--- a/src/generator.ml
+++ b/src/generator.ml
@@ -1683,6 +1683,15 @@ How many blocks are zeroed isn't specified (but it's I<not> enough
to securely wipe the device). It should be sufficient to remove
any partition tables, filesystem superblocks and so on.");
+ ("grub_install", (RErr, [String "root"; String "device"]), 86, [],
+ [InitBasicFS, TestOutputTrue (
+ [["grub_install"; "/"; "/dev/sda1"];
+ ["is_dir"; "/boot"]])],
+ "install GRUB",
+ "\
+This command installs GRUB (the Grand Unified Bootloader) on
+C<device>, with the root directory being C<root>.");
+
]