mirror of
https://github.com/lxsang/meta-rpi-diya.git
synced 2024-12-26 18:58:20 +01:00
use overlayfs for /etc
This commit is contained in:
parent
c516cb6685
commit
4637985cdd
@ -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 /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
|
EOF
|
||||||
}
|
}
|
@ -3,7 +3,5 @@ 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
|
||||||
}
|
}
|
@ -27,4 +27,8 @@ do_install() {
|
|||||||
install -m 0644 ${WORKDIR}/80_diya ${D}${sysconfdir}/default/volatiles
|
install -m 0644 ${WORKDIR}/80_diya ${D}${sysconfdir}/default/volatiles
|
||||||
install -m 0755 ${WORKDIR}/expandfs.sh ${D}/usr/bin/expandfs.sh
|
install -m 0755 ${WORKDIR}/expandfs.sh ${D}/usr/bin/expandfs.sh
|
||||||
install -m 0755 ${WORKDIR}/fs_resize ${DEPLOY_DIR_IMAGE}/
|
install -m 0755 ${WORKDIR}/fs_resize ${DEPLOY_DIR_IMAGE}/
|
||||||
|
|
||||||
|
install -d ${D}/var/etc
|
||||||
|
install -d ${D}/var/etc/upper
|
||||||
|
install -d ${D}/var/etc/work
|
||||||
}
|
}
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
d root root 0755 /var/etc/upper none
|
#d root root 0755 /var/etc/upper none
|
||||||
d root root 0755 /var/etc/work none
|
#d root root 0755 /var/etc/work none
|
||||||
|
|
||||||
# l root root 0644 /etc/dropbear /var/etc/dropbear
|
# l root root 0644 /etc/dropbear /var/etc/dropbear
|
||||||
|
Loading…
Reference in New Issue
Block a user