]> glassweightruler.freedombox.rocks Git - Ventoy.git/blobdiff - Plugson/www/plugson_control.html
update tip message for VTOY_DEFAULT_SEARCH_ROOT (#1373)
[Ventoy.git] / Plugson / www / plugson_control.html
index 6c39190a304f3504e2e499a686023c0558ab5ce9..5b13f7b71f0034085b22aab9af36d877a11e93fb 100644 (file)
                       <td class="td_ctrl_col">选项说明</td>\r
                       <td>\r
                         指定搜索ISO文件的根目录。默认Ventoy会搜索U盘上的所有目录和子目录,当你U盘上有海量的文件时,这个过程会很慢。<br/>\r
                       <td class="td_ctrl_col">选项说明</td>\r
                       <td>\r
                         指定搜索ISO文件的根目录。默认Ventoy会搜索U盘上的所有目录和子目录,当你U盘上有海量的文件时,这个过程会很慢。<br/>\r
-                        这种情况下你可以把ISO文件单独放在某个目录下,然后通过这个变量来指定搜索路径,此时Ventoy就只会搜索该目录及其子目录。\r
+                        这种情况下你可以把ISO文件单独放在某个子目录下,然后通过这个变量来指定搜索路径,此时Ventoy就只会搜索该目录及其子目录。<br/>\r
+                        注意这里不能设置为U盘根目录,必须为一个子目录。\r
                       </td>\r
                     </tr>\r
                     <tr id="tr_title_desc_en">\r
                       <td class="td_ctrl_col">Option Description</td>\r
                       <td>\r
                         The root path where to search the image files. By default, Ventoy will search all the directories and subdirectories in the USB. This will be very slow when you have huge number of files in the USB. \r
                       </td>\r
                     </tr>\r
                     <tr id="tr_title_desc_en">\r
                       <td class="td_ctrl_col">Option Description</td>\r
                       <td>\r
                         The root path where to search the image files. By default, Ventoy will search all the directories and subdirectories in the USB. This will be very slow when you have huge number of files in the USB. \r
-                        In this case, you can put all the image files in one directory and use this to specify the search path. \r
-                        After that Ventoy will only search this directory and its subdirectories for image files.\r
+                        In this case, you can put all the image files in one subdirectory and use this to specify the search path. \r
+                        After that Ventoy will only search this directory and its subdirectories for image files.<br/>\r
+                        Note: the path must not be the mountpoint of the first partition, but a subdirectory.\r
                       </td>\r
                     </tr>\r
                 </table>\r
                       </td>\r
                     </tr>\r
                 </table>\r
         </div><!-- /.box -->\r
     \r
     \r
         </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>&nbsp;&nbsp;&nbsp;&nbsp;\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
     \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
     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
     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
   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
 \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
       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
       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
 \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
       $(this).change(VtoySaveCurrentPage);\r
     }\r
   });\r