summaryrefslogtreecommitdiffstats
path: root/install/autodetect
diff options
context:
space:
mode:
authorTobias Powalowski <tpowa@archlinux.org>2006-05-03 18:27:38 +0200
committerTobias Powalowski <tpowa@archlinux.org>2006-05-03 18:27:38 +0200
commit8366d90a197780866aae68eda441f884619964bd (patch)
tree04a3de486f39296ea00f796251456fe451e5711d /install/autodetect
parentad1050964eabbbc00547e8c6c91d8a7c3f13598f (diff)
downloadmkinitcpio-8366d90a197780866aae68eda441f884619964bd.tar.gz
mkinitcpio-8366d90a197780866aae68eda441f884619964bd.tar.xz
"added my changes"
git-svn-id: http://projects.archlinux.org/svn/initramfs/mkinitcpio@49 880c04e9-e011-0410-abf7-b926e227c9cd
Diffstat (limited to 'install/autodetect')
-rw-r--r--install/autodetect23
1 files changed, 23 insertions, 0 deletions
diff --git a/install/autodetect b/install/autodetect
index c851a4b..70dc779 100644
--- a/install/autodetect
+++ b/install/autodetect
@@ -17,7 +17,17 @@ install ()
for m in $AUTODETECT; do
echo $(basename ${m//\.ko/}) >> $modtmp
+ # fixing missing depends for filesystems
[ "$m" == "ext3" ] && echo "jbd" >> $modtmp
+ [ "$m" == "afs" ] && echo "rxrpc" >> $modtmp
+ [ "$m" == "cramfs" ] && echo "zlib_inflate" >> $modtmp
+ [ "$m" == "isofs" ] && echo "zlib_inflate" >> $modtmp
+ [ "$m" == "msdos" ] && echo "fat" >> $modtmp
+ [ "$m" == "vfat" ] && echo "fat" >> $modtmp
+ [ "$m" == "ocfs2" ] && echo "ocfs2_dlm" >> $modtmp
+ [ "$m" == "ocfs2" ] && echo "jbd" >> $modtmp
+ [ "$m" == "ocfs2" ] && echo "ocfs2_nodemanager" >> $modtmp
+ [ "$m" == "ocfs2" ] && echo "configfs" >> $modtmp
done
grep "file /lib/modules" ${FILELIST} >>$modall
@@ -35,3 +45,16 @@ install ()
FILES=""
SCRIPT=""
}
+
+help ()
+{
+cat <<HELPEOF
+ This hook shrinks your initramdisk to a smaller size
+ by autodetecting your needed modules.
+ Please take a look at the included modules for completeness,
+ else your system might be unbootable.
+ Valid Hooks are: base,udev,ide,scsi,sata,usb,fw,filesystems
+ Put this hook at the end of your valid hooks.
+ Put other hooks behind autodetect hook.
+HELPEOF
+}