1
0
mirror of https://github.com/lxsang/meta-rpi-diya.git synced 2024-11-08 06:28:23 +01:00

add patch_rootfs to image process

This commit is contained in:
DanyLE 2023-07-10 15:16:38 +02:00
parent 027b99deec
commit f22dde3642
2 changed files with 9 additions and 12 deletions

View File

@ -46,7 +46,13 @@ IMAGE_INSTALL:append = "libcurl \
evtest \
raspi-gpio \
"
patch_rootfs () {
install -d ${IMAGE_ROOTFS}/var/etc
install -m 0644 ${IMAGE_ROOTFS}/etc/passwd ${IMAGE_ROOTFS}/var/etc/
install -m 0644 ${IMAGE_ROOTFS}/etc/group ${IMAGE_ROOTFS}/var/etc/
rm ${IMAGE_ROOTFS}/etc/passwd
rm ${IMAGE_ROOTFS}/etc/group
}
IMAGE_POSTPROCESS_COMMAND += " patch_rootfs "
#
# usermod -a -G audio diya;
# usermod -a -G avahi diya

View File

@ -28,12 +28,3 @@ do_install() {
install -m 0755 ${WORKDIR}/expandfs.sh ${D}/usr/bin/expandfs.sh
install -m 0755 ${WORKDIR}/fs_resize ${DEPLOY_DIR_IMAGE}/
}
pkg_postinst:${PN}-patch () {
#!/bin/sh
install -d ${D}/var/etc
install -m 0644 ${D}/etc/passwd ${D}/var/etc/
install -m 0644 ${D}/etc/group ${D}/var/etc/
rm ${D}/etc/passwd
rm ${D}/etc/group
}