summaryrefslogtreecommitdiff
path: root/disk/part.c
diff options
context:
space:
mode:
Diffstat (limited to 'disk/part.c')
-rw-r--r--disk/part.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/disk/part.c b/disk/part.c
index 43485c9148..8c65cdb60d 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) ||