busybox-initramfs: check fs only on hfs and hfs+ fs again

Signed-off-by: Stephan Raue <stephan@openelec.tv>
This commit is contained in:
Stephan Raue 2011-06-13 21:28:24 +02:00
parent 7ad010143e
commit ed1a1ae8a7

View File

@ -94,8 +94,8 @@ REBOOT="0"
}
mount_part() {
progress "check filesystem $1 ..."
/sbin/fsck -M -T -a $1 > /dev/null 2>&1
# progress "check filesystem $1 ..."
# /sbin/fsck -M -T -a $1 > /dev/null 2>&1
for i in 1 2 3 4 5 6 7 8 9 10; do
ERR_ENV=1
@ -118,6 +118,21 @@ REBOOT="0"
fi
}
hfsdiskprep() {
for DEV in `/bin/busybox ls /dev/sd*`; do
FS_TYPE=$(/sbin/blkid -o value -s TYPE $DEV)
if [ "$FS_TYPE" = "hfs" -o "$FS_TYPE" = "hfsplus" ]; then
progress "check filesystem $DEV ..."
/sbin/fsck_hfs -r -y $DEV > /dev/null 2>&1
fi
done
}
# deal with hfs partitions
if [ -x /sbin/fsck_hfs ]; then
hfsdiskprep
fi
mount_part "$boot" "/flash" "ro,noatime"
if [ -f "/flash/MACH_KERNEL" ]; then