]> gitweb.fluxo.info Git - hydra.git/commitdiff
GRUB2 config format at provision
authorSilvio Rhatto <rhatto@riseup.net>
Fri, 13 Apr 2012 13:33:51 +0000 (10:33 -0300)
committerSilvio Rhatto <rhatto@riseup.net>
Fri, 13 Apr 2012 13:33:51 +0000 (10:33 -0300)
lib/hydra/misc
share/hydractl/provision

index e19a8fad7873fc837418f6e869941fa74b3b7b1e..28e73e4dfbd4dba50620a31cf583ec91cda8ac5b 100644 (file)
@@ -2,7 +2,7 @@
 
 # Set needed environment variables and do basic checks
 function hydra_set_env {
-  export COMMIT="d3ab3e44f02ed24cd2d5f8f3053ea69b8704d33f"
+  export COMMIT="3ce7b1337482c20ac6f81e3b8bca0fdae549655f"
   export CONFIG="$HOME/.hydra/config"
   export ACTION="$1"
 
index 290395c9dc5602f3303d7b079b6604629c54228a..0ab634f71cddbf1fee80f0c82c6ae79df505e01c 100755 (executable)
@@ -193,16 +193,16 @@ if [ "$grub" == "y" ]; then
   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/menu.lst <<-EOF
-title $hostname (hd0)
-root  (hd0,1)
-kernel  /vmlinuz-2.6.26-2-vserver-amd64 root=/dev/mapper/root ro quiet rootdelay=10
-initrd  /initrd.img-2.6.26-2-vserver-amd64
-
-title $hostname (hd0) (single)
-root  (hd0,1)
-kernel  /vmlinuz-2.6.26-2-vserver-amd64 root=/dev/mapper/root ro single rootdelay=10
-initrd  /initrd.img-2.6.26-2-vserver-amd64
+  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