mirror of
https://github.com/leitbogioro/Tools.git
synced 2025-09-29 01:45:50 +08:00
Update InstallNET.sh
This commit is contained in:
parent
5dd86984d1
commit
81ce5df3bb
1 changed files with 2 additions and 1 deletions
|
@ -4407,7 +4407,7 @@ if [[ ! -z "$GRUBTYPE" && "$GRUBTYPE" == "isGrub1" ]]; then
|
|||
|
||||
sed -i '$a\\n' /tmp/grub.new
|
||||
|
||||
# To eliminate the undesirable effect of the condition of "initrdfail" in grub for Ubuntu of AWS EC2 arm64 t4g instances.
|
||||
# To eliminate the undesirable effect of the condition of "initrdfail" in grub for Ubuntu series of AWS EC2 arm64 t4g instances.
|
||||
#
|
||||
# menuentry 'Ubuntu' --class ubuntu --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-simple-0694475a-b8e4-4c51-a03f-0c6f41144a12' {
|
||||
# recordfail
|
||||
|
@ -4429,6 +4429,7 @@ if [[ ! -z "$GRUBTYPE" && "$GRUBTYPE" == "isGrub1" ]]; then
|
|||
# initrdfail
|
||||
# }
|
||||
#
|
||||
# The same as AWS Lightsail.
|
||||
[[ -n $(grep "initrdfail" /tmp/grub.new) ]] && {
|
||||
sed -ri 's/\"\$\{initrdfail\}\".*/\"\$\{initrdfail\}\" = \"\" ]; then/g' /tmp/grub.new
|
||||
sed -ri 's/initrdfail/initrdfial/g' /tmp/grub.new
|
||||
|
|
Loading…
Add table
Reference in a new issue