svn commit: r326875 - head/tools/boot

Warner Losh imp at FreeBSD.org
Fri Dec 15 06:44:12 UTC 2017


Author: imp
Date: Fri Dec 15 06:44:11 2017
New Revision: 326875
URL: https://svnweb.freebsd.org/changeset/base/326875

Log:
  Add missing of=/dev/${dev}s${s} when installing zfsboot.

Modified:
  head/tools/boot/install-boot.sh

Modified: head/tools/boot/install-boot.sh
==============================================================================
--- head/tools/boot/install-boot.sh	Fri Dec 15 06:34:27 2017	(r326874)
+++ head/tools/boot/install-boot.sh	Fri Dec 15 06:44:11 2017	(r326875)
@@ -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


More information about the svn-src-head mailing list