mirror of
https://github.com/lxsang/meta-rpi-diya.git
synced 2024-11-08 06:28:23 +01:00
move user passwd and group to writable partition
This commit is contained in:
parent
789fa4ff5e
commit
027b99deec
@ -1,10 +0,0 @@
|
||||
|
||||
do_patch_ro_roofs() {
|
||||
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
|
||||
}
|
||||
|
||||
addtask patch_ro_roofs after do_populate_sysroot
|
@ -29,3 +29,11 @@ do_install() {
|
||||
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…
Reference in New Issue
Block a user