mirror of
https://github.com/lxsang/meta-rpi-diya.git
synced 2025-04-06 00:26:44 +02:00
add patch_rootfs to image process
This commit is contained in:
parent
027b99deec
commit
f22dde3642
@ -46,7 +46,13 @@ IMAGE_INSTALL:append = "libcurl \
|
|||||||
evtest \
|
evtest \
|
||||||
raspi-gpio \
|
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
|
|
@ -28,12 +28,3 @@ do_install() {
|
|||||||
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}/
|
||||||
}
|
}
|
||||||
|
|
||||||
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
|
|
||||||
}
|
|
Loading…
x
Reference in New Issue
Block a user