Use 'fdisk -i', instead of 'fdisk -e' with a here document of
authorkrw <krw@openbsd.org>
Sun, 25 Oct 2015 10:20:51 +0000 (10:20 +0000)
committerkrw <krw@openbsd.org>
Sun, 25 Oct 2015 10:20:51 +0000 (10:20 +0000)
'reinit;update;write;quit'. They've done the same thing for some
time now.

Tweaks & test from rpe@.

ok rpe@ deraadt@

distrib/amd64/common/install.md
distrib/armish/ramdisk/install.md
distrib/i386/common/install.md
distrib/landisk/ramdisk/install.md
distrib/macppc/ramdisk/install.md
distrib/socppc/ramdisk/install.md
distrib/zaurus/ramdisk/install.md

index d00dfad..9e68345 100644 (file)
@@ -1,4 +1,4 @@
-#      $OpenBSD: install.md,v 1.43 2015/10/09 18:30:54 rpe Exp $
+#      $OpenBSD: install.md,v 1.44 2015/10/25 10:20:51 krw Exp $
 #
 #
 # Copyright (c) 1996 The NetBSD Foundation, Inc.
@@ -72,12 +72,7 @@ md_prep_fdisk() {
                case $resp in
                w*|W*)
                        echo -n "Setting OpenBSD MBR partition to whole $_disk..."
-                       fdisk -e ${_disk} <<__EOT >/dev/null
-reinit
-update
-write
-quit
-__EOT
+                       fdisk -iy $_disk >/dev/null
                        echo "done."
                        return ;;
                g*|G*)
index 816a5f7..015b91e 100644 (file)
@@ -1,4 +1,4 @@
-#      $OpenBSD: install.md,v 1.20 2015/06/02 19:54:06 rpe Exp $
+#      $OpenBSD: install.md,v 1.21 2015/10/25 10:20:51 krw Exp $
 #
 #
 # Copyright (c) 1996 The NetBSD Foundation, Inc.
@@ -53,12 +53,7 @@ md_prep_fdisk() {
                case $resp in
                w*|W*)
                        echo -n "Setting OpenBSD MBR partition to whole $_disk..."
-                       fdisk -e ${_disk} <<__EOT >/dev/null
-reinit
-update
-write
-quit
-__EOT
+                       fdisk -iy $_disk >/dev/null
                        echo "done."
                        return ;;
                e*|E*)
index 6969f91..d9dee7b 100644 (file)
@@ -1,4 +1,4 @@
-#      $OpenBSD: install.md,v 1.64 2015/06/02 19:54:06 rpe Exp $
+#      $OpenBSD: install.md,v 1.65 2015/10/25 10:20:51 krw Exp $
 #
 #
 # Copyright (c) 1996 The NetBSD Foundation, Inc.
@@ -64,12 +64,7 @@ md_prep_fdisk() {
                case $resp in
                w*|W*)
                        echo -n "Setting OpenBSD MBR partition to whole $_disk..."
-                       fdisk -e ${_disk} <<__EOT >/dev/null
-reinit
-update
-write
-quit
-__EOT
+                       fdisk -iy $_disk >/dev/null
                        echo "done."
                        return ;;
                e*|E*)
index 694e937..153651a 100644 (file)
@@ -1,4 +1,4 @@
-#      $OpenBSD: install.md,v 1.35 2015/10/05 04:31:21 miod Exp $
+#      $OpenBSD: install.md,v 1.36 2015/10/25 10:20:51 krw Exp $
 #
 #
 # Copyright (c) 1996 The NetBSD Foundation, Inc.
@@ -58,12 +58,7 @@ md_prep_fdisk() {
                case $resp in
                w*|W*)
                        echo -n "Setting OpenBSD MBR partition to whole $_disk..."
-                       fdisk -e ${_disk} <<__EOT >/dev/null
-reinit
-update
-write
-quit
-__EOT
+                       fdisk -iy $_disk >/dev/null
                        echo "done."
                        return ;;
                e*|E*)
index 7d78ea4..5da0256 100644 (file)
@@ -1,4 +1,4 @@
-#      $OpenBSD: install.md,v 1.61 2015/10/17 08:47:24 rpe Exp $
+#      $OpenBSD: install.md,v 1.62 2015/10/25 10:20:51 krw Exp $
 #
 #
 # Copyright (c) 1996 The NetBSD Foundation, Inc.
@@ -94,12 +94,7 @@ __EOT
                w*|W*)
                        echo -n "Creating a 1MB DOS partition and an OpenBSD partition for rest of $_disk..."
                        dd if=/dev/zero of=/dev/r${_disk}c bs=1m count=1
-                       fdisk -e $_disk <<__EOT >/dev/null
-reinit
-update
-write
-quit
-__EOT
+                       fdisk -iy $_disk >/dev/null
                        echo "done."
                        break ;;
                e*|E*)
index f564e4a..8957431 100644 (file)
@@ -1,4 +1,4 @@
-#      $OpenBSD: install.md,v 1.22 2015/06/02 19:54:06 rpe Exp $
+#      $OpenBSD: install.md,v 1.23 2015/10/25 10:20:51 krw Exp $
 #
 #
 # Copyright (c) 1996 The NetBSD Foundation, Inc.
@@ -61,12 +61,7 @@ md_prep_fdisk() {
                case $resp in
                w*|W*)
                        echo -n "Setting OpenBSD MBR partition to whole $_disk..."
-                       fdisk -e ${_disk} <<__EOT >/dev/null
-reinit
-update
-write
-quit
-__EOT
+                       fdisk -iy $_disk >/dev/null
                        echo "done."
                        return ;;
                e*|E*)
index 78cd5bb..3557c6e 100644 (file)
@@ -1,4 +1,4 @@
-#      $OpenBSD: install.md,v 1.35 2015/06/02 19:54:07 rpe Exp $
+#      $OpenBSD: install.md,v 1.36 2015/10/25 10:20:51 krw Exp $
 #
 #
 # Copyright (c) 1996 The NetBSD Foundation, Inc.
@@ -55,12 +55,7 @@ md_prep_fdisk() {
                case $resp in
                w*|W*)
                        echo -n "Setting OpenBSD MBR partition to whole $_disk..."
-                       fdisk -e ${_disk} <<__EOT >/dev/null
-reinit
-update
-write
-quit
-__EOT
+                       fdisk -iy $_disk >/dev/null
                        echo "done."
                        return ;;
                e*|E*)