Ventoy Forums

Full Version: conf_replace
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
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.
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.
(10-08-2022, 01:13 AM)longpanda Wrote: [ -> ]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.

conf_add 应该可以通过基于 conf_replace 的方法实现:把 ISO 内的配置文件内容读过来,加上用户定义的内容,再利用 conf_replace 把生成的配置替换进去。
(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. 
It's not in the same difficulty level as conf_replace and IMHO it's rarely used.

conf_add 应该可以通过基于 conf_replace 的方法实现:把 ISO 内的配置文件内容读过来,加上用户定义的内容,再利用 conf_replace 把生成的配置替换进去。

这个相当于是 conf_append,我感觉没太大必要,用户自己在新的文件里面内包含原来的配置文件内容就可以了。
conf_replace 基本的使用场景就是这种,新的配置文件一般不会重新写,都是在原来的基础上修改或者增加配置。
very thank you