Source-Changes-HG archive

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

[src/trunk]: src/usr.sbin/sysinst Follow our internal install instructions co...



details:   https://anonhg.NetBSD.org/src/rev/742f521617f0
branches:  trunk
changeset: 457713:742f521617f0
user:      martin <martin%NetBSD.org@localhost>
date:      Sun Jul 14 11:25:10 2019 +0000

description:
Follow our internal install instructions correctly: newfs when a partition
is marked for it, don't second guess from mount point or similar.

diffstat:

 usr.sbin/sysinst/disks.c |  10 ++++------
 1 files changed, 4 insertions(+), 6 deletions(-)

diffs (31 lines):

diff -r cea8c4de5cfc -r 742f521617f0 usr.sbin/sysinst/disks.c
--- a/usr.sbin/sysinst/disks.c  Sun Jul 14 10:43:01 2019 +0000
+++ b/usr.sbin/sysinst/disks.c  Sun Jul 14 11:25:10 2019 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: disks.c,v 1.37 2019/07/13 17:13:36 martin Exp $ */
+/*     $NetBSD: disks.c,v 1.38 2019/07/14 11:25:10 martin Exp $ */
 
 /*
  * Copyright 1997 Piermont Information Systems Inc.
@@ -1053,9 +1053,8 @@
 
        for (i = 0; i < install->num; i++) {
                /*
-                * newfs and mount. For now, process only BSD filesystems.
-                * but if this is the mounted-on root, has no mount
-                * point defined, or is marked preserve, don't touch it!
+                * Newfs all file systems mareked as needing this.
+                * Mount the ones that have a mountpoint in the target.
                 */
                ptn = &install->infos[i];
                parts = ptn->parts;
@@ -1068,8 +1067,7 @@
                    && is_active_rootpart(devdev, partno))
                        continue;
 
-               if ((ptn->instflags & PUIINST_MOUNT) == 0)
-                       /* No mount point */
+               if (!(ptn->instflags & PUIINST_NEWFS))
                        continue;
 
                parts->pscheme->get_part_device(parts, ptn->cur_part_id,



Home | Main Index | Thread Index | Old Index