diff options
| author | Michael Brown | 2009-08-02 12:17:02 +0200 |
|---|---|---|
| committer | Michael Brown | 2009-08-02 12:17:02 +0200 |
| commit | f42b2932f8cd55583a9e024ad4cf7484f17fb7fa (patch) | |
| tree | 9cc43cb79abbbdf70b8bd6ab7f7b2599997e1a54 /src/util/genliso | |
| parent | [build] Make .liso image generation silent unless errors occur (diff) | |
| download | ipxe-f42b2932f8cd55583a9e024ad4cf7484f17fb7fa.tar.gz ipxe-f42b2932f8cd55583a9e024ad4cf7484f17fb7fa.tar.xz ipxe-f42b2932f8cd55583a9e024ad4cf7484f17fb7fa.zip | |
[build] Allow safe concurrent builds of .iso, .liso and .sdsk targets
The geniso, genliso and gensdsk scripts contain hard-coded temporary
directory names, and so could potentially collide with each other when
run as part of a concurrent build (e.g. "make -j 4").
Fix by using mktemp to generate suitable temporary directory names.
Diffstat (limited to 'src/util/genliso')
| -rwxr-xr-x | src/util/genliso | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/src/util/genliso b/src/util/genliso index ac9924a6d..aa5178521 100755 --- a/src/util/genliso +++ b/src/util/genliso @@ -26,13 +26,12 @@ esac out=$1 shift -dir=bin/liso.dir -mkdir -p $dir +dir=`mktemp -d bin/liso.dir.XXXXXX` img=$dir/boot.img mformat -f 1440 -C -i $img :: -cfg=bin/syslinux.cfg +cfg=$dir/syslinux.cfg cat > $cfg <<EOF # These default options can be changed in the genliso script SAY gPXE ISO boot image generated by genliso |
