From patchwork Thu Nov 24 10:08:11 2011 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: [1/4] runqemu: look for *image* to be more flexible for image names Date: Thu, 24 Nov 2011 10:08:11 -0000 From: Dexuan Cui X-Patchwork-Id: 15385 Message-Id: <1a0942490d103eab0a5041806613ae16b963ae1b.1322128489.git.dexuan.cui@intel.com> To: openembedded-core@lists.openembedded.org From: Saul Wold Signed-off-by: Saul Wold --- scripts/runqemu | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) diff --git a/scripts/runqemu b/scripts/runqemu index 31e9822..a9a362f 100755 --- a/scripts/runqemu +++ b/scripts/runqemu @@ -114,7 +114,7 @@ while [ $i -le $# ]; do usage fi ;; - *-image-*) + *image*) if [ -z "$ROOTFS" ]; then if [ -f "$arg" ]; then process_filename $arg @@ -307,7 +307,7 @@ findimage() { # Sort rootfs candidates by modification time - the most # recently created one is the one we most likely want to boot. - filenames=`ls -t $where/*core-image*$machine.$extension 2>/dev/null | xargs` + filenames=`ls -t $where/*image*$machine.$extension 2>/dev/null | xargs` for name in $filenames; do if [[ "$name" =~ core-image-sato-sdk || "$name" =~ core-image-sato ||