From 2a2e71366a513d40d37bd6b838b03441826843ee Mon Sep 17 00:00:00 2001 From: Ohio2 Date: Mon, 12 Jul 2021 23:10:05 +0200 Subject: [PATCH] grub-cfgmake modified --- grub-configmake/payload/usr/bin/grub-configmake | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) 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}