Source-Changes-HG archive

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

[src/trunk]: src/usr.sbin/sysinst Allow newfs for ext2fs partitions too.



details:   https://anonhg.NetBSD.org/src/rev/311a2ba02726
branches:  trunk
changeset: 457638:311a2ba02726
user:      martin <martin%NetBSD.org@localhost>
date:      Tue Jul 09 16:16:33 2019 +0000

description:
Allow newfs for ext2fs partitions too.

diffstat:

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

diffs (30 lines):

diff -r 34d86e4d715a -r 311a2ba02726 usr.sbin/sysinst/label.c
--- a/usr.sbin/sysinst/label.c  Tue Jul 09 16:14:46 2019 +0000
+++ b/usr.sbin/sysinst/label.c  Tue Jul 09 16:16:33 2019 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: label.c,v 1.8 2019/06/22 20:46:07 christos Exp $       */
+/*     $NetBSD: label.c,v 1.9 2019/07/09 16:16:33 martin Exp $ */
 
 /*
  * Copyright 1997 Jonathan Stone
@@ -36,7 +36,7 @@
 
 #include <sys/cdefs.h>
 #if defined(LIBC_SCCS) && !defined(lint)
-__RCSID("$NetBSD: label.c,v 1.8 2019/06/22 20:46:07 christos Exp $");
+__RCSID("$NetBSD: label.c,v 1.9 2019/07/09 16:16:33 martin Exp $");
 #endif
 
 #include <sys/types.h>
@@ -915,8 +915,9 @@
                        /* can only install onto PT_root partitions */
                        continue;
                if (m->opts[i].opt_action == edit_fs_preserve &&
-                   t != FS_BSDFFS && t != FS_BSDLFS && t != FS_APPLEUFS) {
-                       /* Can only newfs UFS and LFS filesystems */
+                   t != FS_BSDFFS && t != FS_BSDLFS && t != FS_APPLEUFS &&
+                   t != FS_MSDOS && t != FS_EX2FS) {
+                       /* Can not newfs this filesystem */
                        edit->wanted->instflags &= ~PUIINST_NEWFS;
                        continue;
                }



Home | Main Index | Thread Index | Old Index