{"action":"closed","issue":{"url":"https://api.github.com/repos/8devices/carambola2/issues/60","labels_url":"https://api.github.com/repos/8devices/carambola2/issues/60/labels{/name}","comments_url":"https://api.github.com/repos/8devices/carambola2/issues/60/comments","events_url":"https://api.github.com/repos/8devices/carambola2/issues/60/events","html_url":"https://github.com/8devices/carambola2/issues/60","id":120583584,"number":60,"title":"Customizing files when building sysupgrade image","user":{"login":"1am","id":959323,"avatar_url":"https://avatars.githubusercontent.com/u/959323?v=3","gravatar_id":"","url":"https://api.github.com/users/1am","html_url":"https://github.com/1am","followers_url":"https://api.github.com/users/1am/followers","following_url":"https://api.github.com/users/1am/following{/other_user}","gists_url":"https://api.github.com/users/1am/gists{/gist_id}","starred_url":"https://api.github.com/users/1am/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/1am/subscriptions","organizations_url":"https://api.github.com/users/1am/orgs","repos_url":"https://api.github.com/users/1am/repos","events_url":"https://api.github.com/users/1am/events{/privacy}","received_events_url":"https://api.github.com/users/1am/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":6,"created_at":"2015-12-05T19:57:17Z","updated_at":"2015-12-07T14:12:55Z","closed_at":"2015-12-07T14:12:55Z","body":"Hello,\r\n\r\nI wanted to ask about customization of the whole filesystem which will be created on a Carambola2 based device after re-flashing. \r\n\r\nLong 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.\r\n\r\nAfter some more reading I've found that by default ImageBuilder will look for the file system structure in *<buildroot dir>/files/* [via OpenWRT wiki](https://wiki.openwrt.org/doc/howto/build?s#custom_files). 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... \r\nLooking a bit further I've decided to take a look at [Arduino Yun ditribution repo](https://github.com/arduino/openwrt-yun) which already contains the directory I'm looking for.\r\n\r\nGiven 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?"}}