From: Silvio Rhatto Date: Tue, 29 Jan 2013 00:53:58 +0000 (-0200) Subject: Cleanup and vgchange X-Git-Tag: 0.1~67 X-Git-Url: https://gitweb.fluxo.info/?a=commitdiff_plain;h=cef156b94eb885c553d75a82d6bfd12186fff3b3;p=hydra.git Cleanup and vgchange --- 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.