Hi Jonas, > Am 23.02.2017 um 16:31 schrieb Jonas Smedegaard <[email protected]>: > > Quoting H. Nikolaus Schaller (2017-02-23 15:51:34) >> Hi Jonas, >> >>> Am 23.02.2017 um 14:33 schrieb Jonas Smedegaard <[email protected]>: >>> >>> Quoting H. Nikolaus Schaller (2017-02-23 13:58:23) >>>> Hi Jonas, >>>> despite the production issues I am working a little on improving >>>> our Debian default rootfs for the GTA04. >>>> >>>> I just found out recently that there is a rarely known capability >>>> to define /etc/network/interfaces.d/* files which can be sourced >>>> by the master /e/n/i. >>>> >>>> This would solve the issue that we do a hard overwrite of /e/n/i >>>> to configure the usb0 ethernet gadget and real ethernet on boards >>>> which have hardware (BeagleBoard XM, PandaBoard, OMAP5EVM) right >>>> after building the debootstrap. >>>> >>>> Instead, we could just add specific config files for the 2 or 3 >>>> interfaces we have in our letux devices with low risk of overwriting >>>> anything else. And if they interfere they can easily be removed. >>>> >>>> But I could not find the default version of /e/n/i installed >>>> during debootstrap to check if it really sources the eni.d. >>>> Debian Packages search (on the web) shows no package where it is contained. >>>> >>>> So how is this file created during debootstrap? >>> >>> I believe debootstrap does *not* create the file /etc/network/interfaces >>> - like hosts.conf and a few other core files it need manual creation if >>> not using debian-installer. >> >> Ah, ok. I see. Maybe I have to find out by experiment... It shouldn't be >> difficult to debootstrap a new system on the GTA04 (I think I already have >> a script for this).
Ok, I did run on the gta04: mkdir /debian debootstrap --arch armhf stretch /debian/ http://ftp.us.debian.org/debian and now I have: root@letux:~# ls -l /debian/etc/network total 24 drwxr-xr-x 2 root root 4096 Feb 23 21:00 if-down.d drwxr-xr-x 2 root root 4096 Jan 30 13:32 if-post-down.d drwxr-xr-x 2 root root 4096 Jan 30 13:32 if-pre-up.d drwxr-xr-x 2 root root 4096 Feb 23 21:00 if-up.d -rw-r--r-- 1 root root 142 Feb 23 21:00 interfaces drwxr-xr-x 2 root root 4096 Jan 30 13:32 interfaces.d root@letux:~# cat /debian/etc/network/interfaces # interfaces(5) file used by ifup(8) and ifdown(8) # Include files from /etc/network/interfaces.d: source-directory /etc/network/interfaces.d root@letux:~# So there is a fresh /e/n/i and /e/n/i.d created and it is set up to source the /e/n/i.d That is fine and like I hoped! So we can provide letux-usb0 or letux-eth0 network configs for single interfaces so that e.g. USB networking works out of the box even if you have no GUI. Next I will check if that is already a feature of Jessie or was introduced in Stretch. BR, Nikolaus
signature.asc
Description: Message signed with OpenPGP using GPGMail
_______________________________________________ Community mailing list [email protected] http://lists.goldelico.com/mailman/listinfo.cgi/community http://www.tinkerphones.org
