Module Name: src Committed By: martin Date: Tue Jul 9 16:16:33 UTC 2019
Modified Files: src/usr.sbin/sysinst: label.c Log Message: Allow newfs for ext2fs partitions too. To generate a diff of this commit: cvs rdiff -u -r1.8 -r1.9 src/usr.sbin/sysinst/label.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/label.c diff -u src/usr.sbin/sysinst/label.c:1.8 src/usr.sbin/sysinst/label.c:1.9 --- src/usr.sbin/sysinst/label.c:1.8 Sat Jun 22 20:46:07 2019 +++ src/usr.sbin/sysinst/label.c Tue Jul 9 16:16:33 2019 @@ -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 @@ update_edit_ptn_menu(menudesc *m, void * /* 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; }