During the image build process, I want to replace a large number of configuration files from various packages. For example, /etc/init.d/firewall from firewall4, /rpcd/acl.d/unauthenticated.json from rpcd, etc. To achieve this, I tried adding my custom files into the base-files package, but it caused conflicts, preventing the packages from being installed during the collection process.
check_data_file_clashes: Package firewall4 wants to install file /build_dir/target-i386_pentium4_musl/root-x86/etc/init.d/firewall
But that file is already provided by package * base-files
* opkg_install_cmd: Cannot install package firewall4.
Is there a way to bypass this error or resolve the issue? The number of custom files is quite large, and replacing each package individually is too difficult for me.
Oh, it seems that my description wasn't clear enough.
What I mean is, I have a custom set of init files (like /init.d/firewall), and I want to replace default file by it at the same time, rather than going into each package and replacing them one by one before I run make.
I want to ask if there is a way to achieve this.
Oh great, this is exactly what I needed. The files have been successfully overwritten. However, something wrong occurred with my file /etc/shells.
When /root.orig-x86/etc - default file - has the content
/bin/ash
and my custom file in /files is also
/sbin/wrapper
/bin/bash
the output result file
/sbin/wrapper
/bin/bash/bin/bash
/bin/rbash
I'm really confused about this. Do have any ideal?