Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/usr.sbin/sysinst An unused partition may not be the install ...
details: https://anonhg.NetBSD.org/src/rev/768312f60cc9
branches: trunk
changeset: 366845:768312f60cc9
user: martin <martin%NetBSD.org@localhost>
date: Sat Jun 18 13:56:41 2022 +0000
description:
An unused partition may not be the install target
diffstat:
usr.sbin/sysinst/disklabel.c | 5 +++--
1 files changed, 3 insertions(+), 2 deletions(-)
diffs (19 lines):
diff -r 05e9ed6ab578 -r 768312f60cc9 usr.sbin/sysinst/disklabel.c
--- a/usr.sbin/sysinst/disklabel.c Sat Jun 18 13:52:42 2022 +0000
+++ b/usr.sbin/sysinst/disklabel.c Sat Jun 18 13:56:41 2022 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: disklabel.c,v 1.44 2021/08/08 21:50:10 andvar Exp $ */
+/* $NetBSD: disklabel.c,v 1.45 2022/06/18 13:56:41 martin Exp $ */
/*
* Copyright 2018 The NetBSD Foundation, Inc.
@@ -780,7 +780,8 @@
parts->l.d_partitions[part].p_fstype == FS_UNUSED)
info->flags |=
PTI_PSCHEME_INTERNAL|PTI_RAW_PART;
- if (info->start == parts->install_target)
+ if (info->start == parts->install_target &&
+ parts->l.d_partitions[part].p_fstype != FS_UNUSED)
info->flags |= PTI_INSTALL_TARGET;
#if RAW_PART == 3
if (part == (RAW_PART-1) && parts->dp.parent != NULL &&
Home |
Main Index |
Thread Index |
Old Index