Auto use memdisk mode when booting iKuai OS.

This commit is contained in:
longpanda
2022-05-31 17:39:54 +08:00
parent 2cd22da8fb
commit 7f2f845a68
2 changed files with 32 additions and 5 deletions

View File

@@ -1301,7 +1301,7 @@ function iso_common_menuentry {
unset vt_system_id
unset vt_volume_id
vt_chosen_img_path vt_chosen_path vt_chosen_size
vt_chosen_img_path vt_chosen_path vt_chosen_size vt_chosen_name
vt_parse_iso_volume "${vtoy_iso_part}${vt_chosen_path}" vt_system_id vt_volume_id vt_volume_space
if [ $vt_volume_space -ne $vt_chosen_size ]; then
@@ -1349,10 +1349,17 @@ function iso_common_menuentry {
elif vt_iso_vd_id_begin 0 1 "KolibriOS"; then
set vtMemDiskBoot=1
fi
fi
fi
#For iKuai8 (<64MB)
if [ $vt_chosen_size -le 67108864 ]; then
if vt_str_begin "$vt_chosen_name" "iKuai"; then
set vtMemDiskBoot=1
fi
fi
fi
vt_iso_vd_id_clear
if [ "$grub_platform" = "pc" ]; then
if [ -n "$vtMemDiskBoot" ]; then