Commit afc1744ec87d26965fc9a311554e0d50962555bd

Authored by Hans de Goede
Committed by Tom Rini
1 parent 83636fa09d

disk/part: Only build hostfs special handling when CONFIG_SANDBOX is set

This is not necessary / useful when not building with CONFIG_SANDBOX and
with the addition of ubifs support to the generic fs commands it actually
gets in the way, since both operate on a fake / NULL blkdev.

Signed-off-by: Hans de Goede <hdegoede@redhat.com>
Acked-by: Stephen Warren <swarren@nvidia.com>

Showing 1 changed file with 2 additions and 0 deletions Side-by-side Diff

... ... @@ -511,6 +511,7 @@
511 511 int part;
512 512 disk_partition_t tmpinfo;
513 513  
  514 +#ifdef CONFIG_SANDBOX
514 515 /*
515 516 * Special-case a pseudo block device "hostfs", to allow access to the
516 517 * host's own filesystem.
... ... @@ -529,6 +530,7 @@
529 530  
530 531 return 0;
531 532 }
  533 +#endif
532 534  
533 535 /* If no dev_part_str, use bootdevice environment variable */
534 536 if (!dev_part_str || !strlen(dev_part_str) ||