History log of /freebsd-current/usr.bin/mkimg/mkimg.1
Revision Date Author Comments
# 7f0dc6e2 12-Mar-2024 Eugene Grosbein <eugen@FreeBSD.org>

mkimg(1): process non-seekable output gracefully

mkimg may make severe load only to fail in the end
if output is non-seekable pipe, socket or FIFO
unless output format is raw disk image.

Check it out and fail early. Make it clear in the manual.

MFC after: 1 week


# d1797fb5 27-Feb-2024 Eugene Grosbein <eugen@FreeBSD.org>

mkimg.1: add new PARTITION SPECIFICATION section

The specification follows a commentary to the function parse_part()
in the source code and the code itself.

MFC after: 3 days


# 1a35ead6 13-Dec-2023 Yu-Hsun Chen <ss109062134@gapp.nthu.edu.tw>

mkimg(1): Fix typo

This is from the Advanced UNIX Programming Course (Fall’23) at NTHU.

MFC after: 3 days
Pull Request: https://github.com/freebsd/freebsd-src/pull/930


# fa9896e0 16-Aug-2023 Warner Losh <imp@FreeBSD.org>

Remove $FreeBSD$: two-line nroff pattern

Remove /^\.\\"\n\.\\"\s*\$FreeBSD\$$\n/


# 3d265fce 09-Oct-2020 Gordon Bergling <gbe@FreeBSD.org>

Fix a few mandoc issues

- skipping paragraph macro: Pp after Sh
- sections out of conventional order: Sh EXAMPLES
- whitespace at end of input line
- normalizing date format


# 19870105 08-Jun-2020 Mateusz Piotrowski <0mp@FreeBSD.org>

Use Fl instead of Ar for long flags

Also, bump date after r361935.

MFC after: 1 week


# c78cd98b 08-Jun-2020 Oleksandr Tymoshenko <gonzo@FreeBSD.org>

Add VHDX support to mkimg(1)

VHDX is the successor of Microsoft's VHD file format. It increases
maximum capacity of the virtual drive to 64TB and introduces features
to better handle power/system failures.

VHDX is the required format for 2nd generation Hyper-V VMs.

Reviewed by: marcel
MFC after: 2 weeks
Differential Revision: https://reviews.freebsd.org/D25184


# 2dcfca63 10-May-2017 Emmanuel Vadot <manu@FreeBSD.org>

mkimg: Add -C argument to specify maximum capacity

Add a -C option to specify a maximum capacity for the final image file.
It is useful to control the size of the generated image for sdcard or
when we will add dynamic size partition.

Add --capacity which is a shorthand to define min and max capacity at
the same time.

Reviewed by: bapt, marcel, wblock (manpages)
Sponsored by: Gandi.net
Differential Revision: https://reviews.freebsd.org/D10509


# 0e630e32 11-Feb-2017 Baptiste Daroussin <bapt@FreeBSD.org>

Add missing section in manpage reference

Reported by: make manlint
MFC after: 2 days


# c30dcf40 17-Oct-2016 Warner Losh <imp@FreeBSD.org>

Add a new flag to mkimg (-a num) to specify the active partition for
those partitioning schemes that have this concept. Implement it as an
override for mbr's setting 0x80 in the flags for the first partition
when we have boot code.

Differential Revision: https://reviews.freebsd.org/D4403


# 005156d7 21-Sep-2016 Alan Somers <asomers@FreeBSD.org>

Update mkimg(1) author's contact info

Reviewed by: marcel, imp
MFC after: 3 days
Sponsored by: Spectra Logic Corp
Differential Revision: https://reviews.freebsd.org/D7991


# 463a577b 20-Oct-2015 Eitan Adler <eadler@FreeBSD.org>

Fix a ton of speelling errors

arc lint is helpful

Reviewed By: allanjude, wblock, #manpages, chris@bsdjunk.com
Differential Revision: https://reviews.freebsd.org/D3337


# 99d43aee 12-Aug-2015 Christian Brueffer <brueffer@FreeBSD.org>

Fix a few mandoc warnings.

MFC after: 1 week


# 8f1d6b69 07-Aug-2015 Marcel Moolenaar <marcel@FreeBSD.org>

Fix typo introduced in previous commit.

Pointed out by: Nikolai Lifanov <lifanov at mail.lifanov.com>


# de932526 07-Aug-2015 Marcel Moolenaar <marcel@FreeBSD.org>

o Fix a typo.
o Describe the file formats mkimg can create.


# e6679c1a 21-Feb-2015 Marcel Moolenaar <marcel@FreeBSD.org>

Add the -c option for specifying the capacity of the disk image. When
a capcity is given, no partitions are required. When no partitions are
given, no scheme needs to be specified either. This makes it possible
to create an entirely empty disk image. To add an empty partitioning
table, specify the scheme.

Bump the version to 20150222.


# 65dd075b 14-Nov-2014 Edward Tomasz Napierala <trasz@FreeBSD.org>

Add missing commas to .Xr.

MFC after: 1 month
Sponsored by: The FreeBSD Foundation


# fb2f6c6c 27-Sep-2014 Marcel Moolenaar <marcel@FreeBSD.org>

Update the usage message and the man page to account for the new long
options. Bump the version number to 20140927.
While here, use explicit fputc() calls to skip a line in the output.
This to avoid having to hunt for extra '\n' characters in the printf
format strings.

MFC after: 1 week
Relnotes: yes


# 752bf469 12-Sep-2014 Marcel Moolenaar <marcel@FreeBSD.org>

Add support for adding empty partition entries. I.e. skip partition
numbers or names. This gives more control over the actual layout and
helps to construct BSD disklabels with /usr or /var at dedicated
partitions.

Obtained from: Juniper Networks, Inc.
MFC after: 3 days
Relnotes: yes


# 264f86e1 04-Jul-2014 Marcel Moolenaar <marcel@FreeBSD.org>

Document the -y option as a unit test option.
Add missing -v (and -y) to the usage message.

Requested by: eadler@


# 91e9fb22 02-Jul-2014 Marcel Moolenaar <marcel@FreeBSD.org>

Add a ful stop after FreeBSD's version in the history section.

Pointed out by: brueffer@ (thanks!)


# 73f28b23 01-Jul-2014 Marcel Moolenaar <marcel@FreeBSD.org>

Prepare for merging to stable/10: update the history section.


# b6829dc8 06-Jun-2014 Joel Dahl <joel@FreeBSD.org>

Minor mdoc improvements.


# aa30ba04 22-May-2014 Marcel Moolenaar <marcel@FreeBSD.org>

Create our temporary file in $TMPDIR, if the environment variable
is set. /tmp otherwise.

Submitted by: Dan McGregor <danismostlikely@gmail.com>


# f0e9dced 15-May-2014 Marcel Moolenaar <marcel@FreeBSD.org>

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.


# a5eb4ea3 29-Mar-2014 Marcel Moolenaar <marcel@FreeBSD.org>

Add mkimg, a utility for making disk images from raw partition contents.
The partitioning scheme can be one of the schemes supported by gpart.

Reviewed by: sjg
Obtained from: Juniper Networks, Inc.