Fix a issue when booting easyos 3.4.3+

This commit is contained in:
longpanda
2022-05-02 18:21:30 +08:00
parent 9baa95359c
commit e1d161af4f
2 changed files with 5 additions and 3 deletions

View File

@@ -1640,7 +1640,9 @@ function ventoy_img_easyos {
if [ -n "$vt_module_ver" ]; then
for mod in "kernel/drivers/md/dm-mod.ko" "kernel/drivers/dax/dax.ko"; do
vt_img_extra_initrd_append (easysfs)/lib/modules/$vt_module_ver/$mod
if [ -e (easysfs)/lib/modules/$vt_module_ver/$mod ]; then
vt_img_extra_initrd_append (easysfs)/lib/modules/$vt_module_ver/$mod
fi
done
fi