From 8366d90a197780866aae68eda441f884619964bd Mon Sep 17 00:00:00 2001 From: Tobias Powalowski Date: Wed, 3 May 2006 16:27:38 +0000 Subject: "added my changes" git-svn-id: http://projects.archlinux.org/svn/initramfs/mkinitcpio@49 880c04e9-e011-0410-abf7-b926e227c9cd --- PKGBUILD | 27 +++++++++++++++++++++++++++ hooks/usb | 2 -- install/autodetect | 23 +++++++++++++++++++++++ install/filesystems | 2 +- install/ide | 2 +- install/sata | 2 +- install/scsi | 2 +- install/udev | 7 +++---- install/usb | 4 ++-- mkinitcpio | 2 +- mkinitcpio-0.1-1.pkg.tar.gz | Bin 0 -> 17149 bytes mkinitcpio.tar.bz2 | Bin 0 -> 12868 bytes 12 files changed, 60 insertions(+), 13 deletions(-) create mode 100644 PKGBUILD create mode 100644 mkinitcpio-0.1-1.pkg.tar.gz create mode 100644 mkinitcpio.tar.bz2 diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 0000000..40c5b9f --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,27 @@ +# $Id: PKGBUILD,v 1.63 2005/12/26 09:54:29 tpowa Exp $ +# Maintainer : Tobias Powalowski , Aaron Griffin + +pkgname=mkinitcpio +pkgver=0.1 +pkgrel=1 +pkgdesc="Program to create initramfs images for archlinux" +url="http://www.archlinux.org/" +depends=('klibc' 'klibc-extras' 'klibc-udev' 'gen-init-cpio') +source=(mkinitcpio.tar.bz2) + +build() +{ + cd $startdir/src/ + # fixing paths in mkinitcpio + sed -i -e 's|FILELIST=".tmpfilelist"|FILELIST="/tmp/.tmpfilelist"|g' mkinitcpio + sed -i -e 's|CONFIG="mkinitcpio.conf"|CONFIG="/etc/mkinitcpio.conf"|g' mkinitcpio + sed -i -e 's|FUNCTIONS="functions"|FUNCTIONS="/lib/initcpio/functions"|g' mkinitcpio + sed -i -e 's|HOOKDIR="hooks"|HOOKDIR="/lib/initcpio/hooks"|g' mkinitcpio + sed -i -e 's|INSTDIR="install"|INSTDIR="/lib/initcpio/install"|g' mkinitcpio + install -D -m644 mkinitcpio.conf $startdir/pkg/etc/mkinitcpio.conf + install -D -m755 mkinitcpio $startdir/pkg/sbin/mkinitcpio + install -D -m755 init $startdir/pkg/lib/initcpio/init + install -D -m644 functions $startdir/pkg/lib/initcpio/functions + cp -r hooks/ $startdir/pkg/lib/initcpio/ + cp -r install/ $startdir/pkg/lib/initcpio/ +} diff --git a/hooks/usb b/hooks/usb index ece3950..1a91fe2 100644 --- a/hooks/usb +++ b/hooks/usb @@ -1,8 +1,6 @@ # vim: set ft=sh: run_hook () { - msg -n "Loading usb modules..." - /bin/modprobe -aq $(/bin/cat /sys/bus/usb/devices/*/modalias) >/dev/null 2>&1 #allow 'usbdelay' on the kernel param line msg -n "waiting for usb to settle..." /bin/sleep ${usbdelay:-5} 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 <