I want to replace the /etc/network/interfaces file on the resulting image root file system, so I added a bbappend recipe in my meta-rpilinux directory.
[code]maminej@server:~/Yocto/meta-rpilinux/recipes-core/init-ifupdown$ tree . ├── init-ifupdown-1.0 │ └── raspberrypi4-64 │ └── interfaces └── init-ifupdown_1.0.bbappend 2 directories, 2 files[/code] The bbappend file looks like this: [code]maminej@server:~/Yocto/meta-rpilinux/recipes-core/init-ifupdown$ cat init-ifupdown_1.0.bbappend FILESEXTRAPATHS_prepend := "${THISDIR}/init-ifupdown_1.0/${MACHINE}:"[/code] And the interfaces file in that directory looks like this: [code]maminej@server:~/Yocto/meta-rpilinux/recipes-core/init-ifupdown/init-ifupdown-1.0/raspberrypi4-64$ cat interfaces # /etc/network/interfaces -- configuration file for ifup(8), ifdown(8) # The loopback interface auto lo iface lo inet loopback # Wireless interfaces iface wlan0 inet dhcp wireless_mode managed wireless_essid any wpa-driver wext wpa-conf /etc/wpa_supplicant.conf iface atml0 inet dhcp # Wired or wireless interfaces auto eth0 iface eth0 inet static address 169.254.1.100 netmask 255.255.255.0 iface eth1 inet dhcp[/code] After I build my image and look in the work build directory for the init-ifupdown package, I see the correct interfaces file : [code]maminej@server:~/Yocto/poky/build$ cat /home/maminej/Yocto/poky/build/tmp/work/aarch64-poky-linux/init-ifupdown/1.0-r7/image/etc/network/interfaces # /etc/network/interfaces -- configuration file for ifup(8), ifdown(8) # The loopback interface auto lo iface lo inet loopback # Wireless interfaces iface wlan0 inet dhcp wireless_mode managed wireless_essid any wpa-driver wext wpa-conf /etc/wpa_supplicant.conf iface atml0 inet dhcp # Wired or wireless interfaces auto eth0 iface eth0 inet static address 169.254.1.100 netmask 255.255.255.0 iface eth1 inet dhcp[/code] However, after I burn the image to the SD card with this : [code]maminej@server:~/Image$ sudo dd bs=4M if=rpilinux-image-raspberrypi4-64-20231225065644.rootfs.wic of=/dev/sdb status=progress conv=fsync 26+1 records in 26+1 records out 110503936 bytes (111 MB, 105 MiB) copied, 4.52635 s, 24.4 MB/s[/code] I see the "wrong/original" file in etc/network: [code]maminej@server:/media/ROOT/etc/network$ cat interfaces # /etc/network/interfaces -- configuration file for ifup(8), ifdown(8) # The loopback interface auto lo iface lo inet loopback # Wireless interfaces iface wlan0 inet dhcp wireless_mode managed wireless_essid any wpa-driver wext wpa-conf /etc/wpa_supplicant.conf iface atml0 inet dhcp # Wired or wireless interfaces auto eth0 iface eth0 inet dhcp iface eth1 inet dhcp[/code] I am fairly new to Yocto and poky, is it possible that another layer/recipe is overriding the interfaces file ? Note that in my local.conf, I am adding openssh recipe with this : [code]CORE_IMAGE_EXTRA_INSTALL += "openssh"[/code]
-=-=-=-=-=-=-=-=-=-=-=- Links: You receive all messages sent to this group. View/Reply Online (#62037): https://lists.yoctoproject.org/g/yocto/message/62037 Mute This Topic: https://lists.yoctoproject.org/mt/103364053/21656 Group Owner: yocto+ow...@lists.yoctoproject.org Unsubscribe: https://lists.yoctoproject.org/g/yocto/unsub [arch...@mail-archive.com] -=-=-=-=-=-=-=-=-=-=-=-