summaryrefslogtreecommitdiff
path: root/disk
diff options
context:
space:
mode:
authorHans de Goede <hdegoede@redhat.com>2015-09-17 18:46:55 -0400
committerTom Rini <trini@konsulko.com>2015-10-24 13:50:31 -0400
commitafc1744ec87d26965fc9a311554e0d50962555bd (patch)
treea22afc36f15978ea0d61eec3df3b2228a3ceb60d /disk
parent83636fa09d6b35279381b9fc497203a206fbb445 (diff)
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>
Diffstat (limited to 'disk')
-rw-r--r--disk/part.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/disk/part.c b/disk/part.c
index 43485c9148b..8c65cdb60dd 100644
--- a/disk/part.c
+++ b/disk/part.c
@@ -511,6 +511,7 @@ int get_device_and_partition(const char *ifname, const char *dev_part_str,
int part;
disk_partition_t tmpinfo;
+#ifdef CONFIG_SANDBOX
/*
* Special-case a pseudo block device "hostfs", to allow access to the
* host's own filesystem.
@@ -529,6 +530,7 @@ int get_device_and_partition(const char *ifname, const char *dev_part_str,
return 0;
}
+#endif
/* If no dev_part_str, use bootdevice environment variable */
if (!dev_part_str || !strlen(dev_part_str) ||