From: kn Date: Wed, 29 Mar 2023 00:25:47 +0000 (+0000) Subject: Use character not block devices with dd(1) like the rest X-Git-Url: http://artulab.com/gitweb/?a=commitdiff_plain;h=924c884b08edc18934462f9f1e8f39d281dfce5c;p=openbsd Use character not block devices with dd(1) like the rest All other dd invocations in installer code, INSTALL.* instructions and dd(1) EXAMPLES use the disk's "raw device". --- diff --git a/distrib/arm64/ramdisk/install.md b/distrib/arm64/ramdisk/install.md index e28b6d59f25..74c431dddae 100644 --- a/distrib/arm64/ramdisk/install.md +++ b/distrib/arm64/ramdisk/install.md @@ -1,4 +1,4 @@ -# $OpenBSD: install.md,v 1.39 2023/03/29 00:16:14 kn Exp $ +# $OpenBSD: install.md,v 1.40 2023/03/29 00:25:47 kn Exp $ # # # Copyright (c) 1996 The NetBSD Foundation, Inc. @@ -60,7 +60,7 @@ md_installboot() { done) ;; pine64) - dd if=$_mdec/u-boot-sunxi-with-spl.bin of=/dev/${_disk}c \ + dd if=$_mdec/u-boot-sunxi-with-spl.bin of=/dev/r${_disk}c \ bs=1024 seek=8 status=none ;; rpi) diff --git a/distrib/armv7/ramdisk/install.md b/distrib/armv7/ramdisk/install.md index 3ee6c9ea7ff..d6e9ea87057 100644 --- a/distrib/armv7/ramdisk/install.md +++ b/distrib/armv7/ramdisk/install.md @@ -1,4 +1,4 @@ -# $OpenBSD: install.md,v 1.54 2023/03/29 00:16:14 kn Exp $ +# $OpenBSD: install.md,v 1.55 2023/03/29 00:25:47 kn Exp $ # # Copyright (c) 1996 The NetBSD Foundation, Inc. # All rights reserved. @@ -63,9 +63,9 @@ md_installboot() { ;; cubox|wandboard) cp $_mdec/*.dtb /mnt/mnt/ - dd if=$_mdec/SPL of=/dev/${_disk}c bs=1024 seek=1 \ + dd if=$_mdec/SPL of=/dev/r${_disk}c bs=1024 seek=1 \ status=none - dd if=$_mdec/u-boot.img of=/dev/${_disk}c bs=1024 seek=69 \ + dd if=$_mdec/u-boot.img of=/dev/r${_disk}c bs=1024 seek=69 \ status=none ;; nitrogen) @@ -81,7 +81,7 @@ md_installboot() { ;; cubie) cp $_mdec/*.dtb /mnt/mnt/ - dd if=$_mdec/u-boot-sunxi-with-spl.bin of=/dev/${_disk}c \ + dd if=$_mdec/u-boot-sunxi-with-spl.bin of=/dev/r${_disk}c \ bs=1024 seek=8 status=none ;; esac