summaryrefslogtreecommitdiffstats
path: root/sbin/bsdlabel/bsdlabel.c
diff options
context:
space:
mode:
authorru <ru@FreeBSD.org>2003-02-23 01:48:42 +0000
committerru <ru@FreeBSD.org>2003-02-23 01:48:42 +0000
commit5ecd4995a53ef83a3ed6cc0e466632e66719f8c0 (patch)
treecfae9526af95d4076b33edc5d378ef6e2bfd3a5f /sbin/bsdlabel/bsdlabel.c
parent8b5b8ec6a76033148b7266d572cd6e0ec6ddd60b (diff)
downloadFreeBSD-src-5ecd4995a53ef83a3ed6cc0e466632e66719f8c0.zip
FreeBSD-src-5ecd4995a53ef83a3ed6cc0e466632e66719f8c0.tar.gz
Deal with vestiges of d_boot[01].
Diffstat (limited to 'sbin/bsdlabel/bsdlabel.c')
-rw-r--r--sbin/bsdlabel/bsdlabel.c18
1 files changed, 2 insertions, 16 deletions
diff --git a/sbin/bsdlabel/bsdlabel.c b/sbin/bsdlabel/bsdlabel.c
index ecb1705..88604d3 100644
--- a/sbin/bsdlabel/bsdlabel.c
+++ b/sbin/bsdlabel/bsdlabel.c
@@ -256,18 +256,6 @@ main(int argc, char *argv[])
break;
case RESTORE:
- if (installboot && argc == 3) {
- makelabel(argv[2], 0, &lab);
- argc--;
-
- /*
- * We only called makelabel() for its side effect
- * of setting the bootstrap file names. Discard
- * all changes to `lab' so that all values in the
- * final label come from the ASCII label.
- */
- bzero((char *)&lab, sizeof(lab));
- }
if (argc != 2)
usage();
if (!(t = fopen(argv[1], "r")))
@@ -312,9 +300,7 @@ main(int argc, char *argv[])
}
/*
- * Construct a prototype disklabel from /etc/disktab. As a side
- * effect, set the names of the primary and secondary boot files
- * if specified.
+ * Construct a prototype disklabel from /etc/disktab.
*/
void
makelabel(const char *type, const char *name, struct disklabel *lp)
@@ -1522,7 +1508,7 @@ usage(void)
"\t\t(to install boot program with existing on-disk label)",
" disklabel -w -B [-n] [ -b bootprog ] disk type [ packid ]",
"\t\t(to write label and install boot program)",
- " disklabel -R -B [-n] [ -b bootprog ] disk protofile [ type ]",
+ " disklabel -R -B [-n] [ -b bootprog ] disk protofile",
"\t\t(to restore label and install boot program)"
);
exit(1);
OpenPOWER on IntegriCloud