svn commit: r295357 - head/sys/boot/zfs

Allan Jude allanjude at FreeBSD.org
Sun Feb 7 00:49:16 UTC 2016


Author: allanjude
Date: Sun Feb  7 00:49:15 2016
New Revision: 295357
URL: https://svnweb.freebsd.org/changeset/base/295357

Log:
  Do not set vfs.root.mountfrom unnecessarily
  
  This causes boot from external media (installer USB image) to mount / from
  the default ZFS BE, rather than the USB device.
  
  Reported by:	kmoore
  MFC after:	5 days
  Sponsored by:	ScaleEngine Inc.

Modified:
  head/sys/boot/zfs/zfs.c

Modified: head/sys/boot/zfs/zfs.c
==============================================================================
--- head/sys/boot/zfs/zfs.c	Sat Feb  6 22:01:25 2016	(r295356)
+++ head/sys/boot/zfs/zfs.c	Sun Feb  7 00:49:15 2016	(r295357)
@@ -722,8 +722,6 @@ init_zfs_bootenv(char *currdev)
 	currdev[strlen(currdev) - 1] = '\0';
 	setenv("zfs_be_active", currdev, 1);
 	setenv("zfs_be_currpage", "1", 1);
-	/* Do not overwrite if already set */
-	setenv("vfs.root.mountfrom", currdev, 0);
 	/* Forward past zfs: */
 	currdev = strchr(currdev, ':');
 	currdev++;


More information about the svn-src-all mailing list