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:47:05 +02:00
parent edf2889417
commit 94d91ed6ee

View File

@ -18,8 +18,8 @@ case "$1" in
if [ -f "/boot/home_partition_should_be_formated" ]; then
echo "Trying to format the home partition"
umount /dev/mmcblk0p3
yes | mkfs.ext4 /dev/mmcblk0p3
mount /dev/mmcblk0p3 /home
yes | mkfs.ext4 /dev/mmcblk0p4
mount /dev/mmcblk0p4 /home
mkdir -p /home/diya
chown -R diya:diya /home/diya
rm /boot/home_partition_should_be_formated