1
0
mirror of https://github.com/lxsang/meta-rpi-diya.git synced 2025-07-31 05:00:42 +02:00

add settings to enable readonly fs

This commit is contained in:
DanyLE
2023-07-10 09:32:40 +02:00
parent 5ab57b8e5d
commit b358e26252
9 changed files with 31 additions and 13 deletions

View File

@ -1,2 +1,4 @@
l root root 0644 /etc/network/interfaces /home/diya/etc/network/interfaces
l root root 0644 /etc/dropbear /home/diya/etc/dropbear
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

@ -25,9 +25,9 @@ case "$1" in
chown -R diya:diya /home/diya
rm /boot/home_partition_should_be_formated
fi
if [ -e "/boot/install" ];then
cp -rf /boot/install/* /home/diya
rm -rf /boot/install
if [ -e "/boot/wpa_supplicant.conf" ];then
install -m 0644 /boot/wpa_supplicant.conf /var/etc/network
rm /boot/wpa_supplicant.conf
reboot
fi
# display information

View File

@ -1,6 +1,6 @@
#! /bin/sh
line=$(
sed -e 's/\s*\([\+0-9a-zA-Z]*\).*/\1/' << EOF | fdisk /dev/mmcblk0 | grep /dev/mmcblk0p3
sed -e 's/\s*\([\+0-9a-zA-Z]*\).*/\1/' << EOF | fdisk /dev/mmcblk0 | grep /dev/mmcblk0p4
p
q
EOF
@ -18,11 +18,11 @@ fi
echo "Expanding the partition"
sed -e 's/\s*\([\+0-9a-zA-Z]*\).*/\1/' << EOF | fdisk /dev/mmcblk0
d
3
d # delete partition
4 # number 4
n # new partition
p # primary partition
3 # partition number 3
4 # partition number 4
$start_sector
# default - end of disk
p # print the in-memory partition table