From d057413eee0e058b969cadba453c42a1b68f5a3c Mon Sep 17 00:00:00 2001 From: Herman Semenov Date: Fri, 2 Feb 2024 22:07:56 +0000 Subject: [PATCH] Removed duplicate function install grub and set GRUB_CMDLINE_LINUX --- debian9-x86_64.sh | 11 ----------- 1 file changed, 11 deletions(-) diff --git a/debian9-x86_64.sh b/debian9-x86_64.sh index 06c044f..95ae7d4 100755 --- a/debian9-x86_64.sh +++ b/debian9-x86_64.sh @@ -366,17 +366,6 @@ if [ -z "$(dpkg-query -l | grep grub)" ]; then } fi - -if [ -z "$(dpkg-query -l | grep grub)" ]; then - if [ -d /boot/grub2 ]; then - apt-get -y install grub2 - elif [ -d /boot/grub ]; then - apt-get -y install grub-legacy - fi - [ -n "$(grep 'net.ifnames=0' /boot/grub/grub.cfg)" ] && [ ! -f /etc/default/grub ] && { - echo 'GRUB_CMDLINE_LINUX="net.ifnames=0 biosdevname=0"' > /etc/default/grub - } -fi if [ "$UPSTREAM6" != "yes" ]; then if [ "$SOURCES" = "yes" ]; then wget -O /tmp/linux-image-${KERNEL_RELEASE}_amd64.deb ${VPSURL}kernel/linux-image-${KERNEL_RELEASE}_amd64.deb