grub-cfgmake modified

This commit is contained in:
Ohio2 2021-07-12 23:10:05 +02:00
parent 12a9cd48b0
commit 2a2e71366a

View file

@ -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 <number> 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 <number> 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}