summaryrefslogtreecommitdiffstats
path: root/usr.sbin/bsdinstall/scripts
diff options
context:
space:
mode:
authorallanjude <allanjude@FreeBSD.org>2016-04-08 15:08:22 +0000
committerallanjude <allanjude@FreeBSD.org>2016-04-08 15:08:22 +0000
commite6c5638fc9ea834e5c18816d8165ac2028a8168f (patch)
tree35f76044851063c9e3713ce3bf8f009d2e94a375 /usr.sbin/bsdinstall/scripts
parent0a0494372684565b3d6af4647d46f2976e2700e4 (diff)
downloadFreeBSD-src-e6c5638fc9ea834e5c18816d8165ac2028a8168f.zip
FreeBSD-src-e6c5638fc9ea834e5c18816d8165ac2028a8168f.tar.gz
bsdinstall/zfsboot should create /tmp and /var/tmp if they do not exist
PR: 208629 PR: 208568 Submitted by: Galael LAPLANCHE <ganael.laplanche@corp.ovh.com> MFC after: 2 weeks
Diffstat (limited to 'usr.sbin/bsdinstall/scripts')
-rwxr-xr-xusr.sbin/bsdinstall/scripts/zfsboot2
1 files changed, 2 insertions, 0 deletions
diff --git a/usr.sbin/bsdinstall/scripts/zfsboot b/usr.sbin/bsdinstall/scripts/zfsboot
index c3b2137..415afb6 100755
--- a/usr.sbin/bsdinstall/scripts/zfsboot
+++ b/usr.sbin/bsdinstall/scripts/zfsboot
@@ -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
OpenPOWER on IntegriCloud