Remove dead CRYPTOCHUNK usage
authorkn <kn@openbsd.org>
Wed, 11 Oct 2023 17:53:52 +0000 (17:53 +0000)
committerkn <kn@openbsd.org>
Wed, 11 Oct 2023 17:53:52 +0000 (17:53 +0000)
install.sub r1.1245 "Ask for disk crypto after root disk question" got rid
of global CRYPTO* variables;  no functional change.

distrib/amd64/common/install.md
distrib/arm64/ramdisk/install.md
distrib/riscv64/ramdisk/install.md

index 6e996c0..e888a85 100644 (file)
@@ -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
index d855aab..0c4a8dc 100644 (file)
@@ -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,
index cd7266c..b8e6905 100644 (file)
@@ -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