Giter Club home page Giter Club logo

Comments (6)

dangowrt avatar dangowrt commented on June 2, 2024

The scripts generates 3 images in total:
First, it uses ImageBuilder to generate the sysupgrade That's where OPENWRT_UPG_PACKAGES is being used as a parameter passed to the ImageBuilder as PACKAGES.

Next, the installer re-packs the initramfs image, removes packages in OPENWRT_REMOVE_PACKAGES and adds packages on OPENWRT_ADD_REC_PACKAGES. This is the recovery image.

Then the installer re-packs the initramfs image, removes packages in OPENWRT_REMOVE_PACKAGES and adds packages on OPENWRT_ADD_PACKAGES, and adds files for the installer itself (script, bootloader files, recovery image). This is the installer image

from owrt-ubi-installer.

ferboiar avatar ferboiar commented on June 2, 2024

thx for the answer dangowrt

So if I want to add packages to the image that is installed for the first time (installer image?), I have to add them to OPENWRT_ADD_PACKAGES var.

And what about the package list? Do I have to write both the luci-app and the CLI one? or is the luci-app package enough? I have doubts about what to do with packages like banIP or adblock, if I should indicate "luci-app-banip" alone, or "banip luci-app-banip"

from owrt-ubi-installer.

dangowrt avatar dangowrt commented on June 2, 2024

First run (invisisble, writes bootloader and recovery and reboots): OPENWRT_ADD_PACKAGES

Recovery stage (first time you see web-interface): OPENWRT_ADD_REC_PACKAGES

Final production system (sysupgrade): OPENWRT_UPD_PACKAGES

Regarding how to list packages: In your example, tt's enough to list luci-app-banip as it depends on banip and will make sure it's installed. Same for adblock.

from owrt-ubi-installer.

ferboiar avatar ferboiar commented on June 2, 2024

So, where should I indicate new packages to be included in the final producion system? I understand that i should do it in OPENWRT_UPD_PACKAGES, right?

from owrt-ubi-installer.

dangowrt avatar dangowrt commented on June 2, 2024

Yes it's that variable.
If you just want to generate a sysugprade image which can be loaded using this installer or an existing OpenWrt installation, you do not need to modify the installer for that. You can just use https://chef.libremesh.org/ or the OpenWrt ImageBuilder directly.

from owrt-ubi-installer.

ferboiar avatar ferboiar commented on June 2, 2024

oks, thank you very much for your help dango :)

from owrt-ubi-installer.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.