Source-Changes-HG archive

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

[src/trunk]: src/usr.sbin/sysinst/arch/dummy make this build and likely work ...



details:   https://anonhg.NetBSD.org/src/rev/3f8dfcc0e699
branches:  trunk
changeset: 451963:3f8dfcc0e699
user:      mrg <mrg%NetBSD.org@localhost>
date:      Thu Jun 13 03:07:24 2019 +0000

description:
make this build and likely work with the new sysinst world order.

diffstat:

 usr.sbin/sysinst/arch/dummy/md.c |  65 +++++++++++++++++++++++++++------------
 1 files changed, 44 insertions(+), 21 deletions(-)

diffs (119 lines):

diff -r ab3a586f7730 -r 3f8dfcc0e699 usr.sbin/sysinst/arch/dummy/md.c
--- a/usr.sbin/sysinst/arch/dummy/md.c  Thu Jun 13 02:07:31 2019 +0000
+++ b/usr.sbin/sysinst/arch/dummy/md.c  Thu Jun 13 03:07:24 2019 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: md.c,v 1.3 2019/06/12 06:20:19 martin Exp $    */
+/*     $NetBSD: md.c,v 1.4 2019/06/13 03:07:24 mrg Exp $       */
 
 /*
  * Copyright 1997 Piermont Information Systems Inc.
@@ -50,66 +50,89 @@
 }
 
 bool
-md_get_info(void)
+md_get_info(struct install_partition_desc *desc)
 {
        return true;
 }
 
-int
-md_make_bsd_partitions(void)
+bool
+md_make_bsd_partitions(struct install_partition_desc *desc)
 {
-       return make_bsd_partitions();
+       return make_bsd_partitions(desc);
 }
 
-int
-md_check_partitions(void)
+bool
+md_check_partitions(struct install_partition_desc *desc)
 {
-       return 1;
+       return true;
 }
 
-int
-md_pre_disklabel(void)
+bool
+md_pre_disklabel(struct install_partition_desc *install,
+    struct disk_partitions *part)
 {
-       return 0;
+       return false;
 }
 
-int
-md_post_disklabel(void)
+bool
+md_post_disklabel(struct install_partition_desc *install,
+    struct disk_partitions *part)
 {
        return true;
 }
 
 int
-md_post_newfs(void)
+md_pre_mount(struct install_partition_desc *install)
 {
        return 0;
 }
 
 int
-md_post_extract(void)
+md_post_newfs(struct install_partition_desc *install)
+{
+       return 0;
+}
+
+int
+md_post_extract(struct install_partition_desc *install)
 {
        return 0;
 }
 
 void
-md_cleanup_install(void)
+md_cleanup_install(struct install_partition_desc *install)
 {
 }
 
 int
-md_pre_update(void)
+md_pre_update(struct install_partition_desc *install)
 {
        return 1;
 }
 
 int
-md_update(void)
+md_update(struct install_partition_desc *install)
 {
        return 1;
 }
 
-int
-md_pre_mount(void)
+#ifdef HAVE_GPT
+/*
+ * New GPT partitions have been written, update bootloader or remember
+ * data untill needed in md_post_newfs
+ */
+bool
+md_gpt_post_write(struct disk_partitions *parts, part_id root_id,
+    bool root_is_new, part_id efi_id, bool efi_is_new)
 {
-       return 0;
+
+       return true;
 }
+#endif
+
+bool
+md_parts_use_wholedisk(struct disk_partitions *parts)
+{
+       return parts_use_wholedisk(parts, 0, NULL);
+}
+



Home | Main Index | Thread Index | Old Index