mirror of
https://github.com/bin456789/reinstall.git
synced 2026-04-25 07:24:17 +08:00
debian: 修复在 256M 内存安装模式下无法识别 nvme 硬盘
This commit is contained in:
11
reinstall.sh
11
reinstall.sh
@@ -3480,8 +3480,15 @@ EOF
|
||||
for driver in $(get_disk_drivers $xda); do
|
||||
echo "using driver: $driver"
|
||||
case $driver in
|
||||
nvme) extra_drivers+=" nvme nvme-core" ;;
|
||||
# xen 的横杠特别不同
|
||||
nvme)
|
||||
extra_drivers+=" nvme nvme-core"
|
||||
# debian 13+ / kali 有 nvme-auth 模块
|
||||
# 添加后才能识别 nvme 硬盘
|
||||
if grep -q nvme-auth lib/modules/$kver/modules.order; then
|
||||
extra_drivers+=" nvme-auth"
|
||||
fi
|
||||
;;
|
||||
# xen 的横杠特别不同
|
||||
xen_blkfront) extra_drivers+=" xen-blkfront" ;;
|
||||
xen_scsifront) extra_drivers+=" xen-scsifront" ;;
|
||||
virtio_blk | virtio_scsi | hv_storvsc | vmw_pvscsi) extra_drivers+=" $driver" ;;
|
||||
|
||||
Reference in New Issue
Block a user