mirror of
https://github.com/bin456789/reinstall.git
synced 2025-01-19 04:49:13 +08:00
core: 精简 grub 模块
This commit is contained in:
parent
3c06319c4e
commit
1a3b376ad5
@ -1077,8 +1077,9 @@ install_grub_win() {
|
|||||||
grub=$grub_dir/grub
|
grub=$grub_dir/grub
|
||||||
|
|
||||||
# 设置 grub 内嵌的模块
|
# 设置 grub 内嵌的模块
|
||||||
grub_modules+=" normal minicmd ls echo test cat reboot halt linux linux16 chain search all_video configfile"
|
# 原系统是 windows,因此不需要 ext2 lvm xfs btrfs
|
||||||
grub_modules+=" scsi part_msdos part_gpt fat ntfs ntfscomp ext2 lvm xfs lzopio xzio gzio zstd"
|
grub_modules+=" normal minicmd serial ls echo test cat reboot halt linux linux16 chain search all_video configfile"
|
||||||
|
grub_modules+=" scsi part_msdos part_gpt fat ntfs ntfscomp lzopio xzio gzio zstd"
|
||||||
if ! is_efi; then
|
if ! is_efi; then
|
||||||
grub_modules+=" biosdisk"
|
grub_modules+=" biosdisk"
|
||||||
fi
|
fi
|
||||||
@ -1618,8 +1619,6 @@ if is_use_grub; then
|
|||||||
set timeout=5
|
set timeout=5
|
||||||
menuentry "$(get_entry_name)" {
|
menuentry "$(get_entry_name)" {
|
||||||
insmod all_video
|
insmod all_video
|
||||||
insmod lvm
|
|
||||||
insmod xfs
|
|
||||||
search --no-floppy --file --set=root /reinstall-vmlinuz
|
search --no-floppy --file --set=root /reinstall-vmlinuz
|
||||||
$linux_cmd
|
$linux_cmd
|
||||||
$initrd_cmd
|
$initrd_cmd
|
||||||
|
Loading…
x
Reference in New Issue
Block a user