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 merging existing partitions into our i...



details:   https://anonhg.NetBSD.org/src/rev/11b25c96425f
branches:  trunk
changeset: 999655:11b25c96425f
user:      martin <martin%NetBSD.org@localhost>
date:      Thu Jun 13 12:44:20 2019 +0000

description:
When merging existing partitions into our install description, mark
them as to-be-mounted.

diffstat:

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

diffs (19 lines):

diff -r 1c93aae15138 -r 11b25c96425f usr.sbin/sysinst/bsddisklabel.c
--- a/usr.sbin/sysinst/bsddisklabel.c   Thu Jun 13 12:31:28 2019 +0000
+++ b/usr.sbin/sysinst/bsddisklabel.c   Thu Jun 13 12:44:20 2019 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: bsddisklabel.c,v 1.10 2019/06/13 12:31:28 martin Exp $ */
+/*     $NetBSD: bsddisklabel.c,v 1.11 2019/06/13 12:44:20 martin Exp $ */
 
 /*
  * Copyright 1997 Piermont Information Systems Inc.
@@ -932,6 +932,9 @@
                wanted->infos[i].size = info->size;
                wanted->infos[i].cur_start = info->start;
                wanted->infos[i].flags &= ~PUIFLAG_EXTEND;
+               if (wanted->infos[i].fs_type != FS_UNUSED &&
+                   wanted->infos[i].type != PT_swap)
+                       wanted->infos[i].instflags |= PUIINST_MOUNT;
                if (is_outer)
                        wanted->infos[i].flags |= PUIFLG_IS_OUTER;
                return;



Home | Main Index | Thread Index | Old Index