Grub-defconfig removed & added grub-configmake, added pthread and curses-lib (ncurses) #18
1 changed files with 4 additions and 6 deletions
|
@ -1,7 +1,8 @@
|
||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
echo -ne 'Running grub-configmake'
|
echo 'Running grub-configmake'
|
||||||
if [ -z "${init_path}" ]
|
read -p "What is the install root you are using?" install_root
|
||||||
if [ -z "${grub_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
|
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
|
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 "What drive do you want to set root to? (Only <number> otherwise it won't work.)" grub_root
|
||||||
|
@ -12,11 +13,8 @@ if [ -z "${grub_root} "]
|
||||||
grub_root=${grub_root}
|
grub_root=${grub_root}
|
||||||
EOF
|
EOF
|
||||||
else
|
else
|
||||||
else
|
|
||||||
read -p "What is the install root you are using?" install_root
|
|
||||||
. ${install_root}/etc/grub-defaults.cfg
|
. ${install_root}/etc/grub-defaults.cfg
|
||||||
fi
|
fi
|
||||||
fi
|
|
||||||
cat > ${install_root}/boot/grub/grub.cfg << "EOF"
|
cat > ${install_root}/boot/grub/grub.cfg << "EOF"
|
||||||
set default=0
|
set default=0
|
||||||
set timeout=5
|
set timeout=5
|
||||||
|
|
Loading…
Reference in a new issue