core: 手动加载 lvm 模块

This commit is contained in:
bin456789 2024-01-03 21:28:10 +08:00
parent c4c7c8e253
commit c21a94bfee
No known key found for this signature in database
GPG Key ID: EE301B386DE6C11B

View File

@ -1628,10 +1628,12 @@ if is_use_grub; then
fi fi
# 生成 grub 配置 # 生成 grub 配置
# 实测 centos 7 lvm 要手动加载 lvm 模块
echo $target_cfg echo $target_cfg
cat <<EOF | tee $target_cfg cat <<EOF | tee $target_cfg
set timeout=5 set timeout=5
menuentry "$(get_entry_name)" { menuentry "$(get_entry_name)" {
$(is_in_windows || echo 'insmod lvm')
insmod all_video insmod all_video
search --no-floppy --file --set=root /reinstall-vmlinuz search --no-floppy --file --set=root /reinstall-vmlinuz
$linux_cmd $linux_cmd