mikeaa Posted June 20, 2018 Posted June 20, 2018 Hi all, here's a newbie question: -How to change root-file-system? Eg. for ex. change settings in a file /etc/network/interfaces, when building the whole image. I tried to use the build/userpatches/overlay folder and add changed files there, but didn't work... I'm probably missing something. br. Mike
Igor Posted June 20, 2018 Posted June 20, 2018 18 minutes ago, mikeaa said: /etc/network/interfaces We don't use ifupdown any more. For setting network credentials, check this file: https://github.com/armbian/build/blob/master/packages/bsp/armbian_first_run.txt.template
guidol Posted June 20, 2018 Posted June 20, 2018 28 minutes ago, Igor said: We don't use ifupdown any more. A long time I also didnt used the ifupdown.... but on some nightly/dev images I had to go back to ifupdown, because some times I didnt get a IP or could set an IP...or when I could set an IP (and DNS) I couldnt connect to the Internet.....this while using Network Manager with nmtui and the onboard eth0. But when I use ifupdown it mostly works.... if not I had to use a USB-Network card. In Bionic are we at another network service than the Network Manager? In real debian stretch on PC there seems to be another service used than Network Manager.
Igor Posted June 20, 2018 Posted June 20, 2018 1 minute ago, guidol said: In real debian stretch on PC there seems to be another service used than Network Manager. Yes, it's an upstream mess and in general, people are against Network Manager ... which was in a very bad state years ago, but today ... well, it works mostly just fine and cases where don't are rare. It's a nightmare maintaining all this and from our perspective, it would be wise to stick only to one. That's why our Bionic defaults are Network Manager.
mikeaa Posted June 20, 2018 Author Posted June 20, 2018 1 hour ago, Igor said: We don't use ifupdown any more. For setting network credentials, check this file: https://github.com/armbian/build/blob/master/packages/bsp/armbian_first_run.txt.template Hello Igor, thanx for fast reply ! Sorry about this, but I used the file /etc/network/interfaces just as an example. This was not about setting network settinges etc., but howto change files within the root-file-system, as a new ex. /etc/hostname file... how to get changed/patched in build. I got patches workking perfectly for u-bbot & kernel, but rootfs is a bit of a mystery for me... br. Mike
Igor Posted June 20, 2018 Posted June 20, 2018 17 minutes ago, mikeaa said: I got patches workking perfectly for u-bbot & kernel, but rootfs is a bit of a mystery for me... https://docs.armbian.com/Developer-Guide_User-Configurations/#user-provided-image-customization-script Before an image is closed your script can adjust whatever you like. Another example: https://github.com/igorpecovnik/iot
mikeaa Posted June 20, 2018 Author Posted June 20, 2018 JESS ! Thanks, exactly what I was looking for.
Recommended Posts