Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/distrib/utils/sysinst Add a new hook, md_pre_mount(), that i...
details: https://anonhg.NetBSD.org/src/rev/af29a3693a08
branches: trunk
changeset: 770960:af29a3693a08
user: martin <martin%NetBSD.org@localhost>
date: Fri Nov 04 11:27:00 2011 +0000
description:
Add a new hook, md_pre_mount(), that is called after preparation of
the target filesystem, but before mounting it. Use this on sparc64
to install the primary boot block, but install the secondary boot
(/ofwboot) later.
This allows sysinst to run at securelevel 1 (as long as we don't do an
upgrade install on the hard disk we booted from).
diffstat:
distrib/utils/sysinst/arch/acorn32/md.c | 8 +++++++-
distrib/utils/sysinst/arch/alpha/md.c | 8 +++++++-
distrib/utils/sysinst/arch/amiga/md.c | 8 +++++++-
distrib/utils/sysinst/arch/arc/md.c | 8 +++++++-
distrib/utils/sysinst/arch/atari/md.c | 8 +++++++-
distrib/utils/sysinst/arch/bebox/md.c | 8 +++++++-
distrib/utils/sysinst/arch/cats/md.c | 8 +++++++-
distrib/utils/sysinst/arch/cobalt/md.c | 8 +++++++-
distrib/utils/sysinst/arch/emips/md.c | 8 +++++++-
distrib/utils/sysinst/arch/evbarm/md.c | 8 +++++++-
distrib/utils/sysinst/arch/evbmips/md.c | 8 +++++++-
distrib/utils/sysinst/arch/evbppc/md.c | 8 +++++++-
distrib/utils/sysinst/arch/evbsh3/md.c | 8 +++++++-
distrib/utils/sysinst/arch/ews4800mips/md.c | 8 +++++++-
distrib/utils/sysinst/arch/hp300/md.c | 8 +++++++-
distrib/utils/sysinst/arch/hp700/md.c | 8 +++++++-
distrib/utils/sysinst/arch/hpcarm/md.c | 8 +++++++-
distrib/utils/sysinst/arch/hpcmips/md.c | 8 +++++++-
distrib/utils/sysinst/arch/hpcsh/md.c | 8 +++++++-
distrib/utils/sysinst/arch/i386/md.c | 8 +++++++-
distrib/utils/sysinst/arch/landisk/md.c | 8 +++++++-
distrib/utils/sysinst/arch/luna68k/md.c | 8 +++++++-
distrib/utils/sysinst/arch/mac68k/md.c | 8 +++++++-
distrib/utils/sysinst/arch/macppc/md.c | 8 +++++++-
distrib/utils/sysinst/arch/mipsco/md.c | 8 +++++++-
distrib/utils/sysinst/arch/mvme68k/md.c | 8 +++++++-
distrib/utils/sysinst/arch/news68k/md.c | 8 +++++++-
distrib/utils/sysinst/arch/newsmips/md.c | 8 +++++++-
distrib/utils/sysinst/arch/ofppc/md.c | 8 +++++++-
distrib/utils/sysinst/arch/pmax/md.c | 8 +++++++-
distrib/utils/sysinst/arch/prep/md.c | 8 +++++++-
distrib/utils/sysinst/arch/sandpoint/md.c | 8 +++++++-
distrib/utils/sysinst/arch/sgimips/md.c | 8 +++++++-
distrib/utils/sysinst/arch/shark/md.c | 8 +++++++-
distrib/utils/sysinst/arch/sparc/md.c | 8 +++++++-
distrib/utils/sysinst/arch/sparc64/md.c | 28 ++++++++++++++++++++++++----
distrib/utils/sysinst/arch/sparc64/msg.md.de | 6 +++++-
distrib/utils/sysinst/arch/sparc64/msg.md.en | 6 +++++-
distrib/utils/sysinst/arch/sparc64/msg.md.es | 6 +++++-
distrib/utils/sysinst/arch/sparc64/msg.md.fr | 6 +++++-
distrib/utils/sysinst/arch/sparc64/msg.md.pl | 6 +++++-
distrib/utils/sysinst/arch/vax/md.c | 7 ++++++-
distrib/utils/sysinst/arch/x68k/md.c | 7 ++++++-
distrib/utils/sysinst/arch/zaurus/md.c | 7 ++++++-
distrib/utils/sysinst/defs.h | 3 ++-
distrib/utils/sysinst/disks.c | 6 +++++-
46 files changed, 319 insertions(+), 49 deletions(-)
diffs (truncated from 926 to 300 lines):
diff -r bc7f24458ac5 -r af29a3693a08 distrib/utils/sysinst/arch/acorn32/md.c
--- a/distrib/utils/sysinst/arch/acorn32/md.c Fri Nov 04 02:57:28 2011 +0000
+++ b/distrib/utils/sysinst/arch/acorn32/md.c Fri Nov 04 11:27:00 2011 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: md.c,v 1.28 2011/09/14 12:35:19 christos Exp $ */
+/* $NetBSD: md.c,v 1.29 2011/11/04 11:27:01 martin Exp $ */
/*
* Copyright 1997 Piermont Information Systems Inc.
@@ -348,3 +348,9 @@
return (sum - ((sum - 1) / 255) * 255);
}
+
+int
+md_pre_mount()
+{
+ return 0;
+}
diff -r bc7f24458ac5 -r af29a3693a08 distrib/utils/sysinst/arch/alpha/md.c
--- a/distrib/utils/sysinst/arch/alpha/md.c Fri Nov 04 02:57:28 2011 +0000
+++ b/distrib/utils/sysinst/arch/alpha/md.c Fri Nov 04 11:27:00 2011 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: md.c,v 1.50 2011/04/04 08:30:16 mbalmer Exp $ */
+/* $NetBSD: md.c,v 1.51 2011/11/04 11:27:01 martin Exp $ */
/*
* Copyright 1997 Piermont Information Systems Inc.
@@ -195,3 +195,9 @@
md_post_newfs();
return 1;
}
+
+int
+md_pre_mount()
+{
+ return 0;
+}
diff -r bc7f24458ac5 -r af29a3693a08 distrib/utils/sysinst/arch/amiga/md.c
--- a/distrib/utils/sysinst/arch/amiga/md.c Fri Nov 04 02:57:28 2011 +0000
+++ b/distrib/utils/sysinst/arch/amiga/md.c Fri Nov 04 11:27:00 2011 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: md.c,v 1.24 2011/04/04 08:30:18 mbalmer Exp $ */
+/* $NetBSD: md.c,v 1.25 2011/11/04 11:27:01 martin Exp $ */
/*
* Copyright 1997 Piermont Information Systems Inc.
@@ -139,3 +139,9 @@
md_post_newfs();
return 1;
}
+
+int
+md_pre_mount()
+{
+ return 0;
+}
diff -r bc7f24458ac5 -r af29a3693a08 distrib/utils/sysinst/arch/arc/md.c
--- a/distrib/utils/sysinst/arch/arc/md.c Fri Nov 04 02:57:28 2011 +0000
+++ b/distrib/utils/sysinst/arch/arc/md.c Fri Nov 04 11:27:00 2011 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: md.c,v 1.35 2011/04/04 08:30:19 mbalmer Exp $ */
+/* $NetBSD: md.c,v 1.36 2011/11/04 11:27:01 martin Exp $ */
/*
* Copyright 1997 Piermont Information Systems Inc.
@@ -393,3 +393,9 @@
bootsize = part[0].mbrp_size;
return 1;
}
+
+int
+md_pre_mount()
+{
+ return 0;
+}
diff -r bc7f24458ac5 -r af29a3693a08 distrib/utils/sysinst/arch/atari/md.c
--- a/distrib/utils/sysinst/arch/atari/md.c Fri Nov 04 02:57:28 2011 +0000
+++ b/distrib/utils/sysinst/arch/atari/md.c Fri Nov 04 11:27:00 2011 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: md.c,v 1.26 2011/04/04 08:30:19 mbalmer Exp $ */
+/* $NetBSD: md.c,v 1.27 2011/11/04 11:27:01 martin Exp $ */
/*
* Copyright 1997 Piermont Information Systems Inc.
@@ -180,3 +180,9 @@
md_post_newfs();
return 1;
}
+
+int
+md_pre_mount()
+{
+ return 0;
+}
diff -r bc7f24458ac5 -r af29a3693a08 distrib/utils/sysinst/arch/bebox/md.c
--- a/distrib/utils/sysinst/arch/bebox/md.c Fri Nov 04 02:57:28 2011 +0000
+++ b/distrib/utils/sysinst/arch/bebox/md.c Fri Nov 04 11:27:00 2011 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: md.c,v 1.56 2011/08/25 15:42:33 kiyohara Exp $ */
+/* $NetBSD: md.c,v 1.57 2011/11/04 11:27:01 martin Exp $ */
/*
* Copyright 1997 Piermont Information Systems Inc.
@@ -155,3 +155,9 @@
{
return mbr_use_wholedisk(mbri);
}
+
+int
+md_pre_mount()
+{
+ return 0;
+}
diff -r bc7f24458ac5 -r af29a3693a08 distrib/utils/sysinst/arch/cats/md.c
--- a/distrib/utils/sysinst/arch/cats/md.c Fri Nov 04 02:57:28 2011 +0000
+++ b/distrib/utils/sysinst/arch/cats/md.c Fri Nov 04 11:27:00 2011 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: md.c,v 1.23 2011/04/04 08:30:20 mbalmer Exp $ */
+/* $NetBSD: md.c,v 1.24 2011/11/04 11:27:01 martin Exp $ */
/*
* Copyright 1997 Piermont Information Systems Inc.
@@ -200,3 +200,9 @@
md_post_newfs();
return 1;
}
+
+int
+md_pre_mount()
+{
+ return 0;
+}
diff -r bc7f24458ac5 -r af29a3693a08 distrib/utils/sysinst/arch/cobalt/md.c
--- a/distrib/utils/sysinst/arch/cobalt/md.c Fri Nov 04 02:57:28 2011 +0000
+++ b/distrib/utils/sysinst/arch/cobalt/md.c Fri Nov 04 11:27:00 2011 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: md.c,v 1.8 2011/04/04 08:30:21 mbalmer Exp $ */
+/* $NetBSD: md.c,v 1.9 2011/11/04 11:27:01 martin Exp $ */
/*
* Copyright 1997 Piermont Information Systems Inc.
@@ -412,3 +412,9 @@
bootsize = part[0].mbrp_size;
return 1;
}
+
+int
+md_pre_mount()
+{
+ return 0;
+}
diff -r bc7f24458ac5 -r af29a3693a08 distrib/utils/sysinst/arch/emips/md.c
--- a/distrib/utils/sysinst/arch/emips/md.c Fri Nov 04 02:57:28 2011 +0000
+++ b/distrib/utils/sysinst/arch/emips/md.c Fri Nov 04 11:27:00 2011 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: md.c,v 1.3 2011/04/04 08:30:22 mbalmer Exp $ */
+/* $NetBSD: md.c,v 1.4 2011/11/04 11:27:02 martin Exp $ */
/*
* Copyright 1997 Piermont Information Systems Inc.
@@ -200,3 +200,9 @@
md_post_newfs();
return 1;
}
+
+int
+md_pre_mount()
+{
+ return 0;
+}
diff -r bc7f24458ac5 -r af29a3693a08 distrib/utils/sysinst/arch/evbarm/md.c
--- a/distrib/utils/sysinst/arch/evbarm/md.c Fri Nov 04 02:57:28 2011 +0000
+++ b/distrib/utils/sysinst/arch/evbarm/md.c Fri Nov 04 11:27:00 2011 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: md.c,v 1.24 2011/04/04 08:30:22 mbalmer Exp $ */
+/* $NetBSD: md.c,v 1.25 2011/11/04 11:27:02 martin Exp $ */
/*
* Copyright 1997 Piermont Information Systems Inc.
@@ -181,3 +181,9 @@
md_post_newfs();
return 1;
}
+
+int
+md_pre_mount()
+{
+ return 0;
+}
diff -r bc7f24458ac5 -r af29a3693a08 distrib/utils/sysinst/arch/evbmips/md.c
--- a/distrib/utils/sysinst/arch/evbmips/md.c Fri Nov 04 02:57:28 2011 +0000
+++ b/distrib/utils/sysinst/arch/evbmips/md.c Fri Nov 04 11:27:00 2011 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: md.c,v 1.8 2011/04/04 08:30:25 mbalmer Exp $ */
+/* $NetBSD: md.c,v 1.9 2011/11/04 11:27:02 martin Exp $ */
/*
* Copyright 1997,2002 Piermont Information Systems Inc.
@@ -158,3 +158,9 @@
{
return mbr_use_wholedisk(mbri);
}
+
+int
+md_pre_mount()
+{
+ return 0;
+}
diff -r bc7f24458ac5 -r af29a3693a08 distrib/utils/sysinst/arch/evbppc/md.c
--- a/distrib/utils/sysinst/arch/evbppc/md.c Fri Nov 04 02:57:28 2011 +0000
+++ b/distrib/utils/sysinst/arch/evbppc/md.c Fri Nov 04 11:27:00 2011 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: md.c,v 1.31 2011/04/04 08:30:26 mbalmer Exp $ */
+/* $NetBSD: md.c,v 1.32 2011/11/04 11:27:02 martin Exp $ */
/*
* Copyright 1997,2002 Piermont Information Systems Inc.
@@ -162,3 +162,9 @@
{
return mbr_use_wholedisk(mbri);
}
+
+int
+md_pre_mount()
+{
+ return 0;
+}
diff -r bc7f24458ac5 -r af29a3693a08 distrib/utils/sysinst/arch/evbsh3/md.c
--- a/distrib/utils/sysinst/arch/evbsh3/md.c Fri Nov 04 02:57:28 2011 +0000
+++ b/distrib/utils/sysinst/arch/evbsh3/md.c Fri Nov 04 11:27:00 2011 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: md.c,v 1.3 2011/04/04 08:30:27 mbalmer Exp $ */
+/* $NetBSD: md.c,v 1.4 2011/11/04 11:27:02 martin Exp $ */
/*
* Copyright 1997 Piermont Information Systems Inc.
@@ -186,3 +186,9 @@
{
return 0;
}
+
+int
+md_pre_mount()
+{
+ return 0;
+}
diff -r bc7f24458ac5 -r af29a3693a08 distrib/utils/sysinst/arch/ews4800mips/md.c
--- a/distrib/utils/sysinst/arch/ews4800mips/md.c Fri Nov 04 02:57:28 2011 +0000
+++ b/distrib/utils/sysinst/arch/ews4800mips/md.c Fri Nov 04 11:27:00 2011 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: md.c,v 1.9 2011/04/04 08:30:27 mbalmer Exp $ */
+/* $NetBSD: md.c,v 1.10 2011/11/04 11:27:02 martin Exp $ */
/*
* Copyright 1997 Piermont Information Systems Inc.
@@ -225,3 +225,9 @@
{
return (8 * 1024 * 1024) / 512; /* 8MB */
}
+
+int
+md_pre_mount()
+{
+ return 0;
+}
diff -r bc7f24458ac5 -r af29a3693a08 distrib/utils/sysinst/arch/hp300/md.c
--- a/distrib/utils/sysinst/arch/hp300/md.c Fri Nov 04 02:57:28 2011 +0000
+++ b/distrib/utils/sysinst/arch/hp300/md.c Fri Nov 04 11:27:00 2011 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: md.c,v 1.30 2011/04/04 08:30:28 mbalmer Exp $ */
+/* $NetBSD: md.c,v 1.31 2011/11/04 11:27:02 martin Exp $ */
/*
* Copyright 1997 Piermont Information Systems Inc.
@@ -245,3 +245,9 @@
return i;
}
+
+int
+md_pre_mount()
+{
+ return 0;
+}
diff -r bc7f24458ac5 -r af29a3693a08 distrib/utils/sysinst/arch/hp700/md.c
--- a/distrib/utils/sysinst/arch/hp700/md.c Fri Nov 04 02:57:28 2011 +0000
+++ b/distrib/utils/sysinst/arch/hp700/md.c Fri Nov 04 11:27:00 2011 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: md.c,v 1.11 2011/04/04 08:30:28 mbalmer Exp $ */
+/* $NetBSD: md.c,v 1.12 2011/11/04 11:27:02 martin Exp $ */
/*
* Copyright 1997 Piermont Information Systems Inc.
@@ -200,3 +200,9 @@
md_post_newfs();
return 1;
}
+
+int
Home |
Main Index |
Thread Index |
Old Index