From fb48fa3500512c34a6b7fa8e1cf712e5fa4c2ce6 Mon Sep 17 00:00:00 2001 From: Will Drewry Date: Fri, 2 Jul 2010 16:35:27 -0500 Subject: [PATCH] TBR: mount_gpt_image: fix missing guard for esp Missing check during mkdir causes failure with -e empty. The tree broke prior to this commit, but this will break the dev build so bypassing hooks. sorry. TEST=reran build_image BUG=none TBR=adlr --- mount_gpt_image.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/mount_gpt_image.sh b/mount_gpt_image.sh index b62b6dd054..3fa7b11919 100755 --- a/mount_gpt_image.sh +++ b/mount_gpt_image.sh @@ -88,7 +88,8 @@ function get_gpt_partitions() { function mount_image() { mkdir -p "${FLAGS_rootfs_mountpt}" mkdir -p "${FLAGS_stateful_mountpt}" - mkdir -p "${FLAGS_esp_mountpt}" + test -n "${FLAGS_esp_mountpt}" && \ + mkdir -p "${FLAGS_esp_mountpt}" # Get the partitions for the image / device. if [ -b ${FLAGS_from} ] ; then