mirror of
https://github.com/bin456789/reinstall.git
synced 2025-06-09 13:59:58 +00:00
el: grub2-mkconfig 时使用 --update-bls-cmdline
This commit is contained in:
parent
84c893150f
commit
837827f30e
8
trans.sh
8
trans.sh
@ -4239,8 +4239,12 @@ EOF
|
|||||||
fi
|
fi
|
||||||
|
|
||||||
# 主 grub.cfg
|
# 主 grub.cfg
|
||||||
# --update-bls-cmdline
|
if ls /os/boot/loader/entries/*.conf >/dev/null 2>&1 &&
|
||||||
chroot /os/ grub2-mkconfig -o "$grub_o_cfg"
|
chroot /os/ grub2-mkconfig --help | grep -q update-bls-cmdline; then
|
||||||
|
chroot /os/ grub2-mkconfig -o "$grub_o_cfg" --update-bls-cmdline
|
||||||
|
else
|
||||||
|
chroot /os/ grub2-mkconfig -o "$grub_o_cfg"
|
||||||
|
fi
|
||||||
|
|
||||||
# 网络配置
|
# 网络配置
|
||||||
# el7/8 sysconfig
|
# el7/8 sysconfig
|
||||||
|
Loading…
x
Reference in New Issue
Block a user