summaryrefslogtreecommitdiff
path: root/protostar
diff options
context:
space:
mode:
authorIgor Pashev <pashev.igor@gmail.com>2013-04-14 22:38:02 +0000
committerIgor Pashev <pashev.igor@gmail.com>2013-04-14 22:38:02 +0000
commit3073673d4bd545e3c5e54bb92c9b7b173b2ca921 (patch)
treedd2b7812386e2aaa4ba15a4f1775bb9f178c1ab4 /protostar
parentb1781a5da105b8566e49c686ae0fb23be18eab94 (diff)
downloadlive-3073673d4bd545e3c5e54bb92c9b7b173b2ca921.tar.gz
Make ZFS tunable
Diffstat (limited to 'protostar')
-rwxr-xr-xprotostar7
1 files changed, 4 insertions, 3 deletions
diff --git a/protostar b/protostar
index 042042a..8d2a4b0 100755
--- a/protostar
+++ b/protostar
@@ -15,7 +15,8 @@ USR_IMG=usr.img.$(echo $DATE | md5sum | cut -f1 -d ' ')
ISONAME="${ISONAME:-dyson-${DIST}-${DATE}}.iso"
ROOT="${TMP}/ROOT"
-ROOT=/dyson/deb
+BOOTSTRAPFS="${BOOTSTRAPFS:-dyson/deb}"
+ROOT="/$BOOTSTRAPFS"
BOOTARCH="${ROOT}/boot_archive"
# Move files from usr to usr1,
@@ -41,8 +42,8 @@ if [ -z "${ROOT}" ] || [ "${ROOT}" = / ]; then
fi
rm -rf "${ROOT}"/*
-if zfs list dyson/deb@init; then
- zfs rollback dyson/deb@init
+if zfs list "${BOOTSTRAPFS}@init"; then
+ zfs rollback "${BOOTSTRAPFS}@init"
else
echo "Preparing base system (debootstrap)..."