summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIgor Pashev <pashev.igor@gmail.com>2013-08-15 22:25:12 +0400
committerIgor Pashev <pashev.igor@gmail.com>2013-08-15 22:25:12 +0400
commit63babb8a825a95c861da6579d3eb3a171a9d7f17 (patch)
tree005910e699b5bad4a4c0dec368fe0ac6ea82937d
parent6b154216515f910e7ecce3bc7a9db0da3107bc4c (diff)
downloadlive-63babb8a825a95c861da6579d3eb3a171a9d7f17.tar.gz
Create ZFS if not exists; exclude logrotate
-rwxr-xr-xprotostar5
1 files changed, 4 insertions, 1 deletions
diff --git a/protostar b/protostar
index 175e577..d7b0286 100755
--- a/protostar
+++ b/protostar
@@ -45,13 +45,16 @@ if [ -z "${ROOT}" ] || [ "${ROOT}" = / ]; then
fi
rm -rf "${ROOT}"/*
+if ! zfs list "${BOOTSTRAPFS}"; then
+ zfs create "${BOOTSTRAPFS}"
+fi
if zfs list "${BOOTSTRAPFS}@init"; then
zfs rollback "${BOOTSTRAPFS}@init"
else
echo "Preparing base system (debootstrap)..."
debootstrap \
- --exclude=locales,rsyslog,cron,gawk,aptitude,aptitude-common,libboost-iostreams1.48.0,libboost-iostreams1.49.0,libcwidget3 \
+ --exclude=logrotate,locales,rsyslog,cron,gawk,aptitude,aptitude-common,libboost-iostreams1.48.0,libboost-iostreams1.49.0,libcwidget3 \
--include=python-newt,truss,installgrub,illumos-grub-eltorito,illumos-kernel,mc,vim,screen,openssh-client,wget,bzip2,xz-utils,debootstrap,less,file,lynx,bash-completion,drvtools,mdb-proc,mdb-kvm,dtrace,inetutils-ping,inetutils-traceroute \
"${DIST}" \
"${ROOT}" \