mirror of
https://github.com/bin456789/reinstall.git
synced 2025-02-20 05:33:07 +08:00
core: 修复使用 mellanox 网卡时没有驱动
This commit is contained in:
parent
debf06d43f
commit
e6b9ee41cc
17
reinstall.sh
17
reinstall.sh
@ -1431,7 +1431,7 @@ The current machine is $basearch, but it seems the ISO is for $iso_arch. Continu
|
||||
else
|
||||
echo 'DD: Image is not EFI.'
|
||||
warn '
|
||||
The current machine uses EFI boot, but the DD image is not an EFI image.
|
||||
The current machine uses EFI boot, but the DD image seems not an EFI image.
|
||||
Continue with DD?
|
||||
当前机器使用 EFI 引导,但 DD 镜像可能不是 EFI 镜像。
|
||||
继续 DD?'
|
||||
@ -3418,7 +3418,20 @@ remove_useless_initrd_files() {
|
||||
cd lib/modules/*/kernel/drivers/net/ethernet/
|
||||
for item in *; do
|
||||
case "$item" in
|
||||
intel | amazon | google) ;;
|
||||
# 甲骨文 arm 用自定义镜像支持设为 mlx5 vf 网卡,且不是 azure 那样显示两个网卡
|
||||
amazon | google | mellanox) ;;
|
||||
intel)
|
||||
(
|
||||
cd "$item"
|
||||
for sub_item in *; do
|
||||
case "$sub_item" in
|
||||
# 有 e100.ko e1000文件夹 e1000e文件夹
|
||||
e100* | lib* | *vf) ;;
|
||||
*) rm -rf $sub_item ;;
|
||||
esac
|
||||
done
|
||||
)
|
||||
;;
|
||||
*) rm -rf $item ;;
|
||||
esac
|
||||
done
|
||||
|
Loading…
x
Reference in New Issue
Block a user