diff options
Diffstat (limited to 'firmware/include/dircache_redirect.h')
-rw-r--r-- | firmware/include/dircache_redirect.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/firmware/include/dircache_redirect.h b/firmware/include/dircache_redirect.h index 5c3f630d74..f51ce70690 100644 --- a/firmware/include/dircache_redirect.h +++ b/firmware/include/dircache_redirect.h | |||
@@ -150,7 +150,13 @@ static inline void volume_onmount_internal(IF_MV_NONVOID(int volume)) | |||
150 | /* we need to mount the drive before we can access it */ | 150 | /* we need to mount the drive before we can access it */ |
151 | root_mount_path(path, 0); /* root could be different folder don't hide */ | 151 | root_mount_path(path, 0); /* root could be different folder don't hide */ |
152 | 152 | ||
153 | /*BUGFIX bootloader is less selective about which drives it will mount -- revisit */ | ||
154 | #if defined(HAVE_MULTIDRIVE) && (NUM_VOLUMES_PER_DRIVE == 1) | ||
155 | if (volume_drive(volume) == boot_data.boot_volume | ||
156 | || volume == boot_data.boot_volume) | ||
157 | #else | ||
153 | if (volume == boot_data.boot_volume) /* boot volume contained in uint8_t payload */ | 158 | if (volume == boot_data.boot_volume) /* boot volume contained in uint8_t payload */ |
159 | #endif | ||
154 | { | 160 | { |
155 | int rtlen = get_redirect_dir(rtpath, sizeof(rtpath), volume, "", ""); | 161 | int rtlen = get_redirect_dir(rtpath, sizeof(rtpath), volume, "", ""); |
156 | while (rtlen > 0 && rtpath[--rtlen] == PATH_SEPCH) | 162 | while (rtlen > 0 && rtpath[--rtlen] == PATH_SEPCH) |