aboutsummaryrefslogtreecommitdiff
path: root/share/hydractl/provision
diff options
context:
space:
mode:
authorSilvio Rhatto <rhatto@riseup.net>2013-01-28 22:53:58 -0200
committerSilvio Rhatto <rhatto@riseup.net>2013-01-28 22:53:58 -0200
commitcef156b94eb885c553d75a82d6bfd12186fff3b3 (patch)
tree233efa0554583847d308de5f0451a57dcecacbe5 /share/hydractl/provision
parent9c8d5f3a00b735165df59ea7070f42305bce139a (diff)
downloadhydra-cef156b94eb885c553d75a82d6bfd12186fff3b3.tar.gz
hydra-cef156b94eb885c553d75a82d6bfd12186fff3b3.tar.bz2
Cleanup and vgchange
Diffstat (limited to 'share/hydractl/provision')
-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.