Question about NetworkManager sample files

I was editing /etc/NetworkManager/system-connections/resin-wifi-01 and noticed the README.ignore and the resin-sample.ignore file in the same directory.

So I looked for other .ignore files and found only those two files, but in multiple locations:

# find / -name "*.ignore"
/resin-boot/system-connections/README.ignore
/resin-boot/system-connections/resin-sample.ignore
/mnt/boot/system-connections/README.ignore
/mnt/boot/system-connections/resin-sample.ignore
/mnt/state/root-overlay/etc/NetworkManager/system-connections/README.ignore
/mnt/state/root-overlay/etc/NetworkManager/system-connections/resin-sample.ignore
/mnt/sysroot/active/balena/overlay2/ee6ef84b45d9a0bf1d5903e64d652679311c816e4f88616e086c6332a71f0ed7/diff/resin-boot/system-connections/README.ignore
/mnt/sysroot/active/balena/overlay2/ee6ef84b45d9a0bf1d5903e64d652679311c816e4f88616e086c6332a71f0ed7/diff/resin-boot/system-connections/resin-sample.ignore
/etc/NetworkManager/system-connections/README.ignore
/etc/NetworkManager/system-connections/resin-sample.ignore

What sorcery is this? They don’t appear to be links:

-rw------- 1 root root 301 Jan 30 20:00 /resin-boot/system-connections/README.ignore
-rw------- 1 root root 245 Jan 30 20:00 /resin-boot/system-connections/resin-sample.ignore
-rwxr-xr-x 1 root root 301 Feb  4 19:08 /mnt/boot/system-connections/README.ignore
-rwxr-xr-x 1 root root 245 Feb  4 19:08 /mnt/boot/system-connections/resin-sample.ignore
-rw------- 1 root root 301 Feb  4 19:08 /mnt/state/root-overlay/etc/NetworkManager/system-connections/README.ignore
-rw------- 1 root root 245 Feb  4 19:08 /mnt/state/root-overlay/etc/NetworkManager/system-connections/resin-sample.ignore
-rw------- 1 root root 301 Jan 30 20:00 /mnt/sysroot/active/balena/overlay2/ee6ef84b45d9a0bf1d5903e64d652679311c816e4f88616e086c6332a71f0ed7/diff/resin-boot/system-connections/README.ignore
-rw------- 1 root root 245 Jan 30 20:00 /mnt/sysroot/active/balena/overlay2/ee6ef84b45d9a0bf1d5903e64d652679311c816e4f88616e086c6332a71f0ed7/diff/resin-boot/system-connections/resin-sample.ignore
-rw------- 1 root root 301 Feb  4 19:08 /etc/NetworkManager/system-connections/README.ignore
-rw------- 1 root root 245 Feb  4 19:08 /etc/NetworkManager/system-connections/resin-sample.ignore

Hi @jason10.

Our rootfs includes a copy of the boot partition (for hosOS update operations) which includes the files for NM samples as well. At boot time, the connection files from boot partition are copied to the state partition because we want to be able to add and modify connections programmatically as well, and this is bind mounted over /etc/NetworkManager/system-connection

-rw------- 1 root root 301 Jan 30 20:00 /resin-boot/system-connections/README.ignore
-rw------- 1 root root 245 Jan 30 20:00 /resin-boot/system-connections/resin-sample.ignore
These are used by hup as a copy of the boot partition on the root partition

-rwxr-xr-x 1 root root 301 Feb 4 19:08 /mnt/boot/system-connections/README.ignore
-rwxr-xr-x 1 root root 245 Feb 4 19:08 /mnt/boot/system-connections/resin-sample.ignore
Thiese are the boot partition files - mnt boot is a mountpoint

-rw------- 1 root root 301 Feb 4 19:08 /mnt/state/root-overlay/etc/NetworkManager/system-connections/README.ignore
-rw------- 1 root root 245 Feb 4 19:08 /mnt/state/root-overlay/etc/NetworkManager/system-connections/resin-sample.ignore
These are the state partition ones.

-rw------- 1 root root 301 Jan 30 20:00 /mnt/sysroot/active/balena/overlay2/ee6ef84b45d9a0bf1d5903e64d652679311c816e4f88616e086c6332a71f0ed7/diff/resin-boot/system-connections/README.ignore
-rw------- 1 root root 245 Jan 30 20:00 /mnt/sysroot/active/balena/overlay2/ee6ef84b45d9a0bf1d5903e64d652679311c816e4f88616e086c6332a71f0ed7/diff/resin-boot/system-connections/resin-sample.ignore
The rootfs is a docker layer and this is the connect of the current OS

-rw------- 1 root root 301 Feb 4 19:08 /etc/NetworkManager/system-connections/README.ignore
-rw------- 1 root root 245 Feb 4 19:08 /etc/NetworkManager/system-connections/resin-sample.ignore
This is the bind mount to the state partition because rootfs is ro