Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
conf_replace
#1
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.
Reply
#2
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.
Reply
#3
(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 把生成的配置替换进去。
Reply
#4
(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 基本的使用场景就是这种,新的配置文件一般不会重新写,都是在原来的基础上修改或者增加配置。
Reply
#5
very thank you
Reply


Forum Jump:


Users browsing this thread: 4 Guest(s)