mirror of
https://github.com/bin456789/reinstall.git
synced 2025-06-09 05:50:03 +00:00
el: grub2-mkconfig 时使用 --update-bls-cmdline
This commit is contained in:
parent
84c893150f
commit
837827f30e
6
trans.sh
6
trans.sh
@ -4239,8 +4239,12 @@ EOF
|
||||
fi
|
||||
|
||||
# 主 grub.cfg
|
||||
# --update-bls-cmdline
|
||||
if ls /os/boot/loader/entries/*.conf >/dev/null 2>&1 &&
|
||||
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
|
||||
|
Loading…
x
Reference in New Issue
Block a user