diff options
author | Renato Botelho <renato@netgate.com> | 2015-12-14 11:37:37 -0200 |
---|---|---|
committer | Renato Botelho <renato@netgate.com> | 2015-12-14 11:37:37 -0200 |
commit | 01541076a8689a7749c176e5778277ef8b78d36c (patch) | |
tree | 602e832417ce63fa5e3890f01395df2b31916360 /tools/builder_common.sh | |
parent | 92b3ac622cc3789ca00b625052621f0dc4262f1f (diff) | |
download | pfsense-01541076a8689a7749c176e5778277ef8b78d36c.zip pfsense-01541076a8689a7749c176e5778277ef8b78d36c.tar.gz |
Create poudriere filesystem when it's necessary
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 |