Module Name: src
Committed By: martin
Date: Sat Oct 10 18:48:32 UTC 2020
Modified Files:
src/usr.sbin/sysinst: part_edit.c
Log Message:
When creating new partitions for "full disk" use, pass a install target
hint to the partitioning backend (for the outer NetBSD partition).
To generate a diff of this commit:
cvs rdiff -u -r1.19 -r1.20 src/usr.sbin/sysinst/part_edit.c
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: src/usr.sbin/sysinst/part_edit.c
diff -u src/usr.sbin/sysinst/part_edit.c:1.19 src/usr.sbin/sysinst/part_edit.c:1.20
--- src/usr.sbin/sysinst/part_edit.c:1.19 Fri Oct 9 18:33:00 2020
+++ src/usr.sbin/sysinst/part_edit.c Sat Oct 10 18:48:32 2020
@@ -1,4 +1,4 @@
-/* $NetBSD: part_edit.c,v 1.19 2020/10/09 18:33:00 martin Exp $ */
+/* $NetBSD: part_edit.c,v 1.20 2020/10/10 18:48:32 martin Exp $ */
/*
* Copyright (c) 2019 The NetBSD Foundation, Inc.
@@ -991,6 +991,9 @@ parts_use_wholedisk(struct disk_partitio
memset(&info, 0, sizeof(info));
info.start = space.start;
info.size = space.size;
+ info.flags = PTI_INSTALL_TARGET;
+ if (parts->pscheme->secondary_scheme != NULL)
+ info.flags |= PTI_SEC_CONTAINER;
info.nat_type = parts->pscheme->get_generic_part_type(PT_root);
nbsd = parts->pscheme->add_partition(parts, &info, NULL);