mirror of https://github.com/01-edu/public.git
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
23 lines
389 B
23 lines
389 B
#!/usr/bin/env bash |
|
|
|
# Install Grub |
|
|
|
script_dir="$(cd -P "$(dirname "$BASH_SOURCE")" && pwd)" |
|
cd $script_dir |
|
. set.sh |
|
|
|
disk=$1 |
|
|
|
sed -i -e 's/message=/message_null=/g' /etc/grub.d/10_linux |
|
|
|
cat <<EOF>> /etc/default/grub |
|
GRUB_TIMEOUT=0 |
|
GRUB_RECORDFAIL_TIMEOUT=0 |
|
GRUB_TERMINAL=console |
|
GRUB_DISTRIBUTOR=`` |
|
GRUB_DISABLE_OS_PROBER=true |
|
GRUB_DISABLE_SUBMENU=y |
|
EOF |
|
|
|
update-grub |
|
grub-install $disk
|
|
|