From c584cf0e957fbbecc17a772b48c0923174d309e9 Mon Sep 17 00:00:00 2001 From: Hung-Te Lin Date: Thu, 13 Jan 2011 15:34:59 +0800 Subject: [PATCH] crosutils/make_factory_package.sh: Support relative path Since there's a pushd call when building images, we have to first retrieve the complete (full/absolute) path of target disk image. BUG=chromium-os:10706 TEST=make_factory_package.sh \ --factory ../build/images/x86-mario/latest/factory_image.bin \ --release ../build/images/x86-mario/latest/chromiumos_image.bin \ --diskimg blah_relative.bin Change-Id: I02e2edb0f76b724337a82dd400297877681bc338 Review URL: http://codereview.chromium.org/6244003 --- make_factory_package.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/make_factory_package.sh b/make_factory_package.sh index 71233fb09c..d89589f8a7 100755 --- a/make_factory_package.sh +++ b/make_factory_package.sh @@ -86,7 +86,7 @@ RELEASE_IMAGE="$(basename "${FLAGS_release}")" FACTORY_IMAGE="$(basename "${FLAGS_factory}")" prepare_img() { - local outdev="$FLAGS_diskimg" + local outdev="$(readlink -f "$FLAGS_diskimg")" local sectors="$FLAGS_sectors" local force_full="true" @@ -191,7 +191,7 @@ else fi generate_img() { - local outdev="$FLAGS_diskimg" + local outdev="$(readlink -f "$FLAGS_diskimg")" local sectors="$FLAGS_sectors" prepare_img