From 50361e88547dd11e6dd993233440601690b6e0b9 Mon Sep 17 00:00:00 2001 From: Ohio2 Date: Mon, 12 Jul 2021 21:01:20 +0200 Subject: [PATCH] grubcfg remade --- grub-configmake/payload/usr/bin/grub-configmake | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/grub-configmake/payload/usr/bin/grub-configmake b/grub-configmake/payload/usr/bin/grub-configmake index 1e01b29..f9c4409 100644 --- a/grub-configmake/payload/usr/bin/grub-configmake +++ b/grub-configmake/payload/usr/bin/grub-configmake @@ -1,7 +1,8 @@ #!/bin/sh -echo -ne 'Running grub-configmake' -if [ -z "${init_path}" ] -if [ -z "${grub_root} "] +echo 'Running grub-configmake' +read -p "What is the install root you are using?" 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 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 @@ -12,11 +13,8 @@ if [ -z "${grub_root} "] grub_root=${grub_root} EOF else -else - read -p "What is the install root you are using?" install_root . ${install_root}/etc/grub-defaults.cfg fi -fi cat > ${install_root}/boot/grub/grub.cfg << "EOF" set default=0 set timeout=5