From db78221e4d9f18512ffb58ded2d39e9367b92673 Mon Sep 17 00:00:00 2001 From: Christian Hewitt Date: Thu, 13 Feb 2014 07:01:17 +0400 Subject: [PATCH] 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, --- packages/sysutils/busybox/scripts/init | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/sysutils/busybox/scripts/init b/packages/sysutils/busybox/scripts/init index 04ebc3a6ad..5f78f71f35 100755 --- a/packages/sysutils/busybox/scripts/init +++ b/packages/sysutils/busybox/scripts/init @@ -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=*)