diff --git a/grub-configmake/payload/usr/bin/grub-configmake b/grub-configmake/payload/usr/bin/grub-configmake index f9c4409..f349f4d 100644 --- a/grub-configmake/payload/usr/bin/grub-configmake +++ b/grub-configmake/payload/usr/bin/grub-configmake @@ -1,12 +1,16 @@ #!/bin/sh echo 'Running grub-configmake' -read -p "What is the install root you are using?" install_root +echo 'What is the install root you are using?' +read install_root defaults=`cat ${install_root}/etc/grub-defaults.cfg 2>/dev/null` if [ -z "${defaults}" ] - read -p "What is the install root you are using?" install_root + echo "What is the install root you are using?" + read install_root mkdir -p ${install_root}/boot/grub | echo "You probably didn't make /boot" && exit 2 - read -p "What drive do you want to set root to? (Only otherwise it won't work.)" grub_root - read -p "Init binary (full path only)" init_path + echo "What drive do you want to set root to? (Only otherwise it won't work.)" + read grub_root + echo "Init binary (full path only)" + read init_path cat > ${install_root}/etc/grub-defaults.cfg << "EOF" install_root=${install_root} init_path=${init_path}