summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRichard W.M. Jones <rjones@redhat.com>2012-07-16 16:47:44 +0100
committerRichard W.M. Jones <rjones@redhat.com>2012-07-16 16:47:44 +0100
commitc7d342a94a89324be2f568c940ba089fdd5aa0c0 (patch)
tree8325698e0cd8832ccb42c21efaa4f2eded4dd564
parent24b7979ea25cbe5f08494cc4580c1341e78e090e (diff)
downloadlibguestfs-c7d342a94a89324be2f568c940ba089fdd5aa0c0.tar.gz
libguestfs-c7d342a94a89324be2f568c940ba089fdd5aa0c0.tar.xz
libguestfs-c7d342a94a89324be2f568c940ba089fdd5aa0c0.zip
virt-make-fs: Add --floppy option to make preconfigured vfd's.
-rwxr-xr-xtools/virt-make-fs14
1 files changed, 14 insertions, 0 deletions
diff --git a/tools/virt-make-fs b/tools/virt-make-fs
index 0cb2a10a..df67e411 100755
--- a/tools/virt-make-fs
+++ b/tools/virt-make-fs
@@ -182,6 +182,15 @@ Enable debugging information.
=cut
+=item B<--floppy>
+
+Create a virtual floppy disk.
+
+Currently this preselects the size (1440K), partition type (MBR) and
+filesystem type (VFAT). In future it may also choose the geometry.
+
+=cut
+
my $size;
=item B<--size=E<lt>NE<gt>>
@@ -279,6 +288,11 @@ For MBR, virt-make-fs sets the partition type byte automatically.
GetOptions ("help|?" => \$help,
"version" => \$version,
"debug" => \$debug,
+ "floppy" => sub {
+ $size = "1440K";
+ $partition = "mbr";
+ $type = "vfat";
+ },
"s|size=s" => \$size,
"F|format=s" => \$format,
"t|type=s" => \$type,