Added new location of grub-mkconfig for debian
Kyle Sheumaker [Mon, 23 Mar 2015 18:51:54 +0000 (13:51 -0500)]
etc/cloner3/installer.sh

index 31b989c..da31b5d 100755 (executable)
@@ -253,6 +253,7 @@ do
                fi
        fi
 
+       GRUB2_CONFIG="/boot/grub2/grub.cfg"
        # if grub2 we generate a grub2 config file too
        if [ "${GRUB2}" = "1" ]
        then
@@ -262,11 +263,15 @@ do
                 elif  [ -x /cloner/mnt/usr/sbin/grub2-mkconfig ]
                 then
                         GRUB_MKCONFIG="/usr/sbin/grub2-mkconfig "
+               elif [ -x /cloner/mnt/usr/sbin/grub-mkconfig ]
+               then
+                       GRUB_MKCONFIG="/usr/sbin/grub-mkconfig "
+                       GRUB2_CONFIG="/boot/grub/grub.cfg"
                fi
 
                msg -n "Creating grub2 config file"
                server_log "Creating grub2 config file" "${_node}"
-               chroot /cloner/mnt ${GRUB_MKCONFIG} -o /boot/grub2/grub.cfg >> /tmp/stdout.log 2>> /tmp/stderr.log
+               chroot /cloner/mnt ${GRUB_MKCONFIG} -o ${GRUB2_CONFIG} >> /tmp/stdout.log 2>> /tmp/stderr.log
                if [ "$?" = "0" ]
                then
                        ok_msg