1
0
mirror of https://github.com/lxsang/meta-rpi-diya.git synced 2025-08-01 05:31:02 +02:00

use overlayfs for /etc

This commit is contained in:
DanyLE
2023-07-10 18:15:50 +02:00
parent c516cb6685
commit 4637985cdd
4 changed files with 7 additions and 5 deletions

View File

@ -2,6 +2,6 @@ hostname = "diya"
do_install:append () {
cat >> ${D}${sysconfdir}/fstab <<EOF
# add overlay for /etc
overlay /test overlay defaults,nofail,lowerdir=/etc,upperdir=/var/etc/upper,workdir=/var/etc/work 0 2
overlay /etc overlay defaults,nofail,lowerdir=/etc,upperdir=/var/etc/upper,workdir=/var/etc/work 0 2
EOF
}

View File

@ -3,7 +3,5 @@ SRC_URI += " file://itf_diya "
do_install:append () {
rm ${D}/etc/network/interfaces
install -d ${D}/test/
install -m 0644 ${WORKDIR}/itf_diya ${D}/test/interfaces
install -m 0644 ${WORKDIR}/itf_diya ${D}/etc/network/interfaces
}