From 502742f35ac9105b61b4cec7b99785e9fe202994 Mon Sep 17 00:00:00 2001 From: Warner Losh Date: Fri, 15 Dec 2017 06:44:11 +0000 Subject: [PATCH] Add missing of=/dev/${dev}s${s} when installing zfsboot. --- tools/boot/install-boot.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tools/boot/install-boot.sh b/tools/boot/install-boot.sh index d73803dad08..7f6bf3c8c34 100755 --- a/tools/boot/install-boot.sh +++ b/tools/boot/install-boot.sh @@ -59,8 +59,8 @@ boot_nogeli_mbr_zfs_legacy() { # Or just assume it is 'a' because it has to be since it fails otherwise dd if=${dst}/boot/zfsboot of=/tmp/zfsboot1 count=1 gpart bootcode -b /tmp/zfsboo1 ${dev}s${s} # Put boot1 into the start of part - sysctl kern.geom.debugflags=0x10 - dd if=${dst}/boot/zfsboot iseek=1 seek=1024 # Put boot2 into ZFS boot slot + sysctl kern.geom.debugflags=0x10 # Put boot2 into ZFS boot slot + dd if=${dst}/boot/zfsboot of=/dev/${dev}s${s} iseek=1 seek=1024 sysctl kern.geom.debugflags=0x0 exit 0