3
0
Fork 0
forked from mirrors/nixpkgs

* Handle the case where /tmp/coverage-data already exists.

svn path=/nixos/trunk/; revision=25486
This commit is contained in:
Eelco Dolstra 2011-01-10 12:22:24 +00:00
parent 8f831338df
commit e09faf4bb3

View file

@ -52,8 +52,8 @@ in
# it to the host filesystem so that we don't need to copy it
# on shutdown.
( eval $(cat /proc/cmdline)
mkdir /hostfs/$hostTmpDir/coverage-data
ln -s /hostfs/$hostTmpDir/coverage-data /tmp/coverage-data
mkdir -p /hostfs/$hostTmpDir/coverage-data
ln -sfn /hostfs/$hostTmpDir/coverage-data /tmp/coverage-data
)
# Mount debugfs to gain access to the kernel coverage data (if