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

add settings to enable readonly fs

This commit is contained in:
DanyLE 2023-07-10 10:19:19 +02:00
parent b358e26252
commit 7aba1f2772
5 changed files with 3 additions and 8 deletions

View File

@ -9,6 +9,7 @@ EXTRA_USERS_PARAMS = "usermod -p BJpK8ADNDLsGg root; \
usermod -a -G tty diya; \
usermod -a -G input diya; \
usermod -a -G dialout diya; \
usermod -a -G audio diya; \
usermod -a -G sudo diya \
"
IMAGE_BOOT_FILES:append = "fs_resize"

View File

@ -3,7 +3,5 @@ SRC_URI += "file://interfaces"
do_install:append () {
rm ${D}/etc/network/interfaces
install -d ${D}/var/etc/
install -d ${D}/var/etc/network
install -m 0644 ${WORKDIR}/interfaces ${D}/var/etc/network
install -m 0644 ${WORKDIR}/interfaces-custom ${D}/var/etc/network/interfaces
}

View File

@ -1,4 +1,3 @@
d root root 0755 /var/etc/network none
d root root 0755 /var/etc/dropbear none
l root root 0644 /etc/network/interfaces /var/etc/network/interfaces
l root root 0644 /etc/dropbear /var/etc/dropbear

View File

@ -19,11 +19,8 @@ case "$1" in
echo "Trying to format the home partition"
umount /dev/mmcblk0p3
yes | mkfs.ext4 /dev/mmcblk0p3
mount /dev/mmcblk0p3 /home
mkdir -p /home/diya/etc/network
mkdir -p /home/diya/etc/dropbear
chown -R diya:diya /home/diya
rm /boot/home_partition_should_be_formated
reboot
fi
if [ -e "/boot/wpa_supplicant.conf" ];then
install -m 0644 /boot/wpa_supplicant.conf /var/etc/network