summaryrefslogtreecommitdiffstats
path: root/usr.bin/mkimg/mkimg.1
diff options
context:
space:
mode:
authormarcel <marcel@FreeBSD.org>2014-05-15 19:19:57 +0000
committermarcel <marcel@FreeBSD.org>2014-05-15 19:19:57 +0000
commit1e7c9712cd4e0f5a5967f6a78701a10575f66e39 (patch)
tree815a694a606913528c7842ee670051627d28f709 /usr.bin/mkimg/mkimg.1
parent38ad38a804640c2e353bf2f34a23b2831220f0e4 (diff)
parent23d837746dbf12563ff632a1a6d38ec3026193e7 (diff)
downloadFreeBSD-src-1e7c9712cd4e0f5a5967f6a78701a10575f66e39.zip
FreeBSD-src-1e7c9712cd4e0f5a5967f6a78701a10575f66e39.tar.gz
MFuser/marcel/mkimg:
Add support for different output formats: 1. The output file that was previously written is now called the raw format. 2. Add the vmdk output format to create VMDK images. When the format is not given, the raw output format is assumed.
Diffstat (limited to 'usr.bin/mkimg/mkimg.1')
-rw-r--r--usr.bin/mkimg/mkimg.117
1 files changed, 15 insertions, 2 deletions
diff --git a/usr.bin/mkimg/mkimg.1 b/usr.bin/mkimg/mkimg.1
index 4505fac..f5144be 100644
--- a/usr.bin/mkimg/mkimg.1
+++ b/usr.bin/mkimg/mkimg.1
@@ -37,6 +37,7 @@
.Op Fl S Ar secsz
.Op Fl T Ar tracksz
.Op Fl b Ar bootcode
+.Op Fl f Ar format
.Op Fl o Ar outfile
.Op Fl v
.Fl s Ar scheme
@@ -56,6 +57,10 @@ The disk image is written to
by default or the file specified with the
.Ar outfile
argument.
+The image file is a raw disk image by default, but the format of the
+image file can be specified with the
+.Ar format
+argument.
.Pp
The disk image can be made bootable by specifying the scheme-specific boot
block contents with the
@@ -106,8 +111,8 @@ option increases the level of output that the
.Nm
utility prints.
.Pp
-For a complete list of supported partitioning schemes or for a detailed
-description of how to specify partitions, run the
+For a complete list of supported partitioning schemes or supported output
+format, or for a detailed description of how to specify partitions, run the
.Nm
utility without any arguments.
.Sh EXAMPLES
@@ -121,6 +126,14 @@ utility as follows:
-p freebsd-ufs:=root-file-system.ufs -p freebsd-swap::1G \
-o gpt.img
.Pp
+The command line given above results in a raw image file.
+This is because no output format was given.
+To create a VMDK image for example, add the
+.Fl f Ar vmdk
+argument to the
+.Nm
+utility and name the output file accordingly.
+.Pp
A nested partitioning scheme is created by running the
.Nm
utility twice.
OpenPOWER on IntegriCloud