Load 'sg' kernel module automatically in petitboot
On open power system update_flash -d option failed to display FW details
which is due to on petitboot sg kernel module was not loaded.
This patch is to introduce udev rule to load "sg" kernel module
automatically when petitboot is up.
Signed-off-by: Mamatha Inamdar <mamatha4@linux.vnet.ibm.com>
diff --git a/openpower/package/petitboot/66-add-sg-module.rules b/openpower/package/petitboot/66-add-sg-module.rules
new file mode 100644
index 0000000..ae18d28
--- /dev/null
+++ b/openpower/package/petitboot/66-add-sg-module.rules
@@ -0,0 +1,2 @@
+# load modules to scsi disks, if they aren't in kernel
+SUBSYSTEM=="scsi", ENV{DEVTYPE}=="scsi_device", TEST!="[module/sg]", RUN+="/sbin/modprobe sg"