svn commit: r297713 - head/usr.sbin/bsdinstall/scripts

Allan Jude allanjude at FreeBSD.org
Fri Apr 8 15:08:23 UTC 2016


Author: allanjude
Date: Fri Apr  8 15:08:22 2016
New Revision: 297713
URL: https://svnweb.freebsd.org/changeset/base/297713

Log:
  bsdinstall/zfsboot should create /tmp and /var/tmp if they do not exist
  
  PR:		208629
  PR:		208568
  Submitted by:	Galael LAPLANCHE <ganael.laplanche at corp.ovh.com>
  MFC after:	2 weeks

Modified:
  head/usr.sbin/bsdinstall/scripts/zfsboot

Modified: head/usr.sbin/bsdinstall/scripts/zfsboot
==============================================================================
--- head/usr.sbin/bsdinstall/scripts/zfsboot	Fri Apr  8 15:05:06 2016	(r297712)
+++ head/usr.sbin/bsdinstall/scripts/zfsboot	Fri Apr  8 15:08:22 2016	(r297713)
@@ -1256,6 +1256,8 @@ zfs_create_boot()
 	f_dprintf "$funcname: Modifying directory permissions..."
 	local dir
 	for dir in /tmp /var/tmp; do
+		f_eval_catch $funcname mkdir "$MKDIR_P" \
+		             $BSDINSTALL_CHROOT$dir || return $FAILURE
 		f_eval_catch $funcname chmod "$CHMOD_MODE" 1777 \
 		             $BSDINSTALL_CHROOT$dir || return $FAILURE
 	done


More information about the svn-src-all mailing list