Commit 7917d6a0 authored by Florent Revest's avatar Florent Revest

initramfs-boot-android: Run fsck before mounting userdata partition

parent ca3aadfd
......@@ -67,6 +67,8 @@ while [ ! -e /sys/block/mmcblk0 ] ; do
info "Waiting for mmcblk0..."
sleep 1
done
/sbin/fsck.ext4 -p /dev/$sdcard_partition
mount -t auto -o rw,noatime,nodiratime /dev/$sdcard_partition /sdcard
[ $? -eq 0 ] || fail "Failed to mount the sdcard. Cannot continue."
......
FILESEXTRAPATHS_prepend := "${THISDIR}/${PN}:"
S = "${WORKDIR}"
RDEPENDS_${PN} += "e2fsprogs-e2fsck"
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment