Update InstallNET.sh

This commit is contained in:
Molly Lau 2023-04-10 23:50:40 +09:00 committed by GitHub
parent dbe8572307
commit 1faee26ac0
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -1651,7 +1651,7 @@ elif [[ ! -z "$GRUBTYPE" && "$GRUBTYPE" == "isGrub2" ]]; then
LoaderPath=$(cat /boot/grub2/grubenv | grep 'saved_entry=' | awk -F '=' '{print $2}')
LpLength=`echo ${#LoaderPath}`
LpFile="/boot/loader/entries/$LoaderPath.conf"
# The saved_entry of OpenCloudOS is equal "0"
# The saved_entry of OpenCloudOS(Tencent Cloud) is equal "0"
# [root@VM-4-11-opencloudos ~]# cat /boot/grub2/grubenv
# GRUB Environment Block
# saved_entry=0