Module Name: src Committed By: martin Date: Thu Aug 8 11:41:16 UTC 2019
Modified Files: src/usr.sbin/sysinst: disks.c Log Message: Do not try to fsck partitions we are never going to mount. Found by Andreas Gustafsson's baremetal test bed. To generate a diff of this commit: cvs rdiff -u -r1.48 -r1.49 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.48 src/usr.sbin/sysinst/disks.c:1.49 --- src/usr.sbin/sysinst/disks.c:1.48 Wed Aug 7 10:12:32 2019 +++ src/usr.sbin/sysinst/disks.c Thu Aug 8 11:41:16 2019 @@ -1,4 +1,4 @@ -/* $NetBSD: disks.c,v 1.48 2019/08/07 10:12:32 martin Exp $ */ +/* $NetBSD: disks.c,v 1.49 2019/08/08 11:41:16 martin Exp $ */ /* * Copyright 1997 Piermont Information Systems Inc. @@ -1192,7 +1192,7 @@ make_filesystems(struct install_partitio error = run_program(RUN_DISPLAY | RUN_PROGRESS, "%s %s", newfs, rdev); } - } else { + } else if (ptn->instflags & (PUIINST_MOUNT|PUIINST_BOOT)) { /* We'd better check it isn't dirty */ error = fsck_preen(devdev, fsname, false); }