1
0
mirror of https://github.com/lxsang/meta-rpi-diya.git synced 2024-07-06 00:59:47 +02:00

use overlayfs for /etc

This commit is contained in:
DanyLE 2023-07-10 16:17:45 +02:00
parent 60e28aa4d9
commit a4d1b14a5e
7 changed files with 11 additions and 13 deletions

View File

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

View File

@ -10,7 +10,7 @@ iface wlan0 inet dhcp
# wireless_mode managed
# wireless_essid any
# wpa-driver wext
wpa-conf /var/etc/network/wpa_supplicant.conf
wpa-conf /etc/network/wpa_supplicant.conf
# Ethernet/RNDIS gadget (g_ether)
# ... or on host side, usbnet and random hwaddr

View File

@ -1,9 +1,7 @@
FILESEXTRAPATHS:prepend := "${THISDIR}/files:"
SRC_URI += "file://itf_diya"
SRC_URI += " file://itf_diya "
do_install:append () {
install -d ${D}/var/etc
install -d ${D}/var/etc/network
rm ${D}/etc/network/interfaces
install -m 0644 ${WORKDIR}/itf_diya ${D}/var/etc/network/
install -m 0644 ${WORKDIR}/itf_diya ${D}/etc/network/interfaces
}

View File

@ -1,5 +1,4 @@
# d root root 0755 /var/etc/dropbear none
l root root 0644 /etc/network/interfaces /var/etc/network/itf_diya
d root root 0755 /var/etc/upper none
d root root 0755 /var/etc/work none
# l root root 0644 /etc/dropbear /var/etc/dropbear
# l root root 0644 /etc/passwd /var/etc/passwd
# l root root 0644 /etc/group /var/etc/group

View File

@ -25,7 +25,7 @@ case "$1" in
rm /boot/home_partition_should_be_formated
fi
if [ -e "/boot/wpa_supplicant.conf" ];then
mv /boot/wpa_supplicant.conf /var/etc/network/
mv /boot/wpa_supplicant.conf /etc/network/
reboot
fi
# display information

View File

@ -1 +1,2 @@
CONFIG_TOUCHSCREEN_GOODIX=m
CONFIG_OVERLAY_FS=y

View File

@ -2,5 +2,5 @@ FILESEXTRAPATHS:prepend := "${THISDIR}/files:"
# inherit kernel
SRC_URI += " \
file://goodix.cfg \
file://diya.cfg \
"