OpenELEC / OpenELEC.tv

OpenELEC - The living room PC for everyone
http://openelec.tv
1.61k stars 883 forks source link

fsck does not check USB storage #4965

Open bam80 opened 8 years ago

bam80 commented 8 years ago

USB storage devices are not ready yet when fsck tries to check the disks - it cause fsck exit with error code 8 which is unhandled in init script. It results system boots as usual with USB disk check silently skipped. The script has block devices polling in mount_common() function, so USB has a chance to settle before mounting, but it occurs after fsck run

stefansaraev commented 8 years ago

add this to the list of countless reasons not to use OE from usb.

bam80 commented 8 years ago

Seems fsck exit error code 8 was handled but didn't work anyway

stefansaraev commented 8 years ago

it has no chance to work correctly prior to all fsckd block devices being available. as said, its one more reason that using usb sticks in production (they are ok for testing) should be avoided.

bam80 commented 8 years ago

@ackalker, @sraue, could we move this device polling to check_disks() boot step?