Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/usr.sbin/sysinst When creating new partitions for "full disk...



details:   https://anonhg.NetBSD.org/src/rev/62a9ccdb6eb6
branches:  trunk
changeset: 944769:62a9ccdb6eb6
user:      martin <martin%NetBSD.org@localhost>
date:      Sat Oct 10 18:48:32 2020 +0000

description:
When creating new partitions for "full disk" use, pass a install target
hint to the partitioning backend (for the outer NetBSD partition).

diffstat:

 usr.sbin/sysinst/part_edit.c |  5 ++++-
 1 files changed, 4 insertions(+), 1 deletions(-)

diffs (19 lines):

diff -r 64d5c8f2d007 -r 62a9ccdb6eb6 usr.sbin/sysinst/part_edit.c
--- a/usr.sbin/sysinst/part_edit.c      Sat Oct 10 18:18:04 2020 +0000
+++ b/usr.sbin/sysinst/part_edit.c      Sat Oct 10 18:48:32 2020 +0000
@@ -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 @@
        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);
 



Home | Main Index | Thread Index | Old Index