Remove dead code
This commit is contained in:
parent
354924730c
commit
7a17fd0552
@ -1,4 +1,4 @@
|
|||||||
/* $NetBSD: install.c,v 1.18 2020/10/12 16:14:32 martin Exp $ */
|
/* $NetBSD: install.c,v 1.19 2020/10/14 13:20:27 martin Exp $ */
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Copyright 1997 Piermont Information Systems Inc.
|
* Copyright 1997 Piermont Information Systems Inc.
|
||||||
@ -155,7 +155,6 @@ do_install(void)
|
|||||||
int find_disks_ret;
|
int find_disks_ret;
|
||||||
int retcode = 0, res;
|
int retcode = 0, res;
|
||||||
struct install_partition_desc install = {};
|
struct install_partition_desc install = {};
|
||||||
struct disk_partitions *parts;
|
|
||||||
|
|
||||||
#ifndef NO_PARTMAN
|
#ifndef NO_PARTMAN
|
||||||
partman_go = -1;
|
partman_go = -1;
|
||||||
@ -216,21 +215,6 @@ do_install(void)
|
|||||||
if (!ask_noyes(NULL))
|
if (!ask_noyes(NULL))
|
||||||
goto error;
|
goto error;
|
||||||
|
|
||||||
/*
|
|
||||||
* Check if we have a secondary partitioning and
|
|
||||||
* use that if available. The MD code will typically
|
|
||||||
* have written the outer partitioning in md_pre_disklabel.
|
|
||||||
*/
|
|
||||||
parts = pm->parts;
|
|
||||||
if (!pm->no_part && parts != NULL) {
|
|
||||||
if (parts->pscheme->secondary_scheme != NULL &&
|
|
||||||
parts->pscheme->secondary_partitions != NULL) {
|
|
||||||
parts = parts->pscheme->secondary_partitions(
|
|
||||||
parts, pm->ptstart, false);
|
|
||||||
if (parts == NULL)
|
|
||||||
parts = pm->parts;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
if ((!pm->no_part && !write_all_parts(&install)) ||
|
if ((!pm->no_part && !write_all_parts(&install)) ||
|
||||||
make_filesystems(&install) ||
|
make_filesystems(&install) ||
|
||||||
make_fstab(&install) != 0 ||
|
make_fstab(&install) != 0 ||
|
||||||
|
Loading…
Reference in New Issue
Block a user