mirror of
https://github.com/lxsang/meta-rpi-diya.git
synced 2024-12-26 18:58:20 +01:00
move user passwd and group to writable partition
This commit is contained in:
parent
1a0755fed6
commit
789fa4ff5e
10
recipes-core/base-passwd/base-passwd_%.bbappend
Normal file
10
recipes-core/base-passwd/base-passwd_%.bbappend
Normal file
@ -0,0 +1,10 @@
|
||||
|
||||
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
|
@ -1,3 +1,5 @@
|
||||
# d root root 0755 /var/etc/dropbear none
|
||||
l root root 0644 /etc/network/interfaces /var/etc/network/itf_diya
|
||||
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
|
||||
|
Loading…
Reference in New Issue
Block a user