summaryrefslogtreecommitdiffstats
path: root/usr.bin/mkimg/mkimg.1
diff options
context:
space:
mode:
authormarcel <marcel@FreeBSD.org>2014-09-12 20:05:08 +0000
committermarcel <marcel@FreeBSD.org>2014-09-12 20:05:08 +0000
commit91c4578a03d7a8305fb1a393adee17b31c67f7c2 (patch)
treee2ae0df90ea4c874c414e29a45a00624715d4a92 /usr.bin/mkimg/mkimg.1
parent16a7ea6373cbed61b6bbd51c3846a569f2b91109 (diff)
downloadFreeBSD-src-91c4578a03d7a8305fb1a393adee17b31c67f7c2.zip
FreeBSD-src-91c4578a03d7a8305fb1a393adee17b31c67f7c2.tar.gz
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
Diffstat (limited to 'usr.bin/mkimg/mkimg.1')
-rw-r--r--usr.bin/mkimg/mkimg.121
1 files changed, 20 insertions, 1 deletions
diff --git a/usr.bin/mkimg/mkimg.1 b/usr.bin/mkimg/mkimg.1
index ed14cc8..db492ed 100644
--- a/usr.bin/mkimg/mkimg.1
+++ b/usr.bin/mkimg/mkimg.1
@@ -24,7 +24,7 @@
.\"
.\" $FreeBSD$
.\"
-.Dd July 4, 2014
+.Dd September 12, 2014
.Dt MKIMG 1
.Os
.Sh NAME
@@ -171,6 +171,25 @@ utility as follows:
.Dl % mkimg -s mbr -b /boot/mbr -p freebsd:-'mkimg -s bsd -b /boot/boot \
-p freebsd-ufs:=root-file-system.ufs -p freebsd-swap::1G' -o mbr-bsd.img
.Pp
+To accomodate the need to have partitions named or numbered in a certain
+way, the
+.Nm
+utility allows for the specification of empty partitions.
+For example, to create an image that is compatible with partition layouts
+found in
+.Pa /etc/disktab ,
+the 'd' partition often needs to be skipped.
+This is accomplished by inserting an unused partition after the first 2
+partition specifications.
+It is worth noting at this time that the BSD scheme will automatically
+skip the 'c' partition by virtue of it referring to the entire disk.
+To create an image that is compatible with the qp120at disk, use the
+.Nm
+utility as follows:
+.Dl % mkimg -s bsd -b /boot/boot -p freebsd-ufs:=root-file-system.ufs \
+-p freebsd-swap::20M -p- -p- -p- -p- -p freebsd-ufs:=usr-file-system.ufs \
+-o bsd.img
+.Pp
For partitioning schemes that feature partition labels, the
.Nm
utility supports assigning labels to the partitions specified.
OpenPOWER on IntegriCloud