From: kn Date: Wed, 11 Oct 2023 17:53:52 +0000 (+0000) Subject: Remove dead CRYPTOCHUNK usage X-Git-Url: http://artulab.com/gitweb/?a=commitdiff_plain;h=c10f63ba96f890ce7ce3d41cb55f23bd30c228b3;p=openbsd Remove dead CRYPTOCHUNK usage install.sub r1.1245 "Ask for disk crypto after root disk question" got rid of global CRYPTO* variables; no functional change. --- diff --git a/distrib/amd64/common/install.md b/distrib/amd64/common/install.md index 6e996c04e0e..e888a851f36 100644 --- a/distrib/amd64/common/install.md +++ b/distrib/amd64/common/install.md @@ -1,4 +1,4 @@ -# $OpenBSD: install.md,v 1.61 2023/05/26 11:41:50 kn Exp $ +# $OpenBSD: install.md,v 1.62 2023/10/11 17:53:52 kn Exp $ # # Copyright (c) 1996 The NetBSD Foundation, Inc. # All rights reserved. @@ -126,7 +126,7 @@ __EOT [oO]*) [[ $_d == OpenBSD ]] || continue # Is this a boot disk? - if [[ $_disk == @($ROOTDISK|$CRYPTOCHUNK) ]] && + if [[ $_disk == $ROOTDISK ]] && disk_has $_disk gpt && ! disk_has $_disk gpt efisys; then echo "No EFI Sys partition in GPT, try again." $AUTO && exit 1 diff --git a/distrib/arm64/ramdisk/install.md b/distrib/arm64/ramdisk/install.md index d855aabef0e..0c4a8dcd13c 100644 --- a/distrib/arm64/ramdisk/install.md +++ b/distrib/arm64/ramdisk/install.md @@ -1,4 +1,4 @@ -# $OpenBSD: install.md,v 1.47 2023/04/27 17:04:17 caspar Exp $ +# $OpenBSD: install.md,v 1.48 2023/10/11 17:53:52 kn Exp $ # # # Copyright (c) 1996 The NetBSD Foundation, Inc. @@ -116,14 +116,14 @@ md_prep_fdisk() { KEEP_EFI_SYS=true # Is this a boot disk? - if [[ $_disk == @($ROOTDISK|$CRYPTOCHUNK) ]]; then + if [[ $_disk == $ROOTDISK ]]; then fdisk -Ay -b "${bootsectorsize}" ${_disk} >/dev/null else fdisk -Ay ${_disk} >/dev/null fi elif disk_has $_disk gpt; then # Is this a boot disk? - if [[ $_disk == @($ROOTDISK|$CRYPTOCHUNK) ]]; then + if [[ $_disk == $ROOTDISK ]]; then fdisk -gy -b "${bootsectorsize}" ${_disk} >/dev/null # With root on softraid, diff --git a/distrib/riscv64/ramdisk/install.md b/distrib/riscv64/ramdisk/install.md index cd7266cc5ae..b8e69057748 100644 --- a/distrib/riscv64/ramdisk/install.md +++ b/distrib/riscv64/ramdisk/install.md @@ -1,4 +1,4 @@ -# $OpenBSD: install.md,v 1.9 2023/04/26 23:12:31 kn Exp $ +# $OpenBSD: install.md,v 1.10 2023/10/11 17:53:52 kn Exp $ # # # Copyright (c) 1996 The NetBSD Foundation, Inc. @@ -56,7 +56,7 @@ md_prep_fdisk() { _d=whole if disk_has $_disk gpt; then # Is this a boot disk? - [[ $_disk == @($ROOTDISK|$CRYPTOCHUNK) ]] && bootpart="-b ${bootsectorsize}" + [[ $_disk == $ROOTDISK ]] && bootpart="-b ${bootsectorsize}" _type=GPT fdisk $_disk elif disk_has $_disk mbr; then