PR 54423: complete initialization of install info for user defined partitions trunk
authormartin <martin@NetBSD.org>
Thu, 01 Aug 2019 17:49:12 +0000
branchtrunk
changeset 453069 2f45093f378b
parent 453068 9c691b182bc3
child 453070 ddd85ba5c2a2
PR 54423: complete initialization of install info for user defined partitions
usr.sbin/sysinst/bsddisklabel.c
--- a/usr.sbin/sysinst/bsddisklabel.c	Thu Aug 01 16:48:06 2019 +0000
+++ b/usr.sbin/sysinst/bsddisklabel.c	Thu Aug 01 17:49:12 2019 +0000
@@ -1,4 +1,4 @@
-/*	$NetBSD: bsddisklabel.c,v 1.24 2019/08/01 16:48:06 martin Exp $	*/
+/*	$NetBSD: bsddisklabel.c,v 1.25 2019/08/01 17:49:12 martin Exp $	*/
 
 /*
  * Copyright 1997 Piermont Information Systems Inc.
@@ -401,8 +401,11 @@
 	p += pset->num;
 	memset(m, 0, sizeof(*m));
 	memset(p, 0, sizeof(*p));
+	p->parts = pset->parts;
 	p->cur_part_id = NO_PART;
 	p->type = PT_root;
+	p->fs_type = FS_BSDFFS;
+	p->fs_version = 2;
 	strncpy(p->mount, new_mp, sizeof(p->mount));
 
 	menu->cursel = pset->num;