Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/distrib/utils/sysinst/arch/i386 allow partitions i-p to be m...
details: https://anonhg.NetBSD.org/src/rev/739a633e0918
branches: trunk
changeset: 534418:739a633e0918
user: grant <grant%NetBSD.org@localhost>
date: Thu Jul 25 14:31:10 2002 +0000
description:
allow partitions i-p to be modified, from Masanori Kanaoka in
port-i386/17689, with minor changes by me.
add_rc_conf() needs a trailing \n.
diffstat:
distrib/utils/sysinst/arch/i386/md.c | 16 ++++++++++++----
1 files changed, 12 insertions(+), 4 deletions(-)
diffs (51 lines):
diff -r ecaa5f8d5ec2 -r 739a633e0918 distrib/utils/sysinst/arch/i386/md.c
--- a/distrib/utils/sysinst/arch/i386/md.c Thu Jul 25 13:13:44 2002 +0000
+++ b/distrib/utils/sysinst/arch/i386/md.c Thu Jul 25 14:31:10 2002 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: md.c,v 1.60 2002/06/14 03:29:28 lukem Exp $ */
+/* $NetBSD: md.c,v 1.61 2002/07/25 14:31:10 grant Exp $ */
/*
* Copyright 1997 Piermont Information Systems Inc.
@@ -277,6 +277,14 @@
bsdlabel[F].pi_fstype = FS_UNUSED;
bsdlabel[G].pi_fstype = FS_UNUSED;
bsdlabel[H].pi_fstype = FS_UNUSED;
+ bsdlabel[I].pi_fstype = FS_UNUSED;
+ bsdlabel[J].pi_fstype = FS_UNUSED;
+ bsdlabel[K].pi_fstype = FS_UNUSED;
+ bsdlabel[L].pi_fstype = FS_UNUSED;
+ bsdlabel[M].pi_fstype = FS_UNUSED;
+ bsdlabel[N].pi_fstype = FS_UNUSED;
+ bsdlabel[O].pi_fstype = FS_UNUSED;
+ bsdlabel[P].pi_fstype = FS_UNUSED;
switch (layoutkind) {
case 1: /* standard: a root, b swap, c/d "unused", e /usr */
@@ -369,7 +377,7 @@
(void)fprintf (f, "\t:nc#%d:nt#%d:ns#%d:\\\n", dlcyl, dlhead, dlsec);
(void)fprintf (f, "\t:sc#%d:su#%d:\\\n", dlhead*dlsec, dlsize);
(void)fprintf (f, "\t:se#%d:%s\\\n", sectorsize, doessf);
- for (i=0; i<8; i++) {
+ for (i=0; i<maxpart; i++) {
(void)fprintf (f, "\t:p%c#%d:o%c#%d:t%c=%s:",
'a'+i, bsdlabel[i].pi_size,
'a'+i, bsdlabel[i].pi_offset,
@@ -378,7 +386,7 @@
(void)fprintf (f, "b%c#%d:f%c#%d",
'a'+i, bsdlabel[i].pi_bsize,
'a'+i, bsdlabel[i].pi_fsize);
- if (i < 7)
+ if (i < maxpart -1)
(void)fprintf (f, "\\\n");
else
(void)fprintf (f, "\n");
@@ -461,7 +469,7 @@
run_prog(RUN_FATAL, NULL, "mv -f %s %s", realto, realfrom);
- add_rc_conf("wscons=YES");
+ add_rc_conf("wscons=YES\n");
/*
* For GENERIC_TINY, do not enable any extra screens or wsmux.
Home |
Main Index |
Thread Index |
Old Index