Building image, keeping config files

#1

Hello,
i started building my own image, starting from the almost perfect hnyman image for R7800 and changing a couple of things (for example, adding nginx and sftp server)
incredibly it works and i can install the image :slight_smile:
but i have a couple of problems:

  • i lost the system->software menu item in Luci and i don't know why
  • i put in the files folder also my config files for nginx, but the default config installed by nginx wins. i assume it is created after. how can i fix this?

thanks

0 Likes

#2

nginx: I guess, that your nginx is auto started by standard script in /etc/init.d
Which will provide the "default" config via/from uci to nginx.
Disable the automatic start of nginx (i.e. using /etc/uci-defaults), and do the start of nginx yourself, i.e. from rc.local

0 Likes

#3

ok it makes sense, i see two scripts in uci-defaults related with nginx, i'll try working on those (or adding one more to be executed later..)
thanks.
any idea on the luci "software" menu item missing?

0 Likes

#4

No, sorry. I never use LuCI in custom built image, as quite often I need unusual config options/files, anyway. Like for nginx. I always do direct mods to the config files in /etc/config, if required.

0 Likes