Commit c757d45a authored by Florent Revest's avatar Florent Revest

initramfs-boot-android: Disable ext4's delayed allocation, this may result in...

initramfs-boot-android: Disable ext4's delayed allocation, this may result in slightly less efficient data access (I haven't noticed anything) but much better data resilience across hard reboot. This should solve some of the soft-brick issues Asteroid had
parent f960d5f1
......@@ -69,7 +69,7 @@ while [ ! -e /sys/block/mmcblk0 ] ; do
done
/sbin/fsck.ext4 -p /dev/$sdcard_partition
mount -t auto -o rw,noatime,nodiratime /dev/$sdcard_partition /sdcard
mount -t auto -o rw,noatime,nodiratime,nodelalloc /dev/$sdcard_partition /sdcard
[ $? -eq 0 ] || fail "Failed to mount the sdcard. Cannot continue."
info "Checking for loop rootfs image on the sdcard..."
......@@ -82,7 +82,7 @@ BOOT_DIR="/sdcard"
if [ -e $ANDROID_MEDIA_DIR/asteroidos.ext4 ] ; then
# Boots from a /sdcard/asteroidos.ext4 loop file
info "Rootfs image found at $ANDROID_MEDIA_DIR/asteroidos.ext4; mounting it now ..."
mount -o noatime,nodiratime,sync,rw,loop $ANDROID_MEDIA_DIR/asteroidos.ext4 /loop
mount -o noatime,nodiratime,nodelalloc,sync,rw,loop $ANDROID_MEDIA_DIR/asteroidos.ext4 /loop
[ $? -ne 0 ] || BOOT_DIR="/loop"
fi
......
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