mirror of
https://github.com/lxsang/meta-rpi-diya.git
synced 2024-11-08 06:28:23 +01:00
fix partition problem
This commit is contained in:
parent
02e083d995
commit
aa92ff2454
@ -19,8 +19,10 @@ 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
|
||||
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
|
||||
|
@ -4,7 +4,7 @@
|
||||
|
||||
part /boot --source bootimg-partition --ondisk mmcblk0 --fstype=vfat --label boot --active --align 4096 --size 32
|
||||
# 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
|
||||
part /var/etc --source rootfs --rootfs-dir=${IMAGE_ROOTFS}/var/etc --ondisk mmcblk0 --fstype=ext4 --label diya --align 1024 --size 32
|
||||
# home partition
|
||||
|
Loading…
Reference in New Issue
Block a user