Skip to content
View in the app

A better way to browse. Learn more.

Armbian Community Forums

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

[SOLVED] Correct way of adding files to image

Featured Replies

I have several files I want to embed into the compiled image, such as logos, desktop backgrounds, some public keys, scripts etc.

I can put them in correct place (e.g. /usr/local/bin) or put it in a directory at root (e.g. /MyAppSetup) and run a script to handle/move them.

In the past I was using a private git repo on my server to clone these, but if I'm compiling, I'd like to get rid of this extra layer.

 

I could not find a way to do that. Could someone please advise?

 

Solved by bozden

  • Author

OK, learning...

 

I just recognized customize-image.sh is run in chroot, so direct access to host OS is not possible, maybe there is a variable for host binding which I couldn't find.

On the other hand lib.config is run on host. Although it seems to be used for setting variables, it is source'd, so I can run anything there. So, this might work:

 

cp "${SRC}""${MY_PRODUCT_DIR}" "${SDCARD}""${MY_SETUP_DIR}"

 

And in customize-image.sh, I can move files around and do whatever I like with them.

 

Can somebody please confirm? It takes too long to test...

 

  • Author
  • Solution
2 hours ago, Werner said:

Maybe this help:

 

 

Thank you Werner, that helps.

 

I had a misconception with the namin. "Userpatch" mixed with kernel pathing, "overlay" with overlayfs.

 

After examining the code I found correct keywords for search and found this:

I also recognized from the code that only customize-image.sh is copied to destination and my other files (which I call from it) do not.

 

Now the post you shared comes into play...

 

Thank you again.

 

  • bozden changed the title to [SOLVED] Correct way of adding files to image
Guest
This topic is now closed to further replies.

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.