@@ -0,0 +1,6 @@
+#!/bin/sh
+### hpsa.sh: Called by the parse-hpsa.sh script to create the scan script ###
+### Laurence Oberman loberman@redhat.com
+. /lib/dracut-lib.sh
+### The actual script that scans the hpsa for LUNS
+/bin/sh /sbin/hpsa_scan.sh
@@ -0,0 +1,14 @@
+#!/bin/sh
+#### Test the hpsa driver load with scan #####
+#### Laurence Oberman loberman@redhat.com
+### module-setup.sh - Required for every module
+### Standard script invocations required
+check() {
+ return 0
+}
+
+### Install the hpsa.sh in the module directory
+install() {
+ inst_hook cmdline 20 "$moddir/parse-hpsa.sh"
+ inst_simple "$moddir/hpsa.sh" /sbin/hpsa.sh
+}
@@ -0,0 +1,18 @@
+#!/bin.bash
+### Laurence Oberman loberman@redhat.com
+### parse-hpsa.sh
+### Parses the rd.hpsa=x tp get the host number
+### Using rdloaddriver=hpsa will enforce hpsa becoming scsi0
+
+for p in $(getargs rd.hpsa=); do
+(
+ echo "echo 1 > /sys/class/scsi_host/host$p/rescan" > /sbin/hpsa_scan.sh
+ _do_hpsa=1
+)
+done
+
+### Standard way to call the script from udev
+/sbin/initqueue --settled --unique --onetime /bin/sh /sbin/hpsa.sh
+#/bin/sh /sbin/hpsa.sh
+unset _do_hpsa
+