-
Notifications
You must be signed in to change notification settings - Fork 43
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Customizing files when building sysupgrade image #60
Comments
Hi, Every package in OpenWRT can supply files/ directory for install to file-system, so normally rootfs contents will depend on packages you select. In your case, you can just put your customized files to |
Thank you! I'll try it out later today. |
Well you can't have per-device settings in image, unless you generate separate image for every device. You can generate some settings with scripts on first boot (/etc/config/network is generated that way). MAC address is the only unique information per-device after flashing, but it's not good for generating passwords if you want them unpredictable. |
Just to clarify, the Where could I find the script for the /etc/config/network generation? I'm not planning to generate passwords with this but it might be good reference for learning how things are set up. |
This script generates network config based on board info:
|
Thank you! I've tested with custom /etc/banner and it worked. |
If I'd want to add custom scripts executed like Maybe there is some reference on the particular directories of the OpenWRT build repo / scripts? I can't find mich in the OpenWrt build system wiki |
You can place them either in |
Hello,
I wanted to ask about customization of the whole filesystem which will be created on a Carambola2 based device after re-flashing.
Long story short, I've made a prototype which is working well and wanted to transfer these settings to more devices, preferably in some automated way... From what I've found so far it's not possible to just make a complete copy of a working system and transfer it to another device. So right now I'm configuring the build process to create the sysupdate image which I need (with all the network, USB devices configured like they should) and I'm kind of stuck with the root filesystem.
After some more reading I've found that by default ImageBuilder will look for the file system structure in /files/ via OpenWRT wiki. The thing is that I can find multiple files subdirectories scattered all over the directories from the repo and build dirs, none of which resemble the final structure - some are missing /etc/config/network files while others contain only the file...
Looking a bit further I've decided to take a look at Arduino Yun ditribution repo which already contains the directory I'm looking for.
Given that I've made a bold assumption that the Carambola makefile was modified in that part to look elsewhere for the root file structure... So given all that, my humble question would be: how do I add/remove/edit file structure which will later be compiled into the openwrt-ar71xx-generic-carambola2-squashfs-sysupgrade.bin tp be used with sysupdate or Caraboot's usb recovery?
The text was updated successfully, but these errors were encountered: