diff options
Diffstat (limited to 'tools/builder_common.sh')
-rw-r--r-- | tools/builder_common.sh | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/tools/builder_common.sh b/tools/builder_common.sh index c687a18..a7e5b01 100644 --- a/tools/builder_common.sh +++ b/tools/builder_common.sh @@ -1912,8 +1912,13 @@ poudriere_init() { # Check if zfs rootfs exists if ! zfs list ${ZFS_TANK}${ZFS_ROOT} >/dev/null 2>&1; then - echo ">>> ERROR: ZFS filesystem ${ZFS_TANK}${ZFS_ROOT} not found, please create it and try again..." | tee -a ${LOGFILE} - print_error_pfS + echo -n ">>> Creating ZFS filesystem ${ZFS_TANK}${ZFS_ROOT}... " + if zfs create -o atime=off -o mountpoint=${ZFS_ROOT} ${ZFS_TANK}${ZFS_ROOT} >/dev/null 2>&1; then + echo "Done!" + else + echo "Failed!" + print_error_pfS + fi fi # Make sure poudriere is installed |