Module Name: src
Committed By: martin
Date: Sun Jul 14 11:25:10 UTC 2019
Modified Files:
src/usr.sbin/sysinst: disks.c
Log Message:
Follow our internal install instructions correctly: newfs when a partition
is marked for it, don't second guess from mount point or similar.
To generate a diff of this commit:
cvs rdiff -u -r1.37 -r1.38 src/usr.sbin/sysinst/disks.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/disks.c
diff -u src/usr.sbin/sysinst/disks.c:1.37 src/usr.sbin/sysinst/disks.c:1.38
--- src/usr.sbin/sysinst/disks.c:1.37 Sat Jul 13 17:13:36 2019
+++ src/usr.sbin/sysinst/disks.c Sun Jul 14 11:25:10 2019
@@ -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 @@ make_filesystems(struct install_partitio
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 @@ make_filesystems(struct install_partitio
&& 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,