mirror of
https://github.com/LibreELEC/LibreELEC.tv.git
synced 2025-07-24 11:16:51 +00:00
init: only fsck hfs+ when booting from hfs+
Only fsck an HFS+ partition when we booted from an HFS+ partition. This should only be true on AppleTV where we need to ensure the HFSX volume is clean before mounting. It is false on other MacOS dual-boot configurations where HFS+ partitions are present. This resolves #2929,
This commit is contained in:
parent
77f82ca3fa
commit
db78221e4d
@ -342,7 +342,7 @@
|
||||
}
|
||||
|
||||
hfsdiskprep() {
|
||||
for DEVICE in /dev/sd*; do
|
||||
for DEVICE in $(/bin/busybox blkid /dev/sd* | sed -e "s,\",,g"| grep $boot); do
|
||||
for device in $(/bin/busybox blkid $DEVICE); do
|
||||
case $device in
|
||||
TYPE=*)
|
||||
|
Loading…
x
Reference in New Issue
Block a user