diff options
author | Silvio Rhatto <rhatto@riseup.net> | 2011-08-08 18:28:15 -0300 |
---|---|---|
committer | Silvio Rhatto <rhatto@riseup.net> | 2011-08-08 18:28:15 -0300 |
commit | 626a39121a6e22221e20fd4baef07c982d911a56 (patch) | |
tree | 3c6e41de25fa0c0743c16ced51c8614b631aeb05 /share/hydractl | |
parent | e739b8bab4d66ac7f5212d2e6df3b80ec7cf6c64 (diff) | |
download | hydra-626a39121a6e22221e20fd4baef07c982d911a56.tar.gz hydra-626a39121a6e22221e20fd4baef07c982d911a56.tar.bz2 |
Setting install_device if not encrypted installation
Diffstat (limited to 'share/hydractl')
-rwxr-xr-x | share/hydractl/provision | 4 |
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. |