Fixed making grub2.cfg file
Kyle Sheumaker [Wed, 28 Jan 2015 16:49:29 +0000 (10:49 -0600)]
etc/cloner3/installer.sh

index 5827278..7afc41d 100755 (executable)
@@ -232,7 +232,8 @@ do
                fi
        fi
 
-       if [ "${GRUB2}" = "1" ]
+       # if grub2 we generate a grub2 config file too
+       if [ "${GRUB2}" = "9" ]
        then
                if [ -x /cloner/mnt/sbin/grub2-mkconfig ]
                 then
@@ -240,11 +241,11 @@ do
                 elif  [ -x /cloner/mnt/usr/sbin/grub2-mkconfig ]
                 then
                         GRUB_MKCONFIG="/usr/sbin/grub2-mkconfig "
-               else
+               fi
 
                msg -n "Creating grub2 config file"
                server_log "Creating grub2 config file" "${_node}"
-               chroot /cloner/mnt ${GRUB_MKCONFIG} -o /boot/grub2/grub.conf >> /tmp/stdout.log 2>> /tmp/stderr.log
+               chroot /cloner/mnt ${GRUB_MKCONFIG} -o /boot/grub2/grub.cfg >> /tmp/stdout.log 2>> /tmp/stderr.log
                if [ "$?" = "0" ]
                then
                        ok_msg