forked from alnux/repo
19 lines
624 B
Bash
19 lines
624 B
Bash
#!/bin/sh
|
|
echo -ne 'Running grub-configmake'
|
|
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 <number> otherwise it won't work.)" grub_root
|
|
read -p "Init binary (full path only)" init_path
|
|
cat > ${install_root}/boot/grub/grub.cfg << "EOF"
|
|
set default=0
|
|
set timeout=5
|
|
|
|
insmod ext2
|
|
set root=(hd0,${root})
|
|
|
|
menuentry "Alnux+Busybox/Linux" {
|
|
linux /boot/bzImage root=/dev/sda${grub_root} rw init=${init path} rw
|
|
}
|
|
EOF
|
|
echo "grub-configmake made it's job"
|
|
exit 0
|