diff options
author | Igor Pashev <pashev.igor@gmail.com> | 2013-08-15 22:25:12 +0400 |
---|---|---|
committer | Igor Pashev <pashev.igor@gmail.com> | 2013-08-15 22:25:12 +0400 |
commit | 63babb8a825a95c861da6579d3eb3a171a9d7f17 (patch) | |
tree | 005910e699b5bad4a4c0dec368fe0ac6ea82937d | |
parent | 6b154216515f910e7ecce3bc7a9db0da3107bc4c (diff) | |
download | live-63babb8a825a95c861da6579d3eb3a171a9d7f17.tar.gz |
Create ZFS if not exists; exclude logrotate
-rwxr-xr-x | protostar | 5 |
1 files changed, 4 insertions, 1 deletions
@@ -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}" \ |