Source-Changes-HG archive

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

[src/trunk]: src/usr.sbin/sysinst Do not try to fsck partitions we are never ...



details:   https://anonhg.NetBSD.org/src/rev/f5224df4de57
branches:  trunk
changeset: 458738:f5224df4de57
user:      martin <martin%NetBSD.org@localhost>
date:      Thu Aug 08 11:41:16 2019 +0000

description:
Do not try to fsck partitions we are never going to mount.
Found by Andreas Gustafsson's baremetal test bed.

diffstat:

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

diffs (18 lines):

diff -r d12e04cc2042 -r f5224df4de57 usr.sbin/sysinst/disks.c
--- a/usr.sbin/sysinst/disks.c  Thu Aug 08 09:56:41 2019 +0000
+++ b/usr.sbin/sysinst/disks.c  Thu Aug 08 11:41:16 2019 +0000
@@ -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 @@
                                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);
                }



Home | Main Index | Thread Index | Old Index