Module Name:    src
Committed By:   mrg
Date:           Thu Jun 13 03:07:24 UTC 2019

Modified Files:
        src/usr.sbin/sysinst/arch/dummy: md.c

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


To generate a diff of this commit:
cvs rdiff -u -r1.3 -r1.4 src/usr.sbin/sysinst/arch/dummy/md.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/arch/dummy/md.c
diff -u src/usr.sbin/sysinst/arch/dummy/md.c:1.3 src/usr.sbin/sysinst/arch/dummy/md.c:1.4
--- src/usr.sbin/sysinst/arch/dummy/md.c:1.3	Wed Jun 12 06:20:19 2019
+++ src/usr.sbin/sysinst/arch/dummy/md.c	Thu Jun 13 03:07:24 2019
@@ -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 @@ md_init_set_status(int flags)
 }
 
 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_newfs(struct install_partition_desc *install)
 {
 	return 0;
 }
 
 int
-md_post_extract(void)
+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);
+}
+

Reply via email to