mer-hybris / hybris-initrd

initrd generation submodule for flashable Sailfish OS image based boot images and recovery images.
2 stars 17 forks source link

[initrd] Use explicit dot-file for FS resize status. Fixes JB#35480 #17

Closed izh1979 closed 8 years ago

izh1979 commented 8 years ago

On first boot LVM and filesystem resize can be interrupted in the middle of the process by removing a battery. It could lead to a state when LVM is resized but filesystems are not. And or init-scripts didn't try to restart resizing.

By using dot-file as an indicator of successful filesystem resize we can be sure that even after power loss resizing will continue on the next boot.

Signed-off-by: Igor Zhbanov igor.zhbanov@jolla.com

izh1979 commented 8 years ago

Someone must test whether filesystem can be fixed by e2fsck after interruption in the middle of e2fsresize. In worst case factory-reset should be enforced.

izh1979 commented 8 years ago

Updated.

izh1979 commented 8 years ago

Updated v2.

izh1979 commented 8 years ago

Updated v3.

saukko commented 8 years ago

Code it self looks good to me now, have not tested it though.

:+1:

mkosola commented 8 years ago

Tested Jolla C :+1: