diff options
author | Thomas Bächler <thomas@archlinux.org> | 2008-03-15 22:14:36 +0100 |
---|---|---|
committer | Thomas Bächler <thomas@archlinux.org> | 2008-03-15 22:14:36 +0100 |
commit | 5ce327f59920366b4f43eec12becf484383643ca (patch) | |
tree | 6cc426c8eecc32b0dba16e54dc858f932473fe94 /install | |
parent | ee858697632359dcf4577132a38d1ce107e84ae3 (diff) | |
download | mkinitcpio-5ce327f59920366b4f43eec12becf484383643ca.tar.gz mkinitcpio-5ce327f59920366b4f43eec12becf484383643ca.tar.xz |
Use a temporary directory instead of several files. trap cleanup
Diffstat (limited to 'install')
-rw-r--r-- | install/autodetect | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/install/autodetect b/install/autodetect index 2ae8db6..4042956 100644 --- a/install/autodetect +++ b/install/autodetect @@ -2,7 +2,7 @@ install () { - MODULE_FILE="$(mktemp /tmp/initcpio_modules.XXXXXX)" + MODULE_FILE="$(${TMPDIR}/autodetect_modules)" #blegh, we'll let /tmp clean itself up AUTODETECT="$(auto_modules -e '/scsi/' -e '/block' -e '/fusion/' \ -e '/usb/' -e '/ide/' -e '/ieee1394/' -e '/cdrom' \ @@ -50,11 +50,11 @@ install () case "${m}" in #*/ieee1394/*) echo -e "sbp2\nsd_mod\nsr_mod" >> "${MODULE_FILE}";; *ext3*) echo "jbd" >> "${MODULE_FILE}" ;; - *afs*)echo "rxrpc" >> "${MODULE_FILE}" ;; + *afs*) echo "rxrpc" >> "${MODULE_FILE}" ;; *cramfs*) echo "zlib_inflate" >> "${MODULE_FILE}" ;; *isofs*) echo "zlib_inflate" >> "${MODULE_FILE}" ;; *msdos*) echo "fat" >> "${MODULE_FILE}" ;; - *vfat*)echo -e "fat\nnls_cp437" >> "${MODULE_FILE}" ;; + *vfat*) echo -e "fat\nnls_cp437" >> "${MODULE_FILE}" ;; *ocfs2*) echo -e "ocfs2_dlm\njbd\nocfs2_nodemanager\nconfigfs" >> "${MODULE_FILE}" ;; esac echo "${modname}" >> "${MODULE_FILE}" |