1*91b8c64fSotto# $OpenBSD: install.md,v 1.27 2020/05/25 06:18:53 otto Exp $ 2bf992cc6Srpe# 33e95f235Smiod# Copyright (c) 1996 The NetBSD Foundation, Inc. 43e95f235Smiod# All rights reserved. 53e95f235Smiod# 63e95f235Smiod# This code is derived from software contributed to The NetBSD Foundation 73e95f235Smiod# by Jason R. Thorpe. 83e95f235Smiod# 93e95f235Smiod# Redistribution and use in source and binary forms, with or without 103e95f235Smiod# modification, are permitted provided that the following conditions 113e95f235Smiod# are met: 123e95f235Smiod# 1. Redistributions of source code must retain the above copyright 133e95f235Smiod# notice, this list of conditions and the following disclaimer. 143e95f235Smiod# 2. Redistributions in binary form must reproduce the above copyright 153e95f235Smiod# notice, this list of conditions and the following disclaimer in the 163e95f235Smiod# documentation and/or other materials provided with the distribution. 173e95f235Smiod# 183e95f235Smiod# THIS SOFTWARE IS PROVIDED BY THE NETBSD FOUNDATION, INC. AND CONTRIBUTORS 193e95f235Smiod# ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED 203e95f235Smiod# TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR 213e95f235Smiod# PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE 223e95f235Smiod# LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR 233e95f235Smiod# CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF 243e95f235Smiod# SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS 253e95f235Smiod# INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN 263e95f235Smiod# CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) 273e95f235Smiod# ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE 283e95f235Smiod# POSSIBILITY OF SUCH DAMAGE. 293e95f235Smiod# 303e95f235Smiod# 313e95f235Smiod# machine dependent section of installation/upgrade script. 323e95f235Smiod# 333e95f235Smiod 343e95f235SmiodMDTERM=vt100 35*91b8c64fSotto# FFS2 not supported for booting, use FFS1 365398943eSkrwMDROOTFSOPT="-f 1024 -b 8192 -O1" 37267a536eSmiodNCPU=$(sysctl -n hw.ncpufound) 38267a536eSmiod 393e95f235Smiodmd_installboot() { 40900348f3Smiod cat /mnt/usr/mdec/boot > /mnt/boot 413e95f235Smiod} 423e95f235Smiod 433e95f235Smiodmd_prep_disklabel() { 4432efaffdSrpe local _disk=$1 _f=/tmp/i/fstab.$1 453e95f235Smiod 466b7e7e25Srpe disklabel_autolayout $_disk $_f || return 476b7e7e25Srpe [[ -s $_f ]] && return 486b7e7e25Srpe 49c375c99cSkrw # Edit disklabel manually. 50c375c99cSkrw # Abandon all hope, ye who enter here. 51f53dd365Srpe disklabel -F $_f -E $_disk 523e95f235Smiod} 533e95f235Smiod 543e95f235Smiodmd_congrats() { 553e95f235Smiod} 5613acab54Skrw 5713acab54Skrwmd_consoleinfo() { 5813acab54Skrw} 59