1
0
mirror of https://github.com/lxsang/meta-rpi-diya.git synced 2025-02-13 13:22:47 +01:00

use overlayfs for /etc

This commit is contained in:
DanyLE 2023-07-10 17:59:26 +02:00
parent 3baa2d265c
commit c516cb6685
2 changed files with 3 additions and 1 deletions

View File

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

View File

@ -3,5 +3,7 @@ SRC_URI += " file://itf_diya "
do_install:append () { do_install:append () {
rm ${D}/etc/network/interfaces 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 install -m 0644 ${WORKDIR}/itf_diya ${D}/etc/network/interfaces
} }