Skip to content
Snippets Groups Projects
Commit afc1744e authored by Hans de Goede's avatar Hans de Goede Committed by Tom Rini
Browse files

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: default avatarHans de Goede <hdegoede@redhat.com>
Acked-by: default avatarStephen Warren <swarren@nvidia.com>
parent 83636fa0
Branches
Tags
No related merge requests found
...@@ -511,6 +511,7 @@ int get_device_and_partition(const char *ifname, const char *dev_part_str, ...@@ -511,6 +511,7 @@ int get_device_and_partition(const char *ifname, const char *dev_part_str,
int part; int part;
disk_partition_t tmpinfo; disk_partition_t tmpinfo;
#ifdef CONFIG_SANDBOX
/* /*
* Special-case a pseudo block device "hostfs", to allow access to the * Special-case a pseudo block device "hostfs", to allow access to the
* host's own filesystem. * host's own filesystem.
...@@ -529,6 +530,7 @@ int get_device_and_partition(const char *ifname, const char *dev_part_str, ...@@ -529,6 +530,7 @@ int get_device_and_partition(const char *ifname, const char *dev_part_str,
return 0; return 0;
} }
#endif
/* If no dev_part_str, use bootdevice environment variable */ /* If no dev_part_str, use bootdevice environment variable */
if (!dev_part_str || !strlen(dev_part_str) || if (!dev_part_str || !strlen(dev_part_str) ||
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment