From c7d342a94a89324be2f568c940ba089fdd5aa0c0 Mon Sep 17 00:00:00 2001 From: "Richard W.M. Jones" Date: Mon, 16 Jul 2012 16:47:44 +0100 Subject: virt-make-fs: Add --floppy option to make preconfigured vfd's. --- tools/virt-make-fs | 14 ++++++++++++++ 1 file changed, 14 insertions(+) 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=ENE> @@ -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, -- cgit