1# $OpenBSD: install.md,v 1.33 2017/07/28 18:15:44 rpe Exp $ 2# 3# machine dependent section of installation/upgrade script. 4# 5 6MDTERM=vt100 7NCPU=$(sysctl -n hw.ncpufound) 8 9md_installboot() { 10 if ! installboot -r /mnt ${1}; then 11 echo "\nFailed to install bootblocks." 12 echo "You will not be able to boot OpenBSD from ${1}." 13 exit 14 fi 15} 16 17md_prep_disklabel() { 18 local _disk=$1 _f=/tmp/i/fstab.$1 19 20 installboot $_disk 21 22 disklabel_autolayout $_disk $_f || return 23 [[ -s $_f ]] && return 24 25 # Edit disklabel manually. 26 # Abandon all hope, ye who enter here. 27 disklabel -F $_f -E $_disk 28} 29 30md_congrats() { 31} 32 33md_consoleinfo() { 34} 35