From cef156b94eb885c553d75a82d6bfd12186fff3b3 Mon Sep 17 00:00:00 2001 From: Silvio Rhatto Date: Mon, 28 Jan 2013 22:53:58 -0200 Subject: Cleanup and vgchange --- share/hydractl/provision | 16 +--------------- 1 file changed, 1 insertion(+), 15 deletions(-) (limited to 'share/hydractl/provision') 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. -- cgit v1.2.3