</div><!-- /.box -->\r
\r
\r
+\r
+ <div class="box box-primary box-solid">\r
+ <div class="box-header with-border">\r
+ <h3 class="box-title" style="font-size: 14px;font-weight: bold;">VTOY_LINUX_REMOUNT\r
+ <span id="id_span_desc_cn"> —— Linux 启动后继续访问ISO文件所在分区</span></h3>\r
+ <div class="box-tools pull-right">\r
+ <button class="btn btn-box-tool" data-widget="collapse"><i class="fa fa-minus"></i></button>\r
+ </div><!-- /.box-tools -->\r
+ </div><!-- /.box-header -->\r
+ <div class="box-body no-padding">\r
+ <table class="table table-bordered no-padding">\r
+ <tr style="font-weight:bold;">\r
+ <td class="td_ctrl_col" id="td_title_setting">选项设置</td>\r
+ <td>\r
+ <label class="radio-inline">\r
+ <input type="radio" id="id_ctrl_linux_remount_radio0" name="id_ctrl_linux_remount_radio" data-type="0" value="0"/> <span style="font-weight:bold;">0</span>\r
+ </label> \r
+ <label class="radio-inline">\r
+ <input type="radio" id="id_ctrl_linux_remount_radio1" name="id_ctrl_linux_remount_radio" data-type="1" value="1"/> <span style="font-weight:bold;">1</span>\r
+ </label>\r
+ </td>\r
+ </tr>\r
+ <tr id="tr_title_desc_cn">\r
+ <td class="td_ctrl_col" id="td_title_desc">选项说明</td>\r
+ <td>\r
+ <code style="font-weight: bold;">0</code> Linux启动后不需要继续访问ISO文件所在的分区。<br/>\r
+ <code style="font-weight: bold;">1</code> Linux启动后需要继续访问ISO文件所在的分区。<br/><br/>\r
+ 该选项只对 Linux 系统镜像有效。<br/>\r
+ 默认情况下,受Linux内核相关功能的限制,对于Linux系统,在启动后无法继续访问ISO文件所在的分区。在mount的时候会提示 device busy。<br/>\r
+ 如果这里选择 1,则 Ventoy 会尝试通过一些特殊的手段绕过内核的这个限制,但是这个功能是实验性质的,没有经过大规模和长时间的验证。 \r
+ </td>\r
+ </tr>\r
+ <tr id="tr_title_desc_en">\r
+ <td class="td_ctrl_col" id="td_title_desc">Option Description</td>\r
+ <td>\r
+ <code style="font-weight: bold;">0</code> I don't need to access the image partition after boot.<br/>\r
+ <code style="font-weight: bold;">1</code> I need to access the image partition after boot. <br/><br/>\r
+ This option is only avaliable for Linux distro image files. <br/>\r
+\r
+ By default, the image partition where the ISO files locate can not be accessed after boot. When you try to mount it you will get device busy error.\r
+ This is due to linux kernel restriction (device-mapper module).<br/>\r
+ If you select 1 here, Ventoy will try to bypass the restriction with some special mechanism.<br/>\r
+ But it should be noted that, this is an experimental feature and is not fully tested.\r
+ \r
+ </td>\r
+ </tr>\r
+ </table>\r
+ </div><!-- /.box-body -->\r
+ </div><!-- /.box -->\r
+\r
+\r
\r
\r
<div class="box box-primary box-solid">\r
var level;\r
\r
data.win11_bypass_check = parseInt($('input:radio[name=id_ctrl_bypass_win11_radio]:checked').val());\r
+ data.linux_remount = parseInt($('input:radio[name=id_ctrl_linux_remount_radio]:checked').val());\r
data.default_search_root = $('input:text[id=id_ctrl_text_search_root]').val();\r
data.menu_timeout = parseInt($('input:text[id=id_ctrl_text_timeout]').val());\r
data.default_image = $('input:text[id=id_ctrl_text_default_img]').val();\r
function VtoyFillCurrentPageItem(data) {\r
//VTOY_WIN11_BYPASS_CHECK\r
$('input:radio[name=id_ctrl_bypass_win11_radio]')[data.win11_bypass_check].checked = true;\r
+ $('input:radio[name=id_ctrl_linux_remount_radio]')[data.linux_remount].checked = true;\r
\r
//VTOY_DEFAULT_SEARCH_ROOT\r
$('input:text[id=id_ctrl_text_search_root]').val(data.default_search_root);\r
method : 'save_control',\r
index: current_tab_index,\r
win11_bypass_check: data.win11_bypass_check,\r
+ linux_remount:data.linux_remount,\r
default_search_root: data.default_search_root,\r
menu_timeout: data.menu_timeout,\r
default_image: data.default_image,\r
\r
$('input[type=radio]').each(function(){\r
var id = $(this).attr('id');\r
- if (id.startsWith('id_ctrl')) {\r
+ if (typeof(id) != 'undefined' && id.startsWith('id_ctrl')) {\r
$(this).change(VtoySaveCurrentPage);\r
}\r
});\r