modify grub-configmake and add a lot of option

This commit is contained in:
Ohio2 2021-07-12 05:18:53 +02:00
parent a20ebc20b2
commit 7118dd99e6

View file

@ -16,8 +16,11 @@ echo
echo echo
echo echo
echo echo
read -p "What drive do you want to set root to? (Only <number> otherwise it won't work.)" root read -p "What is the install root you are using?" install_root
cat > /boot/grub/grub.cfg << "EOF" mkdir -p ${install_root}/boot/grub
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 default=0
set timeout=5 set timeout=5
@ -25,7 +28,7 @@ insmod ext2
set root=(hd0,${root}) set root=(hd0,${root})
menuentry "Alnux+Busybox/Linux" { menuentry "Alnux+Busybox/Linux" {
linux /boot/bzImage root=/dev/sda${root} rw linux /boot/bzImage root=/dev/sda${grub_root} rw init=${init path} rw
} }
EOF EOF
echo echo