summaryrefslogtreecommitdiff
path: root/share
diff options
context:
space:
mode:
Diffstat (limited to 'share')
-rwxr-xr-xshare/hydractl/provision16
1 files changed, 1 insertions, 15 deletions
diff --git a/share/hydractl/provision b/share/hydractl/provision
index 8af02a5..51ed478 100755
--- a/share/hydractl/provision
+++ b/share/hydractl/provision
@@ -131,12 +131,11 @@ if ! vgdisplay $vg &> /dev/null; then
hydra_safe_run vgcreate $vg $syst_device
fi
+hydra_safe_run vgchange -a y $vg
hydra_lvcreate root $root_size
hydra_lvcreate home $home_size
hydra_lvcreate var $var_size
-hydra_safe_run vgchange -a y $vg
-
# Garbage.
if [ "$garbage" == "y" ]; then
echo "Filling volumes with garbage..."
@@ -303,19 +302,6 @@ if [ "$grub" == "y" ]; then
echo "Setting up GRUB..."
hydra_safe_run chroot /tmp/debootstrap/ apt-get install grub-pc -y
-# hydra_safe_run grub-install --root-directory=/tmp/debootstrap/boot --no-floppy "$device"
-# mkdir -p /tmp/debootstrap/boot/grub/
-# cat >> /tmp/debootstrap/boot/grub/grub.cfg <<-EOF
-#set menu_color_normal=white/blue
-#set menu_color_highlight=yellow/red
-#
-#menuentry 'Standard: $hostname Debian Server' --class debian --class gnu-linux --class gnu --class os {
-# echo 'Debian Server $hostname...'
-# linux /vmlinuz-2.6.32-5-vserver-amd64 root=/dev/mapper/root ro
-# echo 'Loading initial ramdisk...'
-# initrd /initrd.img-2.6.32-5-vserver-amd64-server
-#}
-EOF
fi
# Kernel.