Jump to content

Newbie question


mikeaa

Recommended Posts

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

Link to comment
Share on other sites

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. :(

 

 

Link to comment
Share on other sites

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.

Link to comment
Share on other sites

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

Link to comment
Share on other sites

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

Link to comment
Share on other sites

Guest
This topic is now closed to further replies.
×
×
  • Create New...

Important Information

Terms of Use - Privacy Policy - Guidelines