From: Anders Darander <anders@chargestorm.se>
To: Corneliu Stoicescu <corneliux.stoicescu@intel.com>
Cc: "openembedded-core@lists.openembedded.org"
<openembedded-core@lists.openembedded.org>
Subject: Re: [PATCH] oeqa/controllers/beaglebonetarget.py: add conditions for files copied to /boot
Date: Tue, 27 May 2014 08:46:29 +0200 [thread overview]
Message-ID: <20140527064629.GA7185@ad.chargestorm.se> (raw)
In-Reply-To: <1401117992-30582-1-git-send-email-corneliux.stoicescu@intel.com>
* Corneliu Stoicescu <corneliux.stoicescu@intel.com> [140526 15:23]:
> Sometimes the rootfs archive contains the kernel file
> (core-image-full-cmdline) or the dtbs files (core-image-sato). Adding
> verification to add them if they don't allready exist.
> Without this, the first condition would fail and the image deploy task would stop.
What failure and errors are you seeing?
> - '[ ! -e /mnt/testrootfs/boot/uImage ] && cp ~/test-kernel /mnt/testrootfs/boot/uImage',
> + 'if [ ! -e /mnt/testrootfs/boot/uImage ]; then cp ~/test-kernel /mnt/testrootfs/boot/uImage; fi',
It might be that I've had no coffee yet, but I can't see what difference
your change is making (apart from being more verbose)?
The original code checks for the existance of
/mnt/testrootfs/boot/uImage, negates the result and copies the
test-kernel if the negated result is true, i.e. if
/mnt/testrootfs/boot/uImage doesn't exist, copy the test-kernel.
> - self.deploy_cmds.append('[ ! -e /mnt/testrootfs/boot/{0} ] && cp ~/{0} /mnt/testrootfs/boot/'.format(dtbfn))
> + self.deploy_cmds.append('if [ ! -e /mnt/testrootfs/boot/{0} ]; then cp ~/{0} /mnt/testrootfs/boot/'.format(dtbfn) + '; fi')
See above...
Cheers,
Anders
--
Anders Darander
ChargeStorm AB / eStorm AB
next prev parent reply other threads:[~2014-05-27 6:52 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-05-26 15:26 [PATCH] oeqa/controllers/beaglebonetarget.py: add conditions for files copied to /boot Corneliu Stoicescu
2014-05-27 6:46 ` Anders Darander [this message]
2014-05-27 7:02 ` Stoicescu, CorneliuX
2014-05-27 7:15 ` Anders Darander
2014-05-27 7:12 ` Stoicescu, CorneliuX
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20140527064629.GA7185@ad.chargestorm.se \
--to=anders@chargestorm.se \
--cc=corneliux.stoicescu@intel.com \
--cc=openembedded-core@lists.openembedded.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox