mirror of
https://github.com/LibreELEC/LibreELEC.tv.git
synced 2025-08-02 07:27:49 +00:00
busybox-initramfs: check fs only on hfs and hfs+ fs again
Signed-off-by: Stephan Raue <stephan@openelec.tv>
This commit is contained in:
parent
7ad010143e
commit
ed1a1ae8a7
@ -94,8 +94,8 @@ REBOOT="0"
|
|||||||
}
|
}
|
||||||
|
|
||||||
mount_part() {
|
mount_part() {
|
||||||
progress "check filesystem $1 ..."
|
# progress "check filesystem $1 ..."
|
||||||
/sbin/fsck -M -T -a $1 > /dev/null 2>&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
|
for i in 1 2 3 4 5 6 7 8 9 10; do
|
||||||
ERR_ENV=1
|
ERR_ENV=1
|
||||||
@ -118,6 +118,21 @@ REBOOT="0"
|
|||||||
fi
|
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"
|
mount_part "$boot" "/flash" "ro,noatime"
|
||||||
|
|
||||||
if [ -f "/flash/MACH_KERNEL" ]; then
|
if [ -f "/flash/MACH_KERNEL" ]; then
|
||||||
|
Loading…
x
Reference in New Issue
Block a user