diff options
| author | Scott Garman <scott.a.garman@intel.com> | 2010-10-14 11:29:44 -0700 |
|---|---|---|
| committer | Richard Purdie <rpurdie@linux.intel.com> | 2010-10-14 20:12:04 +0100 |
| commit | 7d7d35f369c271a7b7cf517601d472ab2104297b (patch) | |
| tree | 8c3d75e29babb9ed3bba04e70e17ceee99809772 /scripts/poky-qemu-internal | |
| parent | af404b1372ffe683ae1f3c1914fa9fee6800420c (diff) | |
| download | poky-7d7d35f369c271a7b7cf517601d472ab2104297b.tar.gz | |
poky-qemu: miscellaneous bugfixes
In scenarios where the POKY_NATIVE_SYSROOT env variable hasn't been
set up, bug #427 can still be triggered. This fixes it by running
setup_tmpdir(). This fixes [BUGID #427].
Also, the qemu tap dev lock directory needs to be chmod 777 so that
multiple users can create and delete lock files.
Signed-off-by: Scott Garman <scott.a.garman@intel.com>
Diffstat (limited to 'scripts/poky-qemu-internal')
| -rwxr-xr-x | scripts/poky-qemu-internal | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/scripts/poky-qemu-internal b/scripts/poky-qemu-internal index 2f8af95707..66db0333ee 100755 --- a/scripts/poky-qemu-internal +++ b/scripts/poky-qemu-internal | |||
| @@ -108,7 +108,10 @@ release_lock() { | |||
| 108 | } | 108 | } |
| 109 | 109 | ||
| 110 | LOCKDIR="/tmp/qemu-tap-locks" | 110 | LOCKDIR="/tmp/qemu-tap-locks" |
| 111 | [ ! -d "$LOCKDIR" ] && mkdir $LOCKDIR | 111 | if [ ! -d "$LOCKDIR" ]; then |
| 112 | mkdir $LOCKDIR | ||
| 113 | chmod 777 $LOCKDIR | ||
| 114 | fi | ||
| 112 | 115 | ||
| 113 | IFCONFIG=`which ifconfig` | 116 | IFCONFIG=`which ifconfig` |
| 114 | if [ -z "$IFCONFIG" ]; then | 117 | if [ -z "$IFCONFIG" ]; then |
