conf_replace - Printable Version +- Ventoy Forums (https://forums.ventoy.net) +-- Forum: Ventoy Plugin —— Ventoy 插件 (https://forums.ventoy.net/forumdisplay.php?fid=3) +--- Forum: Ventoy Plugin Forum (https://forums.ventoy.net/forumdisplay.php?fid=4) +--- Thread: conf_replace (/showthread.php?tid=2217) |
conf_replace - nguyen ha thai trong - 10-07-2022 You can add the conf_add plugin similar to the conf_replace plugin, but instead of replacing grub.cfg/isolinux.cfg it adds the code to grub.cfg/isolinux.cfg. RE: conf_replace - longpanda - 10-08-2022 conf_add will break the directory metadata of ISO file. It's not in the same difficulty level as conf_replace and IMHO it's rarely used. RE: conf_replace - alive - 10-08-2022 (10-08-2022, 01:13 AM)longpanda Wrote: conf_add will break the directory metadata of ISO file. conf_add 应该可以通过基于 conf_replace 的方法实现:把 ISO 内的配置文件内容读过来,加上用户定义的内容,再利用 conf_replace 把生成的配置替换进去。 RE: conf_replace - longpanda - 10-08-2022 (10-08-2022, 02:57 AM)alive Wrote:(10-08-2022, 01:13 AM)longpanda Wrote: conf_add will break the directory metadata of ISO file. 这个相当于是 conf_append,我感觉没太大必要,用户自己在新的文件里面内包含原来的配置文件内容就可以了。 conf_replace 基本的使用场景就是这种,新的配置文件一般不会重新写,都是在原来的基础上修改或者增加配置。 RE: conf_replace - nguyen ha thai trong - 10-09-2022 very thank you |