]> gitweb.fluxo.info Git - hydra.git/commitdiff
Cleanup and vgchange
authorSilvio Rhatto <rhatto@riseup.net>
Tue, 29 Jan 2013 00:53:58 +0000 (22:53 -0200)
committerSilvio Rhatto <rhatto@riseup.net>
Tue, 29 Jan 2013 00:53:58 +0000 (22:53 -0200)
share/hydractl/provision

index 8af02a51c6a9e5452c97bd963f83a392218f44ea..51ed478c4fcbfecac1c7caff7bc14f804350a273 100755 (executable)
@@ -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.