summaryrefslogtreecommitdiff
path: root/mkinitramfs
diff options
context:
space:
mode:
authorJeff Bailey <jbailey@ubuntu.com>2005-08-17 00:01:51 -0400
committerJeff Bailey <jbailey@ubuntu.com>2005-08-17 00:01:51 -0400
commit9a9de97229d09d9876575775a080a4056fcffcb5 (patch)
treeb8c66a8648a65d6ccb892e7d1154cbd33c822abf /mkinitramfs
parentf903a759dea3c85c88bbec151337efd2c64ba3bf (diff)
downloadinitramfs-tools-9a9de97229d09d9876575775a080a4056fcffcb5.tar.gz
initramfs-tools-9a9de97229d09d9876575775a080a4056fcffcb5.zip
initramfs-tools (0.21) breezy; urgency=low
"All that I desire to point out is the general principle that life imitates art far more than art imitates life." - Oscar Wilde * mkinitramfs: Define MODULESDIR and use it. * hook-functions: Use MODULESDIR (add_modules_from_file): Do not add .ko extension to file lists. Call force_load instead of twiddling conf/modules directly. (Ubuntu #13372) (force_load): New function. (copy_exec): Attempt to use non-optimsed libraries if available. (Ubuntu #13470) (auto_add_modules) Include forcedeth (Ubuntu #13448) * hooks/kernelextras: New file. (Ubuntu #13414) * debian/initramfs-tools.postinst: Preserve /etc/mkinitrd/modules if possible on new install. (Ubuntu #13372) -- Jeff Bailey <jbailey@ubuntu.com> Tue, 16 Aug 2005 15:56:00 -0400
Diffstat (limited to 'mkinitramfs')
-rw-r--r--mkinitramfs7
1 files changed, 5 insertions, 2 deletions
diff --git a/mkinitramfs b/mkinitramfs
index 3257c94..7344a03 100644
--- a/mkinitramfs
+++ b/mkinitramfs
@@ -70,8 +70,10 @@ if [ -d ${outfile} ]; then
exit 1
fi
-if [ ! -e /lib/modules/${version} ]; then
- echo "Cannot find /lib/modules/${version}"
+MODULESDIR="/lib/modules/${version}"
+
+if [ ! -e ${MODULESDIR} ]; then
+ echo "Cannot find ${MODULESDIR}"
exit 1
fi
@@ -80,6 +82,7 @@ __TMPCPIOGZ=$(mktemp -t mkinitramfs-OL_XXXXXX) || exit 1
# Export environment for hook scripts.
#
+export MODULESDIR
export version
export CONFDIR
export DESTDIR