aboutsummaryrefslogtreecommitdiff
path: root/share
diff options
context:
space:
mode:
Diffstat (limited to 'share')
-rwxr-xr-xshare/hydractl/provision4
1 files changed, 3 insertions, 1 deletions
diff --git a/share/hydractl/provision b/share/hydractl/provision
index de03fcf..0d007d0 100755
--- a/share/hydractl/provision
+++ b/share/hydractl/provision
@@ -66,15 +66,17 @@ if [ "$encrypt" == "y" ]; then
cryptsetup -h sha256 -c aes-cbc-essiv:sha256 -s 256 luksFormat /dev/$vg/root
cryptsetup luksOpen /dev/$vg/root debootstrap
mkfs.ext3 /dev/mapper/debootstrap
+ install_device="/dev/mapper/deboostrap"
else
echo "Creating root device..."
mkfs.ext3 /dev/vg/root
+ install_device="/dev/vg/root"
fi
# Initial system install.
echo "Installing base system..."
mkdir -p /tmp/debootstrap
-mount /dev/mapper/debootstrap /tmp/debootstrap/
+mount $install_device /tmp/debootstrap/
debootstrap --arch=$arch $version /tmp/debootstrap/
# Initial configuration.