diff options
author | Dave Reisner <dreisner@archlinux.org> | 2011-10-10 22:18:15 +0200 |
---|---|---|
committer | Dave Reisner <dreisner@archlinux.org> | 2011-10-16 23:43:16 +0200 |
commit | 71e960e95f880e02cb735faa14d28565b6312f7c (patch) | |
tree | ebabc454eb11c28607cbfbad611d3537f6fef4f5 /install/autodetect | |
parent | 5d635b6d9553cf266d3e15e450feff5337fbc28a (diff) | |
download | mkinitcpio-71e960e95f880e02cb735faa14d28565b6312f7c.tar.gz mkinitcpio-71e960e95f880e02cb735faa14d28565b6312f7c.tar.xz |
mkinitcpio: avoid stomping on TMPDIR from the environment
cc36db45 was a bit too strict about localizing variables and blew out
TMPDIR, which might be a legit variable sourced from the calling
environment. Restore this behavior with a bit of refactoring, and
additionally add in a check to make sure the temporary directory is
writeable before proceeding.
Fixes FS#26373.
Signed-off-by: Dave Reisner <dreisner@archlinux.org>
Diffstat (limited to 'install/autodetect')
-rw-r--r-- | install/autodetect | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/install/autodetect b/install/autodetect index 4001977..35f1cb2 100644 --- a/install/autodetect +++ b/install/autodetect @@ -1,7 +1,7 @@ #!/bin/bash build() { - MODULE_FILE=$TMPDIR/autodetect_modules + MODULE_FILE=$workdir/autodetect_modules if [[ ! -d /sys/devices ]]; then error "/sys does not appear to be mounted. Unable to use autodetection" |