diff options
author | Silvio Rhatto <rhatto@riseup.net> | 2011-05-08 11:31:50 -0300 |
---|---|---|
committer | Silvio Rhatto <rhatto@riseup.net> | 2011-05-08 11:31:50 -0300 |
commit | 875199dfed7bed172772eaadf720a54490286762 (patch) | |
tree | 23f1b5995431dceb6565ce2b5747812b72e8e07b /share/hydractl/provision | |
parent | 143c441209747656c02e2b08c022b2b54a1bf141 (diff) | |
download | hydra-875199dfed7bed172772eaadf720a54490286762.tar.gz hydra-875199dfed7bed172772eaadf720a54490286762.tar.bz2 |
Using $swap_device at provision
Diffstat (limited to 'share/hydractl/provision')
-rwxr-xr-x | share/hydractl/provision | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/share/hydractl/provision b/share/hydractl/provision index e3f00f6..72b99e4 100755 --- a/share/hydractl/provision +++ b/share/hydractl/provision @@ -9,6 +9,7 @@ hydra_config_load # Setup. hydra_user_input device /dev/sdb "Destination device" +hydra_user_input swap_device /dev/sda1 "Final swap device" hydra_user_input garbage y "Pre-fill volumes with garbage? (y/n)" hydra_user_input hostname $HOSTNAME "Hostname" hydra_user_input domain example.com "Domain" @@ -87,12 +88,11 @@ chroot /tmp/debootstrap/ apt-get upgrade -y chroot /tmp/debootstrap/ apt-get install locales cryptsetup lvm2 initramfs-tools -y # Crypttab. -swap="$device"1 echo "Configuring crypttab..." cat > /tmp/debootstrap/etc/crypttab <<-EOF # <target name> <source device> <key file> <options> root /dev/mapper/vg-root none luks,cipher=aes-cbc-essiv:sha256 -cswap $swap /dev/random swap,cipher=aes-cbc-essiv:sha256 +cswap $swap_device /dev/random swap,cipher=aes-cbc-essiv:sha256 EOF # Fstab. |