r1910 - trunk/packages/initramfs

alexander at linuxfromscratch.org alexander at linuxfromscratch.org
Sun Jun 10 04:31:25 PDT 2007


Author: alexander
Date: 2007-06-10 05:31:25 -0600 (Sun, 10 Jun 2007)
New Revision: 1910

Modified:
   trunk/packages/initramfs/init.in
Log:
Add IDE option support to the initramfs (by Bryan Kadzban)

Modified: trunk/packages/initramfs/init.in
===================================================================
--- trunk/packages/initramfs/init.in	2007-06-09 15:05:27 UTC (rev 1909)
+++ trunk/packages/initramfs/init.in	2007-06-10 11:31:25 UTC (rev 1910)
@@ -150,6 +150,9 @@
 		option=${param#*.}
 		echo "options $module $option" >>/etc/modprobe.conf
 		;;
+	ide=*|idebus=*|ide[0123]=*|hd[a-z]=*)
+		ide_core_opts="$ide_core_opts $param"
+		;;
 	pata)
 		PATA=1
 		;;
@@ -186,6 +189,12 @@
 	esac
 done
 
+if [ -n "$ide_core_opts" ] ; then
+	# remove the extra space from the beginning
+	ide_core_opts="${ide_core_opts# }"
+	echo "options ide_core options=\"$ide_core_opts\"" >>/etc/modprobe.conf
+fi
+
 case "$PATA" in
 	0)
 		for driver in /lib/modules/`uname -r`/kernel/drivers/ata/pata_*.ko ; do




More information about the livecd mailing list