1
0
mirror of https://github.com/lxsang/meta-rpi-diya.git synced 2024-10-04 22:36:38 +02:00

fix partition problem

This commit is contained in:
DanyLE 2023-07-10 11:38:42 +02:00
parent 02e083d995
commit aa92ff2454
2 changed files with 4 additions and 2 deletions

View File

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

View File

@ -4,7 +4,7 @@
part /boot --source bootimg-partition --ondisk mmcblk0 --fstype=vfat --label boot --active --align 4096 --size 32 part /boot --source bootimg-partition --ondisk mmcblk0 --fstype=vfat --label boot --active --align 4096 --size 32
# read only roofs # read only roofs
part / --source rootfs --ondisk mmcblk0 --fstype=ext4 --label root --align 4096 --size 150 part / --source rootfs --ondisk mmcblk0 --fstype=ext4 --label root --align 4096 --size 150 --exclude-path=home/ --exclude-path=var/etc/
# modifiable configurations stored in /var/etc # modifiable configurations stored in /var/etc
part /var/etc --source rootfs --rootfs-dir=${IMAGE_ROOTFS}/var/etc --ondisk mmcblk0 --fstype=ext4 --label diya --align 1024 --size 32 part /var/etc --source rootfs --rootfs-dir=${IMAGE_ROOTFS}/var/etc --ondisk mmcblk0 --fstype=ext4 --label diya --align 1024 --size 32
# home partition # home partition